defineMcpServer(), then attach it to an
agent render with useMcpServer().
Connect a server
Definition fields
useMcpServer() accepts either a definition or an existing server ID.
Attach authorization
Reference a secret-backed HTTP connection when the server requires authorization:opencomputer secrets set GITHUB_PAT; its value is injected only into requests
to the declared origin. See Secrets and outbound requests.
Managed catalogs
Some catalogs are built into the platform: attach them by name and the credential is supplied by OpenComputer — no secret to set, no connection to declare. The Monid catalog is the first:monid() selects the managed monid MCP server
(https://mcp.monid.ai/v1), which exposes catalog meta-tools — discover,
inspect, and run — covering hundreds of providers. useMcpServer("monid")
selects it the same way. When you define a monid connection or MCP server
yourself, yours wins and monid() is a compile error.
The catalog key is a platform credential resolved at the platform’s egress
edge. It only ever reaches mcp.monid.ai and api.monid.ai; agent code and
your project’s own secrets never see it. The same platform scope is available
on useSecret() for connection headers when a deployment declares a
platform-managed credential by name.