Agents

Add MCP server configuration

Configures an MCP server for the agent.

post/api/agents/{agent}/mcp

Request

  • Base URL: https://docs.weavy.com (the document declares no server; this is the origin it was published from)
  • URL: https://docs.weavy.com/api/agents/{agent}/mcp
  • Auth: none declared

Path parameters

agentstring required

Agent identifier (id or uid).

Request body

namestring nullable required

A name for the MCP server, used to identify it in tool calls.

urlstring uri nullable required

The URL for the MCP server.

descriptionstring nullable

Optional description of the MCP server, used to provide more context.

allowed_toolsstring[] nullable

List of allowed tool names.

approval_modestring nullable

Specifies whether the MCP server's tools require approval. Can be one of always or never.

headersobject nullable

Optional HTTP headers to send to the MCP server. Use for authentication or other purposes.

Response

Created

namestring nullable

The name of the function.

descriptionstring nullable

Describes the functions purpose to the agent.

methodstring nullable

The HTTP method to use when calling the endpoint.

urlstring nullable

The API endpoint to call.

headersobject nullable

Headers to include in the request, e.g. Authorization, Content-Type, User-Agent etc.

parametersunknown

Changes

No recorded changes to this operation across all 1 revision of this API.