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
🤖 feat: add MCP server configuration and runtime support (#956)
## Summary
Adds MCP (Model Context Protocol) server support, allowing users to
extend agent capabilities with external tool providers.
## Features
- **Per-project configuration** — Servers configured in `.mux/mcp.jsonc`
apply to all workspaces from that project
- **Per-workspace runtime** — Each workspace runs isolated server
instances with independent state
- **Slash commands** — `/mcp add|remove|edit` for quick configuration
from chat
- **Settings UI** — Manage servers in Settings → Projects with test
button and tool discovery
- **Hot reload** — Config changes apply on next message without restart
- **10-minute idle timeout** — Servers automatically stop after
inactivity to conserve resources
- **Namespaced tools** — Tools prefixed with server name (e.g.,
`memory_create_entities`) to prevent collisions
## Configuration
```jsonc
// .mux/mcp.jsonc
{
"servers": {
"memory": "npx -y @modelcontextprotocol/server-memory",
"chrome": "npx -y chrome-devtools-mcp@latest --headless"
}
}
```
## Security
- Commands are **not** exposed in the system prompt (may contain
secrets)
- Only server names are shown to the model
## Files
- `src/node/services/mcpServerManager.ts` — Runtime server lifecycle
with idle cleanup
- `src/node/services/mcpConfigService.ts` — Config CRUD operations
- `src/node/services/mcpStdioTransport.ts` — NDJSON stdio transport
- `src/browser/components/Settings/sections/ProjectSettingsSection.tsx`
— Settings UI
- `docs/mcp-servers.mdx` — User documentation
_Generated with `mux`_
0 commit comments