-
Notifications
You must be signed in to change notification settings - Fork 0
MCP and Runtime
AgentDesk supports MCP import, readiness review, live discovery, and tool calls through the packaged loopback runtime.
AgentDesk can import common MCP config shapes:
- Claude-style
mcpServers - VS Code-style
servers - nested
mcp.servers - remote server URL definitions
- single-server JSON
Example files:
docs/examples/mcp-claude-desktop.jsondocs/examples/mcp-vscode.json
- Open the
MCPtab. - Paste a config.
- Click import.
- Review readiness, risk flags, env/header key names, and inferred tool hints.
- Add MCP nodes if the imported servers match your workflow.
Import does not automatically execute MCP servers. It is metadata and readiness review first.
Live MCP discovery requires Runtime mode through the packaged CLI.
npx --yes --package=@papaplus/agentdesk agentdesk --port 5173Then:
- Open
Doctor. - Click
Check runtime. - Open
MCP. - Import config.
- Click
Discoverfor a selected server.
AgentDesk uses the official @modelcontextprotocol/sdk stdio adapter by default inside the existing loopback runtime boundary.
The legacy JSON-RPC client remains available for comparison or fallback:
AGENTDESK_MCP_ADAPTER=legacy-jsonrpc agentdesk --port 5173The adapter boundary preserves:
- loopback-only runtime API
- explicit user action
- timeouts
- output caps
- redacted artifacts
- no automatic remote probing
Remote MCP URLs are probed only after explicit discovery. AgentDesk negotiates the MCP protocol version and preserves session metadata where available.
Remote probing is still not a production trust boundary. Review every endpoint before probing it, and avoid sending secrets unless you understand the server and transport.
Local command nodes are intended for local developer workflows and controlled demos.
Runtime behavior includes:
- command and args come from node config
- cwd is resolved conservatively
- output is capped
- stderr and stdout are redacted
- command timeouts are enforced
Do not connect local command nodes to destructive commands unless you fully understand the effect.
Runtime profiles store approved runtime metadata locally. They include:
- command
- args
- cwd
- server id
- env/header key names
- readiness state
They do not store secret values.
If MCP discovery fails:
- Confirm the runtime CLI is running.
- Confirm you are using
Runtimemode. - Confirm the imported config still contains the target server id.
- Confirm the server command is installed and on PATH.
- Check whether the server writes non-JSON logs to stdout.
- Check stderr artifact output in AgentDesk.
- Try the legacy adapter only if you suspect SDK compatibility behavior.