Adding and Managing MCP Servers

Via Configuration File

The primary method involves editing the MCP configuration file, typically named mcp.json. This approach offers precise control and is ideal for developers comfortable with JSON editing.

Via Add Sever PureCode UI

For users preferring a guided approach, the PureCode UI provides forms to add servers without directly editing JSON files.

Server Management Dashboard

Status Meeting

Real-time connection status: connected, error, or loading

Tool Discovery

Browse all available tools exposed by each MCP server

Configuration

Edit, enable/disable, or remove server configurations

Restart Required

After making configuration changes, restart the extension or reload its configuration for changes to take effect. This ensures proper synchronization with MCP servers.

MCP Server Configurations

Connect to Github's API using the official GitHub MCP server running in Docker
"github": {
  "name": "GitHub Integration",
  "id": "github",
  "transport": {
    "type": "stdio",
    "command": "docker",
    "args": [
      "run", "-i", "--rm", "-e",
      "GITHUB_PERSONAL_ACCESS_TOKEN",
      "ghcr.io/github/github-mcp-server"
    ],
    "env": {
      "GITHUB_PERSONAL_ACCESS_TOKEN": "your_github_pat"
    }
  }
}

User Experience with MCP-Enabled Tools

Tool Discovery

Once connected, MCP server tools automatically appear in the PureCode sidebar, organized by server. Each tool shows its human-readable name and current status.

Detailed Information

Expand any tool call to view comprehensive details including the tool name, arguments passed, execution status, and complete results or error messages.

Real-time Feedback

During tool execution, users see live status indicators, progress updates, and immediate results. The interface provides clear visual cues for active operations.

Error Handling

Clear error messages and partial results are displayed when tool calls encounter issues, allowing for quick troubleshooting and recovery.

Last updated