Magidoc

createMcpServer
Mutation

Create a new workspace-level MCP server connection. Use transportType 'streamable_http' for remote servers (requires url), or 'stdio' for local command-based servers (requires command). IMPORTANT: Before calling this, you MUST call discover_oauth_metadata first. If discovery returns success, set authType to 'oauth' and use the discovered oauthAuthorizationUrl, oauthTokenUrl, and oauthScopes. Only use authType 'headers' when discover_oauth_metadata fails. After creating with OAuth, inform the user to click the Authorize button to complete the OAuth consent flow.

Arguments

#

workspaceId

ID !
Non-null

input

Non-null

Response

#

Returns McpServer !.

Example

#