Update MCP Server
Updates the configuration of an existing MCP server, including its name, URL, authentication, or enabled status. Supports partial updates.
Usage
import { v0 } from 'v0-sdk'const result = await v0.mcpServers.update({ mcpServerId: 'mcp_123', name: 'Updated MCP Server', enabled: false,})console.log(result)API Signature
Request
Path Parameters
The ID of the MCP server to update. Provided as a path parameter.
Body
A new name for the MCP server. Must be between 1 and 100 characters.
A new URL for the MCP server endpoint. Must be a valid URL and use HTTPS in production. Maximum 500 characters.
A new description for the MCP server. Maximum 500 characters.
Whether the MCP server should be enabled.
New authentication configuration for the MCP server.
The authentication method. Use 'oauth' for OAuth MCP servers, 'bearer' for token-based auth, or 'custom-headers' for key-value header pairs.
The bearer token. Required when type is 'bearer'. Maximum 1000 characters.
Key-value pairs of custom headers. Required when type is 'custom-headers'. Maximum 10 headers.
OAuth configuration. Required when type is 'oauth'. The server needs an active user authorization through the Platform API OAuth flow before it can be used.
The OAuth authorization endpoint URL.
The OAuth token endpoint URL.
The optional dynamic client registration endpoint URL.
The OAuth client ID.
The optional OAuth client secret. This value is stored securely and is never returned by the API.
OAuth scopes to request during authorization. Defaults to an empty array.
Whether to use PKCE for the authorization code flow. Defaults to true.
Optional issuer identifier for mix-up protection.
Optional RFC 8707 resource indicator. For MCP servers, this is usually the MCP server URL.
Whether the authorization server supports Client ID Metadata Documents.
Whether the server should be scoped to the user or a team.
Response
A unique identifier for the MCP server.
Fixed value identifying this object as an MCP server.
The name of the MCP server.
The URL of the MCP server endpoint.
The description of the MCP server.
Whether the MCP server is currently enabled.
The authentication configuration. Only the type is returned; sensitive values are redacted.
The authentication method used by the server.
Whether the server is scoped to the user or a team.
The ISO 8601 timestamp when the server was created.
The ISO 8601 timestamp when the server was last updated.