createMCPServer()
createMCPServer(
request:CreateMCPServerRequest):Promise<MCPServer>
Defined in: packages/core/src/index.ts:3029
Create a new MCP server configuration
Parameters
| Parameter | Type | Description |
|---|---|---|
request | CreateMCPServerRequest | Server creation data (name, url, tools) |
Returns
Promise<MCPServer>
The created MCP server
Throws
400 - Invalid server configuration
Throws
401 - Not authenticated
Example
import { createMCPServer } from "@cpod/sdk";
const server = await createMCPServer({
name: "Custom Tools Server",
url: "https://mcp.example.com",
description: "Custom MCP tools",
});