Skip to main content
Glama

Bind an MCP server

bind_mcp_server
DestructiveIdempotent

Create or update the binding for a server the repository declares. roles is the full set of pipeline roles that may use it (reviewer and qa only ever receive read-only tools, and cannot use a server that runs inside the sandbox). transport: 'remote' (the gateway proxies to the server's URL), 'isolate' (the gateway runs the server's npm package in isolation, for a command that needs a secret) or 'local' (the command runs inside the sandbox, no credential). Omit transport and remoteUrl on an update to keep the server the binding is pinned to, with its credential (a roles, tools or credential edit); set them only to bind or re-point the server. Requires the config:write capability.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rolesYesEvery role that may use the server ([] disables it)
projectIdYesProject id, e.g. from list_projects
remoteUrlNoA fixed https URL: a hosted endpoint for a command server, or an override for a URL server
transportNo
credentialNoWrite-only credential the gateway attaches; agents never receive it. Omit to keep the stored one. OAuth credentials are not set here: bind as remote with kind 'none', then start_mcp_server_oauth.
serverNameYesServer name as the repository's MCP file declares it (see list_mcp_servers)
approvedToolsNoThe approved subset of the tool snapshot (refresh_mcp_server_tools first). Omit to keep it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.