How harshbhanushali26/mcp-notes-agent works
This is a terminal notes agent backed by a sandboxed MCP file server. The user enters a request; the client loads workspace context, resolves optional file attachments or a summary prompt, and sends the request to Groq. When the model requests a tool, the client calls the server, which operates on the notes workspace, then returns the result to the model. The graph preserves the documented tool, resource, and prompt capabilities. Relationships are based on the README and the shown client/server excerpts; the notes directory is workspace data, not an implementation module.
Main entry points: client.py Chat loop · server.py MCP tools · notes Notes files
Components 17
Terminal client
- Chat loop
client.py - File attachments
client.py - Prompt trigger
client.py - Tool-calling loop
client.py
MCP server
- Server process
server.py - MCP tools
server.py - List files
server.py - Read file
server.py - Write file
server.py - Edit file
server.py - Search files
server.py - Workspace overview
server.py - File resource
server.py - Summary prompt
server.py
Notes workspace
- Notes files
notes
Other components
- User
- Groq model
Connections 25
- User → Chat loop: enters request
README.md - Chat loop → Server process: launches over stdio
client.py - Chat loop → Workspace overview: loads overview
client.py - Workspace overview → Notes files: lists files
server.py - Chat loop → MCP tools: discovers tools
client.py - Chat loop → File attachments: resolves @ mentions
client.py - File attachments → File resource: reads file resource
client.py - File resource → Notes files: reads note
server.py - Chat loop → Prompt trigger: handles summarize
client.py - Prompt trigger → Summary prompt: requests prompt
client.py - Chat loop → Tool-calling loop: sends message
client.py - Tool-calling loop → Groq model: requests completion
client.py - Groq model → Tool-calling loop: returns tool call
README.md - Tool-calling loop → MCP tools: calls requested tool
client.py - MCP tools → List files: dispatches
server.py - MCP tools → Read file: dispatches
server.py - MCP tools → Write file: dispatches
server.py - MCP tools → Edit file: dispatches
server.py - MCP tools → Search files: dispatches
server.py - List files → Notes files: lists entries
server.py - Read file → Notes files: reads text
server.py - Write file → Notes files: writes text
server.py - Edit file → Notes files: updates text
server.py - Search files → Notes files: searches text
server.py - Tool-calling loop → Groq model: returns tool result
client.py