getMCPServer()
getMCPServer(
serverId:string):Promise<MCPServer>
Defined in: packages/core/src/index.ts:3052
Get MCP server by ID
Parameters
| Parameter | Type | Description |
|---|---|---|
serverId | string | The unique identifier of the MCP server |
Returns
Promise<MCPServer>
The MCP server configuration
Throws
401 - Not authenticated
Throws
404 - Server not found
Example
import { getMCPServer } from "@cpod/sdk";
const server = await getMCPServer("server-123");
console.log(`Server: ${server.name}`);