You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
merge(next): MCP integration, async refactor, user experience improvements, and v2.0 release\n\n- Major: Model Context Protocol (MCP) integration for dynamic external tools/services (compatible with Cursor AI IDE)\n- Async refactor: all tool handlers and agent loop are async\n- User experience: emoji/logging improvements, spinner for MCP loading, graceful shutdown\n- Context: user queries now include current date/time\n- Docs: README and pyproject.toml updated for v2.0 and MCP\n- Many style, bugfix, and maintainability improvements
-[Option 1: Using the installation script (Recommended)](#option-1-using-the-installation-script-recommended)
@@ -41,6 +46,7 @@
41
46
-[Configuration](#configuration)
42
47
-[API Keys and Environment Variables](#api-keys-and-environment-variables)
43
48
-[Custom System Prompt](#custom-system-prompt)
49
+
-[MCP Server Configuration](#mcp-server-configuration)
44
50
-[Usage](#usage)
45
51
-[Basic](#basic)
46
52
-[Model Selection](#model-selection)
@@ -58,6 +64,7 @@
58
64
-**Functional Programming:** Clean, composable, and testable code.
59
65
-**DevOps Ready:** Integrates with Bash, Python, Docker, Git, Kubernetes, AWS, and more.
60
66
-**Multi-Provider:** Supports both Anthropic Claude and OpenAI GPT models.
67
+
-**MCP Integration:** Dynamically loads and uses tools/services from any MCP-compatible server (see below).
61
68
62
69
---
63
70
@@ -68,6 +75,52 @@
68
75
- Debug mode for transparency (`--debug`)
69
76
- Modular, extensible tool system
70
77
- Functional programming style throughout
78
+
-**MCP (Model Context Protocol) integration for external tool/service discovery and use**
79
+
80
+
---
81
+
82
+
## MCP (Model Context Protocol) Integration
83
+
84
+
**New in v2.0!**
85
+
86
+
Agent Loop can now connect to any number of MCP-compatible servers, dynamically discovering and using their services as tools. This means you can:
87
+
88
+
- Add new capabilities (search, knowledge, automation, etc.) by simply running or configuring an MCP server.
89
+
- Use tools from remote or local MCP servers as if they were built-in.
90
+
- Aggregate services from multiple sources (e.g., Brave Search, Obsidian, custom servers) in one agent.
91
+
92
+
> **ℹ️ The MCP server configuration format is identical to that used by [Cursor AI IDE](https://docs.cursor.com/context/model-context-protocol#configuring-mcp-servers).**
93
+
> See the [Cursor MCP documentation](https://docs.cursor.com/context/model-context-protocol#configuring-mcp-servers) for more details and advanced options.
94
+
95
+
### How it works
96
+
97
+
- On startup, Agent Loop reads your MCP server configuration from `~/.config/agent-loop/mcp.json`.
98
+
- For each server, it starts a session and lists available services.
99
+
- Each service is registered as a tool (named `<server>-<service>`) and can be called by the agent or user.
100
+
- All MCP tools are available alongside built-in tools.
This allows you to give specific instructions or personality to the assistant. If this file doesn't exist, the default system prompt will be used.
260
314
315
+
### MCP Server Configuration
316
+
317
+
To enable MCP integration, create a file at `~/.config/agent-loop/mcp.json` as shown above. Each server entry should specify the command, arguments, and any required environment variables. All services from these servers will be available as tools in your agent session.
0 commit comments