Search the documentation
20 pages for addmcpserver.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
mcp-connector
Claude Developer Platform · in the page
agents-and-tools/mcp-connector
….addUserMessage("What tools do you have available?") .addMcpServer(BetaRequestMcpServerUrlDefinition.builder() .url("https://example-server.modelcontextprotocol.io/sse")…
overview
Claude Developer Platform · in the page
agents-and-tools/mcp-tunnels/overview
….addUserMessage("Use the hello tool to greet tunnel.") .addMcpServer(BetaRequestMcpServerUrlDefinition.builder() .url("https://echo.YOUR_TUNNEL_DOMAIN_HERE/mcp")…
mid-conversation-system-messages
Claude Developer Platform · in the page
build-with-claude/mid-conversation-system-messages
…5) .addBeta(AnthropicBeta.MCP_CLIENT_2026_09_15) .addMcpServer(BetaRequestMcpServerUrlDefinition.builder() .url("https://mcp.example.com/calendar") .nam…
github
Claude Developer Platform · in the page
managed-agents/github
…stem("You are a code review assistant with access to GitHub.") .addMcpServer(BetaManagedAgentsUrlMcpServerParams.builder() .type(BetaManagedAgentsUrlMcpServerParams.Type.URL)…
mcp-connector
Claude Developer Platform · in the page
managed-agents/mcp-connector
…) .model(BetaManagedAgentsModel.CLAUDE_OPUS_5_5) .addMcpServer( BetaManagedAgentsUrlMcpServerParams.builder() .type(BetaManagedAgentsUrlMcpServerPar…
multiagent-orchestration
Claude Developer Platform · in the page
managed-agents/multiagent-orchestration
….model(BetaManagedAgentsModel.CLAUDE_HAIKU_4_5) .addMcpServer(BetaManagedAgentsUrlMcpServerParams.builder() .name("github") .type(BetaManagedAgentsUrlM…
permission-policies
Claude Developer Platform · in the page
managed-agents/permission-policies
…) .model(BetaManagedAgentsModel.CLAUDE_OPUS_5_5) .addMcpServer( BetaManagedAgentsUrlMcpServerParams.builder() .type(BetaManagedAgentsUrlMcpServerPar…
session-operations
Claude Developer Platform · in the page
managed-agents/session-operations
….mcpServerName("linear") .build()) .addMcpServer(BetaManagedAgentsUrlMcpServerParams.builder() .type(BetaManagedAgentsUrlMcpServerParams.Type.URL)…
Build an MCP server
Model Context Protocol · in the page
docs/2024-11-05/develop/build-server
….CreateEmptyApplicationBuilder(settings: null); builder.Services.AddMcpServer() .WithStdioServerTransport() .WithToolsFromAssembly(); builder.Services.AddSingleton(_ => {…
Understanding Authorization in MCP
Model Context Protocol · in the page
docs/2024-11-05/tutorials/security/authorization
…builder.Services.AddHttpContextAccessor(); builder.Services.AddMcpServer() .WithTools<MathTools>() .WithHttpTransport(); var app = builder.Build(); app.UseAuthentic…
Build an MCP server
Model Context Protocol · in the page
docs/2025-03-26/develop/build-server
….CreateEmptyApplicationBuilder(settings: null); builder.Services.AddMcpServer() .WithStdioServerTransport() .WithToolsFromAssembly(); builder.Services.AddSingleton(_ => {…
Understanding Authorization in MCP
Model Context Protocol · in the page
docs/2025-03-26/tutorials/security/authorization
…builder.Services.AddHttpContextAccessor(); builder.Services.AddMcpServer() .WithTools<MathTools>() .WithHttpTransport(); var app = builder.Build(); app.UseAuthentic…
Build an MCP server
Model Context Protocol · in the page
docs/2025-06-18/develop/build-server
….CreateEmptyApplicationBuilder(settings: null); builder.Services.AddMcpServer() .WithStdioServerTransport() .WithToolsFromAssembly(); builder.Services.AddSingleton(_ => {…
Understanding Authorization in MCP
Model Context Protocol · in the page
docs/2025-06-18/tutorials/security/authorization
…builder.Services.AddHttpContextAccessor(); builder.Services.AddMcpServer() .WithTools<MathTools>() .WithHttpTransport(); var app = builder.Build(); app.UseAuthentic…
Build an MCP server
Model Context Protocol · in the page
docs/2025-11-25/develop/build-server
….CreateEmptyApplicationBuilder(settings: null); builder.Services.AddMcpServer() .WithStdioServerTransport() .WithToolsFromAssembly(); builder.Services.AddSingleton(_ => {…
Understanding Authorization in MCP
Model Context Protocol · in the page
docs/2025-11-25/tutorials/security/authorization
…builder.Services.AddHttpContextAccessor(); builder.Services.AddMcpServer() .WithTools<MathTools>() .WithHttpTransport(); var app = builder.Build(); app.UseAuthentic…
Build an MCP server
Model Context Protocol · in the page
docs/2026-07-28/develop/build-server
….CreateEmptyApplicationBuilder(settings: null); builder.Services.AddMcpServer() .WithStdioServerTransport() .WithToolsFromAssembly(); builder.Services.AddSingleton(_ => {…
Understanding Authorization in MCP
Model Context Protocol · in the page
docs/2026-07-28/tutorials/security/authorization
…builder.Services.AddHttpContextAccessor(); builder.Services.AddMcpServer() .WithTools<MathTools>() .WithHttpTransport(); var app = builder.Build(); app.UseAuthentic…
Build an MCP server
Model Context Protocol · in the page
docs/draft/develop/build-server
….CreateEmptyApplicationBuilder(settings: null); builder.Services.AddMcpServer() .WithStdioServerTransport() .WithToolsFromAssembly(); builder.Services.AddSingleton(_ => {…
Understanding Authorization in MCP
Model Context Protocol · in the page
docs/draft/tutorials/security/authorization
…builder.Services.AddHttpContextAccessor(); builder.Services.AddMcpServer() .WithTools<MathTools>() .WithHttpTransport(); var app = builder.Build(); app.UseAuthentic…