Documentation
MCP
Model Context Protocol integration in packages/nikcli/src/mcp.
Overview
MCP clients are instantiated per configured server. Tools are dynamically converted into AI SDK tools.
Config
Local MCP servers use type: "local"; remote servers use type: "remote".
| Field | Notes |
|---|---|
type | local or remote. |
command | Local: command array to spawn server. |
url | Remote: base URL for MCP server. |
enabled | Disable with false. |
oauth | Remote OAuth settings (clientId/clientSecret). |
Auth
OAuth
Remote MCP servers support OAuth via McpOAuthProvider and callback handlers.
CLI Commands
mcp list | List MCP servers and status. |
mcp auth [name] | Run OAuth auth for a server. |
mcp logout [name] | Remove stored MCP credentials. |
mcp add | Interactive MCP config generator. |
mcp debug <name> | Connect and list tools/resources. |