MCP Server Integration
If built-in tools can't meet your needs, MCP (Model Context Protocol) lets agents securely access almost any external service.
What is MCP
MCP is an open standard protocol that defines how AI applications communicate with external tools and data sources. You can think of it as a "universal socket" between agents and external services—whether the service is GitHub, Slack, a database, or your own API, as long as it provides an MCP interface, the agent can use it.
Advantages of MCP:
- Standardization: All MCP servers use a unified protocol, agents don't need to write specialized integration code for each service
- Security: Tool calls are controlled by the permission system, you can finely control what agents can do
- Rich Ecosystem: The community already has many ready-made MCP servers covering common scenarios like file systems, Git, databases, and communication tools
Adding MCP Servers
- Go to agent settings page
- Find the MCP Server Management area
- Click "Add Server"
- Fill in connection information:
| Configuration | Description |
|---|---|
| Server Name | Give this service an easily identifiable name |
| Connection Method | stdio (local process) / HTTP / SSE (server-side push) |
| Start Command or Endpoint | Start command for local process, or URL for remote service |
| Authentication Info | If service requires authentication (API Key, etc.) |
- Click "Connect" to test connection
- After successful connection, tools provided by the server will automatically import into the tool list
- stdio: Most commonly used. MCP Server starts as local process, communicates through standard input/output. Suitable for local tools.
- HTTP: Communicate with remote MCP Server through HTTP requests. Suitable for cloud services.
- SSE: Use Server-Sent Events, supports server-initiated push. Suitable for scenarios requiring real-time updates.
Legacy and Modern Protocols
v10.0.202+ (dual-era negotiation, discovery TTL, and subscription recovery).
stdio and Streamable HTTP use auto by default to discover the server's supported protocol before connecting. Legacy servers retain the initialize handshake, while modern servers can use protocol 2026-07-28. SSE connections use the legacy protocol.
If an older server exits during discovery or fails to connect, set "version_negotiation": "legacy" in that server's configuration, save it, and reconnect. modern requires the modern protocol and suits services that explicitly require it. This field applies to stdio and Streamable HTTP.
The server's discovery TTL controls refreshes for tools, resources, and prompts. ttlMs: 0 causes a new request whenever discovery is needed and can increase process or network load. Disconnected list subscriptions retry with backoff and return to the normal retry frequency after a stable recovery.
MCP Tasks and MCP Apps are currently unavailable. Sampling is a deprecated compatibility capability and is disabled by default. When explicitly enabled, quotas apply to each initiating request and server. Every embedded Sampling request counts, including failed, rejected, and cancelled requests. Sampling uses the initiating call's bound model and permissions. When Sampling is enabled, tool calls, resource reads, and prompt requests on the same server connection run serially. A Sampling request must be bound to one of those calls while it is in progress; otherwise it is rejected. Stopping that turn cancels in-flight Sampling.
When publishing an agent with a non-default version_negotiation value, set requiredClientVersion to at least 10.0.202.
Managing MCP Tools
After connecting an MCP Server, tools it exposes appear in the agent's tool list. You can:
- View Tool List — See what tools each MCP Server provides
- Enable/Disable Specific Tools — Disable tools you don't need
- View Tool Descriptions — Understand each tool's function and parameters
MCP tools are named in the format {server_name}__{tool_name}, for example filesystem__read_file represents the read_file tool from the filesystem server.
Common MCP Servers
Below are some commonly used MCP servers in the community, you can choose based on your needs:
Files and Development
| Server | Function | Connection Method |
|---|---|---|
| Filesystem | Secure file system access | stdio |
| GitHub | GitHub repository, Issue, PR management | stdio |
| Git | Local Git repository operations | stdio |
Data and Storage
| Server | Function | Connection Method |
|---|---|---|
| SQLite | SQLite database queries | stdio |
| PostgreSQL | PostgreSQL database operations | stdio |
Communication and Collaboration
| Server | Function | Connection Method |
|---|---|---|
| Slack | Slack message sending and receiving | stdio |
| Google Drive | Google Drive file access | stdio |
The MCP ecosystem is rapidly developing. You can discover more available servers in the MCP official repository and community.
Connection Management
Connection Status
On the MCP Server management page, you can see each server's connection status:
- Connected — Working normally
- Connecting — Establishing connection
- Disconnected — Connection broken, needs reconnection
- Error — Connection problem occurred
Auto Reconnect
If an MCP Server connection accidentally disconnects (e.g., process crash), the system will automatically attempt to reconnect when the tool is needed next time. You can also manually click "Reconnect."
Security Notes
- MCP Servers can access resources depending on their configuration and permissions you grant
- Only connect MCP Servers you trust
- For servers accessing sensitive data, recommend using the principle of least privilege
- Regularly check connected server list, remove connections no longer needed
Before installing third-party MCP Servers, please confirm their source is reliable. MCP Servers running as local processes can theoretically access resources on your system. Recommend prioritizing servers widely validated by the community.