{"name":"addMcpServer","slug":"addmcpserver","family":"setting","title":"Settings keys","noun":"settings key","description":"Headless SDK sessions expose a session object for MCP servers with addMcpServer, removeMcpServer, toast, status and refreshContext.","description_source":"entry","described_by":{"version":"2.1.259","anchor":"headless-sdk-sessions-expose-a-bindable-toolregister-ap"},"presence":{"first_seen":null,"removed_in":null,"in_current_build":false,"newest_mined":"2.1.322","builds":0,"mined_builds":161,"first_cited":{"version":"2.1.260","released_at":"2026-09-03 22:32:02","spans":1}},"aliases":[],"entries":[{"version":"2.1.281","anchor":"removing-an-mcp-server-now-cancels-a-pending-add-of-the-same","heading":"Removing an MCP server now cancels a pending add of the same server","line":"Removing an MCP server while it is still being added now cancels the add, so it does not reappear","released_at":"2026-09-23 17:01:17","reason":"found in this entry's text, named in this entry"},{"version":"2.1.260","anchor":"plugin-toolregister-now-bounds-mcp-server-connect-time","heading":"Plugin $.tool.register now bounds MCP server connect time","line":"Plugin tool registration now times out instead of hanging on a slow MCP server connect.","released_at":"2026-09-03 22:32:02","reason":"found in this entry's text"},{"version":"2.1.259","anchor":"headless-sdk-sessions-expose-a-bindable-toolregister-ap","heading":"Headless SDK sessions expose a bindable $.tool.register API for MCP servers","line":"Headless SDK sessions expose a session object for MCP servers with addMcpServer, removeMcpServer, toast, status and refreshContext.","released_at":"2026-09-02 21:21:42","reason":"found in this entry's text, named in this entry"}],"entries_total":3,"docs":[{"source":"api","path":"agents-and-tools\/mcp-connector","title":"mcp-connector","documented":false},{"source":"api","path":"agents-and-tools\/mcp-tunnels\/overview","title":"overview","documented":false},{"source":"api","path":"build-with-claude\/mid-conversation-system-messages","title":"mid-conversation-system-messages","documented":false},{"source":"api","path":"managed-agents\/github","title":"github","documented":false},{"source":"api","path":"managed-agents\/mcp-connector","title":"mcp-connector","documented":false},{"source":"api","path":"managed-agents\/multiagent-orchestration","title":"multiagent-orchestration","documented":false},{"source":"api","path":"managed-agents\/permission-policies","title":"permission-policies","documented":false},{"source":"api","path":"managed-agents\/session-operations","title":"session-operations","documented":false},{"source":"mcp","path":"docs\/2024-11-05\/develop\/build-server","title":"Build an MCP server","documented":false},{"source":"mcp","path":"docs\/2024-11-05\/tutorials\/security\/authorization","title":"Understanding Authorization in MCP","documented":false}],"docs_total":12,"gates":[],"related":[],"url":"https:\/\/changelogs.core-directive.com\/reference\/setting\/addmcpserver","family_url":"https:\/\/changelogs.core-directive.com\/reference\/setting.json"}