Adapter Details: mcp

A Model Context Protocol (MCP) adapter that enables seamless integration with MCP-compatible AI models and tools. Provides standardised communication protocols for AI agents to interact with external systems and services. Essential for building sophisticated AI workflows and connecting with modern AI development ecosystems.

Name:mcp
Class:covia.adapter.MCPAdapter

MCP Tools

This adapter provides 11 MCP tool(s) for AI agent integration:

Tool NameDescription
mcp_server_refreshRefreshes bridged MCP tools against their servers' live tools/list (#80), in one of two modes. MIRROR (name): reconciles a registered server's whole subtree — new tools added, changed ones rewritten, vanished ones removed. CURATED (path): walks the bridged ops under a catalog path (one op or a whole group, may span servers), updates input/output schemas and annotations in place; name/description are yours and stay untouched; a tool the server no longer offers is reported in 'missing', never deleted. Provide exactly one of name or path. Venue-side targets require the mcp/manage ability.
mcp_token_listLists the MCP tokens in your namespace, those accepted at MCP alone: each one's name, issuer, tools, caps, expiry and creation time, never its bearer. Needs crud/read on x/token.
mcp_token_getReturns one of your MCP tokens' bearer again, on a venue whose operator keeps tokens (adapters.token.keepRawTokens); otherwise rotate it with v/ops/mcp/update-token. Reaches only tokens accepted at MCP alone. Needs the admin/token/mcp ability on x/token/<name>, and the authority the token was created with.
mcp_server_addMirrors an external MCP server into the catalog (#80): lists ALL the server's tools and materialises each as an ordinary operation. Scope 'user' (default) puts them in your o/mcp/<name>/ namespace; scope 'venue' (requires the mcp/manage ability) puts them at v/ops/mcp/<name>/ for everyone. To curate individual tools at paths of your choosing (including cross-server groups), use v/ops/mcp/add-tool instead. The server URL passes the same SSRF validation as the http adapter. Auth should be a secret reference (s/<name>, stored via v/ops/secret/set) — resolved at call time, never persisted raw.
mcp_server_removeRemoves a bridged MCP server (#80): deletes its catalog subtree and registry entry — nothing else. In-flight calls fail at the point of use. Scope 'venue' requires the mcp/manage ability.
mcp_tools_listmcp_tools_list: Discover the tools offered by an MCP endpoint, including each exact name and inputSchema. With an MCP token, shows that token's custom tool list. Use the same server and token when calling a discovered tool, passing its exact name and matching arguments.
mcp_token_deleteDeletes one of your MCP tokens: its bearer stops working, and work it started, schedules it made and agents it created hold nothing more through it. Reaches only tokens accepted at MCP alone. Needs the mcp/token ability on x/token/<name>.
mcp_tool_addCurates ONE tool from an MCP server at a catalog path you choose (#80). The bridged op is self-contained (server, tool name, auth reference, schema all in the asset) — no registry entry, and groups are just catalog paths: place tools from different servers under a common prefix (e.g. o/research/) to arrange them as a set. Paths under your own o/ need nothing extra; v/ops/... requires the mcp/manage ability. Remove with covia:delete on the path (a v/ops/<rest> tool is stored at the venue's w/global/ops/<rest>, since nothing changes through v/) — nothing resurrects it. To mirror ALL of a server's tools instead, use v/ops/mcp/add-server. Browse a server's tools first with v/ops/mcp/tools-list.
mcp_tools_callmcp_tools_call: Call one tool on a remote MCP endpoint. Supply server, the exact toolName returned by discovery, and arguments matching that tool's inputSchema (use {} for a tool with no arguments). When using an MCP token, pass the same token used for discovery; only its offered tools and granted capabilities are available. Wait for the result before reporting success; an error or pending job is not evidence that the action succeeded.
mcp_token_updateChanges one of your MCP tokens: its tools, its caps or its expiry, or gives it a new bearer with rotate (the old one stops working at once). What you leave out stays as it is. Emptying its tools or caps revokes it. Changes take effect at the next check, including on work the token already started. Reaches only tokens accepted at MCP alone. Needs the mcp/token ability on x/token/<name>, and the authority the token was created with, so a request through a token can never widen it.
mcp_token_createCreates a scoped API key for this venue's /mcp endpoint, so an MCP client — another agent, Claude Code, any assistant — can connect with Authorization: Bearer <token> and no other login. The token offers exactly the tools you list, and each call acts with your own authority narrowed by the token's caps, read at the time of each action: it can never do more than you can. Returns the token once, in this result (wait for the result: the job record keeps it hidden). Revoke by emptying its tools or caps with v/ops/mcp/update-token, or with v/ops/mcp/delete-token. An access token accepted at MCP alone (ACCESS_TOKENS.md). Needs the mcp/token ability on x/token/<name>.

Navigation

Back to all adapters

Back to index