Update Mcp Server
client.mcpServers.update(stringmcpServerID, McpServerUpdateParams { config, server_name } body, RequestOptionsoptions?): McpServerUpdateResponse
PATCH/v1/mcp-servers/{mcp_server_id}
Update 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.update('mcp_server_id', {
config: {
args: ['string'],
command: 'command',
mcp_server_type: 'stdio',
},
});
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"
}