Create Mcp Server
client.mcpServers.create(McpServerCreateParams { config, server_name } body, RequestOptionsoptions?): McpServerCreateResponse
/v1/mcp-servers/
Add a new MCP server to the Letta MCP server config
Parameters
Returns
Create Mcp Server
import Letta from '@letta-ai/letta-client';
const client = new Letta({
apiKey: 'My API Key',
});
const mcpServer = await client.mcpServers.create({
config: { args: ['string'], command: 'command', mcp_server_type: 'stdio' },
server_name: 'server_name',
});
console.log(mcpServer);
{
"args": [
"string"
],
"command": "command",
"server_name": "server_name",
"id": "mcp_server-123e4567-e89b-12d3-a456-426614174000",
"env": {
"foo": "string"
},
"mcp_server_type": "stdio"
}Returns Examples
{
"args": [
"string"
],
"command": "command",
"server_name": "server_name",
"id": "mcp_server-123e4567-e89b-12d3-a456-426614174000",
"env": {
"foo": "string"
},
"mcp_server_type": "stdio"
}