Skip to main content
DeprecatedUse a session’s MCP endpoint instead: composio.create(userId, \{ mcp: true \}) returns a session that exposes session.mcp.url / session.mcp.headers. MCP is now opt-in per session; the standalone composio.mcp server-management API is kept only for backwards compatibility. Prefer the session MCP endpoint; do not generate new code against composio.mcp. See /docs/sessions-via-mcp

Usage

Access this class through the composio.mcp property:

Properties

Methods

create()

Create a new MCP configuration.
Parameters Returns Promise<MCPConfigCreateResponse> — Created server details with instance getter Example

delete()

Delete an MCP server configuration permanently
Parameters Returns Promise<\{ id: string; deleted: boolean \}> — Confirmation object with server ID and deletion status Example

generate()

Get server URLs for an existing MCP server. The response is wrapped according to the provider’s specifications.
Parameters Returns Promise<MCPServerInstance> Example

get()

Retrieve detailed information about a specific MCP server by its ID
Parameters Returns Promise<MCPItem> — Complete MCP server details including configuration, tools, and metadata Example

list()

List the MCP servers with optional filtering and pagination
Parameters Returns Promise<MCPListResponse> — Paginated list of MCP servers with metadata Example

update()

Update an existing MCP server configuration with new settings
Parameters Returns Promise<MCPItem> — Updated MCP server configuration with all details Example