register_mcp_server
Register an MCP server in a Scalekit environment and return its OAuth protected-resource metadata; the server URL becomes the token audience.
Instructions
Register one MCP server in an environment and return its protected-resource metadata. Use list_mcp_servers to see servers that already exist. Use update_mcp_server to change a server after it exists. Requires the caller OAuth token. Publish that metadata at /.well-known/oauth-protected-resource on the server. The URL you pass becomes the token audience.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name of the MCP server. | |
| provider | No | Connection key id for a customer-owned provider. Leave empty when useScalekitAuthentication is true. | |
| description | No | Short explanation of what this MCP server does. Empty when omitted. | |
| mcpServerUrl | Yes | Public URL of the MCP server. This URL becomes the token audience. | |
| environmentId | Yes | Scalekit environment id. Format: env_<id>. | |
| accessTokenExpiry | Yes | Access token lifetime in seconds. | |
| useScalekitAuthentication | Yes | True uses Scalekit authentication. False requires a provider key id. |