Skip to content

MCP Configuration MCP

Configure MCP (Model Context Protocol) server integration.

Overview

MCP enables AI to use external tools via the MCP protocol.

Basic Configuration

yaml
mcp:
  enabled: true           # Enable MCP
  timeout: 30000          # Connection timeout (ms)
  autoConnect: true       # Auto-connect on startup

Server Configuration

Edit data/mcp-servers.json:

json
{
  "servers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@anthropic/mcp-server-filesystem", "/allowed/path"],
      "env": {}
    },
    "memory": {
      "command": "npx",
      "args": ["-y", "@anthropic/mcp-server-memory"]
    }
  }
}

Server Options

OptionTypeDescription
commandstringCommand to run
argsarrayCommand arguments
envobjectEnvironment variables
cwdstringWorking directory
timeoutnumberServer timeout

Transport Types

stdio (Default)

json
{
  "my-server": {
    "command": "npx",
    "args": ["-y", "@org/mcp-server"]
  }
}

SSE

json
{
  "remote": {
    "transport": "sse",
    "url": "https://example.com/mcp/sse",
    "headers": {
      "Authorization": "Bearer token"
    }
  }
}

HTTP

json
{
  "http-server": {
    "transport": "http",
    "url": "https://example.com/mcp"
  }
}
ServerPackageDescription
Filesystem@anthropic/mcp-server-filesystemFile operations
Memory@anthropic/mcp-server-memoryKnowledge graph
Fetch@anthropic/mcp-server-fetchHTTP requests
GitHub@anthropic/mcp-server-githubGitHub API
Puppeteer@anthropic/mcp-server-puppeteerBrowser control

Management Commands

txt
#mcp状态           # View MCP status
#mcp重连           # Reconnect servers
#ai重载配置        # Reload configuration

Web Panel

Manage MCP servers in Web Admin Panel:

  1. Go to MCP tab
  2. View server status
  3. Connect/disconnect servers
  4. Browse available tools

Next Steps

Released under the MIT License