docs/cli/mcp.md
mise mcpmise mcpsrc/cli/mcp.rs[experimental] Run Model Context Protocol (MCP) server
This command starts an MCP server that exposes mise functionality to AI assistants over stdin/stdout using JSON-RPC protocol.
The MCP server provides access to:
Resources available:
Tools available:
Note: This is primarily intended for integration with AI assistants like Claude, Cursor, or other tools that support the Model Context Protocol.
Examples:
# Start the MCP server (typically used by AI assistant tools)
$ mise mcp
# Example integration with Claude Desktop (add to claude_desktop_config.json):
{
"mcpServers": {
"mise": {
"command": "mise",
"args": ["mcp"],
"env": {
"MISE_EXPERIMENTAL": "1"
}
}
}
}
# Interactive testing with JSON-RPC commands:
$ echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}' | mise mcp
# Resources you can query:
- mise://tools - List active tools
- mise://tools?include_inactive=true - List all installed tools
- mise://tasks - List all tasks
- mise://env - List environment variables
- mise://config - Show configuration info
# Tools available:
- install_tool - Install a tool (not yet implemented)
- run_task - Execute a mise task with optional arguments
Example: {"task": "build", "args": ["--verbose"]}