Create Mcp Server
client.mcpServers.create(McpServerCreateParamsbody, 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({
args: ['string'],
command: 'command',
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"
},
"type": "sse"
}Returns Examples
{
"args": [
"string"
],
"command": "command",
"server_name": "server_name",
"id": "mcp_server-123e4567-e89b-12d3-a456-426614174000",
"env": {
"foo": "string"
},
"type": "sse"
}