Get MCP Server
Retrieves the details of a specific MCP server using its ID.
Usage
import { v0 } from 'v0-sdk'const result = await v0.mcpServers.getById({ mcpServerId: 'mcp_123',})console.log(result)API Signature
Request
Path Parameters
The unique identifier of the MCP server to retrieve.
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.
Create MCP Server OAuth Authorization URL
Creates an OAuth authorization URL for an OAuth MCP server. Redirect the user to the returned URL to complete authorization without visiting v0.app.
Update MCP Server
Updates the configuration of an existing MCP server, including its name, URL, authentication, or enabled status. Supports partial updates.