Create Mcp Server
client.mcpServers.create(McpServerCreateParams { config, server_name } body, RequestOptionsoptions?): McpServerCreateResponse
POST/v1/mcp-servers/
Create Mcp Server
import Letta from '@letta-ai/letta-client';
const client = new Letta({
apiKey: process.env['LETTA_API_KEY'], // This is the default and can be omitted
});
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"
}