MCP capability
mcp is a read-only signpost, not a server-management API. Every action
uses strict input={}; routine inspection needs no prerequisite reading:
mcp(action="info", input={}, reasoning="inspect MCP registry health")
mcp(action="settings", input={}, reasoning="show effective MCP settings")
mcp(action="manual", input={}, reasoning="read MCP guidance")
- info re-reads registry/identity caches, reconciles the protected prompt section, and returns contents, problems and registry path—not the manual.
- settings reads effective init values; it neither edits nor proves liveness.
- manual returns this installed body as flat
mcp_manualandmanual_path, without registry I/O. Missing installation yields a degraded result, not fallback.
None registers, activates, configures, or fixes a server. Leave root
summarize=false when exact names or paths matter. Registry problems can
contain raw invalid lines: never publish the whole result or raw diagnostics;
report only line numbers and sanitized reasons, not credentials or private paths.
States and change gate
Catalog is the kernel-shipped reference; registered is a valid
mcp_registry.jsonl record beside init.json; active means a live server
with mounted tools. A record or info success does not prove active status.
Before setup, update, deregistration or recovery: read the matching route and
exact server README, call info, and obtain explicit human authorization before edits.
Registry/config changes use authorized file write/edit, then one controlled
System refresh and live verification. Public refresh requests an Agent relaunch;
it is not merely the pre-handoff failed-child retry hook. See runtime ownership
below before changing a launcher. /addon is retired; /mcp is the only current TUI command for this surface.
It is read-only status/config inspection, not a setup wizard.
Routes
| Need | Read |
|---|---|
| Curated addon setup: exact provider docs and Telegram/Cloud Mail/WeChat hazards | curated addons |
| Third-party registry or legacy stdio/HTTP activation | third-party and legacy |
| Update, deregister, missing tools or failure | troubleshooting |
| Identity cache, installed paths, venv/source provenance | runtime and identity |
| Protocol, env injection or LICC | lingtai-kernel-anatomy → reference/mcp-protocol.md |
| Footprint inspection / separately approved cleanup | skills-manual → reference/cleanup-footprint-contract.md |
README gate
Installation, config fields, env vars and error meanings come from the exact server README—never guess. For an installed Python package use:
<runtime-venv-python> .library/intrinsic/capabilities/mcp/scripts/find_readme.py <distribution>
Add --module for module-to-distribution lookup. The helper prefers editable
source README, then wheel METADATA. If absent, browse the registered public
homepage with web(action="browse", input={"url":"<homepage>", "link_ref":null, "cursor":null, "extract":null, "max_chars":null}, reasoning="read server README").
Runtime self-description is the last resort; the helper installs/fetches nothing.
Configuration settings
SHOW returns exactly {"settings": [...]}; each row has key, current,
default, configurable, comment, in that order. The inventory is bounded to
65,536 UTF-8 bytes. Source/read/serialization failure returns one fixed no-row
failure, not partial values or exception text.
| Key | Meaning | Authorized change |
|---|---|---|
init.addons |
Fresh canonical effective list; default [], not registry/live health. |
Edit top-level init.json addons, refresh, SHOW again. Removal does not delete a registry row. |
init.mcp |
Fresh canonical activation mapping; both current and default always <redacted>. |
Edit top-level init.json mcp, refresh, then verify the child/tool/account—not just info. Registry membership gates activation. |
SHOW excludes registry/identity files, legacy mcp/servers.json, private addon
config/session data, Task Cards and live process state. It grants no edit authority.
Cleanup / footprint
Inspect only selected MCP-owned registry, legacy activation, inbox and addon
assets using the shared route above; default inspection writes/deletes nothing.
Never blindly delete credentials, messages, audit records, active state or
recovery evidence. Present a dry-run and obtain explicit consent before archive
or deletion. Any separately approved audit/apply write records timestamp, mode,
candidate count/bytes, path summary and approval in logs/cleanup.jsonl.