Skip to content

ServerInput

The name, URL and authentication of an MCP server, and which of its tools agents can use.

Property Type Description
name string The server's name. To give an agent this server's tools, add name/* to the agent's tools. Each tool is named name__tool. Use up to 32 letters, digits, - and _. Don't use __.
url string The server's full HTTPS URL. The server must support Streamable HTTP.
auth | { none: { }; } | { oauth: { scopes?: string[]; issuer?: string; authorization_endpoint?: string; token_endpoint?: string; client_id?: string; client_secret?: { name: string; }; client_auth?: "post" | "basic"; authorization_params?: { [k: string]: string; }; provider?: string; }; } | { secret: { name: string; header?: string; scheme?: string; }; } How agents authenticate to the server.
only? string[] The tools to include, by the names the server uses. Defaults to all tools.
except? string[] The tools to exclude, by the names the server uses.