Expand description
Agent roster, MCP tool loop
Functions§
- agent_
backend_ kind - Backend kind of a roster agent:
"local"|"remote"(unknown/empty slug →"local"). - agent_
remote_ connection_ test - Verify that a configured remote-MCP agent can answer the non-generative
tools/listhandshake. This never sends a chat prompt. - agent_
roster_ add_ remote - Convenience: create/update a REMOTE-MCP agent from primitives so the UI never hand-builds the
backend enum.
transport_kind∈"tcp"|"http"|"stdio";endpointishost:port/ a URL / a command line respectively. - agent_
roster_ get - agent_
roster_ list - agent_
roster_ remove - agent_
roster_ upsert - agent_
runtime_ status - Truthful runtime projection for one roster agent. Definitions are durable; this response describes only the currently effective local-model residency and recent decode measurement, so callers do not mistake “configured” for “loaded on GPU”.
- agent_
set_ allowed_ mcp_ tools - Convenience: set
allowed_mcp_toolson a roster agent (persist via upsert). - ingest_
chat_ cml - Store a chat turn’s inline CML context (
#project:/#topic:/#task:/[[concept]]) into the person’s inforg (their private library). No-op if the message has no tags. Returns concepts stored. - mcp_
call_ tool_ gated - Principal-gated MCP tool call.
principal_permitted = false→ Err without MCP. Tool must be on the agent’sallowed_mcp_tools(or*); empty allowlist denies all. - mcp_
ensure_ safe_ tool_ allowlist - If allowlist is empty, seed
list_capabilities+computer_vision(dogfood-safe). Does not Permit any call — only widens the roster allowlist. - mcp_
list_ local_ tools - List local in-process MCP tools (
tools/list) for Talk / allowlist UI. - provider_
credential_ remove - Remove a user-owned connection credential from the operating-system keychain.
- provider_
credential_ store - Store a bearer credential for a user-owned connection in the operating system keychain. The secret is intentionally write-only at this API boundary.
- run_
remote_ agent_ turn - Run one turn against a REMOTE-MCP agent from the roster (native-only). Privacy-gated via the job
router (Classified/sanctuary never leaves the device), then issues an MCP
tools/callto the provider and appends the reply as an agent message. Returns a ChatInferenceResult-shaped JSON.