name: agenter-mcp description: Install, enable, query, call, and recover MCP servers through the root runtime CLI. Use this when a task mentions MCP servers, MCP tools, stdio, Streamable HTTP, SSE, or project MCP availability.
agenter-mcp
Use this skill when you need to make MCP servers available to one exact project or inspect what MCPs are installed, enabled, running, or callable.
Quick start:
- Run
mcp --helpormcp <command> --helpbefore guessing an argument shape. - Use
mcp addonce to create or update a global MCP config. This never enables a project and never starts a server. - Use
mcp enablewith an explicit absoluteprojectPathbefore a project can call that MCP. - Use
mcp listwithprojectPathto see enabled MCPs for that exact project, their lifecycle, and the latest project-local snapshot when one exists. - Use
mcp querywhen you need a cross-cutting answer. Readmcp query --help, then write SQL againstmcp_installedandmcp_enabled. - Use
mcp callfor the normal path. Defaults areautoStart: trueandautoEnable: false. - Use
mcp stopormcp restartfor resource release and recovery when a server is unhealthy.
Key laws:
mcpis a root-workspace runtime CLI surface. It is not a direct model tool.- Public scope words are
globalandproject. mcp addandmcp removeare global-only. They manage reusable MCP configs byname.mcp enable,mcp disable,mcp list,mcp start,mcp stop,mcp restart, andmcp callare project-facing and require explicitprojectPath.- Every project path is exact after normalization. Parent and child directories do not inherit enablement, running instances, or snapshots.
- A newly added global is disabled in every project by default.
mcp listshows only enabled MCPs for the exact project. Disabled globals stay out of the list.- If an enabled MCP is stopped,
mcp listmay still show the latest successful project-local snapshot. If it has never started successfully, snapshot fields are absent. - Snapshots are project-local. A snapshot discovered under one
projectPathis never shared with another project path. mcp queryalways returns JSON rows. There is no text or table output mode.mcp queryexposes two temporary tables:mcp_installedfor globals created bymcp add, andmcp_enabledfor project enablement plus project-local lifecycle and snapshot projections.- When
projectPathis passed tomcp query,mcp_enabledprojects every installed global for that exact project and marks missing enablement asenabled=0andenabled_source='default'. - Without
projectPath,mcp_enabledcontains only explicit project enablement rows and does not invent default-disabled project rows. - Put
LIMITin the SQL when you need a bounded result;mcp querydoes not provide a separate limit option. - Supported transports are
stdio,streamable-http, andsse, all through the official MCP SDK. - Stdio environment comes from root-workspace runtime env, overlaid by global
env, then transportenv. This MCP system does not add a separate secret-reference layer. - Remote headers are literal config values in the first implementation.
mcp callcan auto-start an enabled stopped server by default, but it does not auto-enable a disabled project unlessautoEnable: trueis explicit.mcp disabledefaults tostop: true.mcp removedefaults tostop: false. If running project instances block removal, inspect the returned project paths; only retry withstop: truewhen you intentionally want to stop those instances and remove the global.- Use
mcp restartafter an MCP server hangs, changes its command behavior, or returns suspicious capability state.
Common commands:
mcp add
stdin: {"name":"thinking","title":"Sequential Thinking","transport":{"kind":"stdio","command":"npx","args":["-y","@modelcontextprotocol/server-sequential-thinking"]}}
mcp enable
stdin: {"name":"thinking","projectPath":"/repo/app"}
mcp list
stdin: {"projectPath":"/repo/app"}
mcp query
stdin: {"projectPath":"/repo/app","sql":"select name, enabled, enabled_source, lifecycle, tools_json from mcp_enabled order by name"}
mcp call
stdin: {"name":"thinking","projectPath":"/repo/app","toolName":"sequentialthinking","arguments":{"thought":"Break down the next implementation step.","thoughtNumber":1,"totalThoughts":3,"nextThoughtNeeded":true}}
Recovery patterns:
- Missing global: run
mcp queryagainstmcp_installed, thenmcp addif the config is absent. - Disabled project: run
mcp enablefor the exactprojectPath, then call again. - Stopped enabled project: default
mcp callstarts it automatically; passautoStart:falseonly when you require a pre-started instance. - Bad or stale snapshot: run
mcp restart, thenmcp listormcp queryto inspect the new project-local snapshot. - Remove blocked by running projects: first read the blocked project paths, then retry
mcp removewithstop:trueonly when those projects can be stopped.