MCP Server
Connect
Connect MCP Server from the terminal. Pass --help for the flags MCP Server accepts.
polylane integration connect --type mcpThe HTTPS endpoint of any Model Context Protocol server.
Connect any server that speaks the Model Context Protocol (MCP), such as a vendor's hosted server or your own. The tools that the server exposes become tools of the Polylane agent.
- Enter the server URL: the HTTPS endpoint of your MCP server. Polylane blocks private, loopback, and cloud metadata addresses.
- Choose the transport: Streamable HTTP (recommended) or SSE (legacy).
- Give it a display name. Polylane fills it in from the server.
- Choose authentication:
- None for public servers.
- Bearer token, sent as
Authorization: Bearer <token>. - OAuth 2.0, with optional scopes. Polylane sends you to the server to authorize.
- Polylane gets the list of tools from the server. Click Connect to finish.
Bearer tokens are encrypted before they are stored, and the agent never sees them.
How it works
Tools in agent threads
At the start of each turn, the agent connects to the server and loads its tools next to the built-in Polylane tools. The agent then calls them like any other tool, in chats and fix runs. The autofix agent and the background sweeps do not load MCP tools.
Polylane calls the server with the credential that you gave on connect. With OAuth, Polylane stores the tokens and refreshes them when they expire. When the server is not reachable, the agent works without its tools for that turn.
Choose the tools
The integration page lists the tools of the server. Turn a tool off to keep it away from the agent. Until you turn a tool off, every tool that the server lists is available, and new tools on the server become available too. After you turn one off, only the tools that are on stay available. Click Refresh tools to get the list again after the server changes.
Writes
Polylane does not ask for approval before an MCP tool call. A tool that changes data on the server runs when the agent calls it. To limit what agents can do, turn off the tools that write, or connect with a token that has only the access that you want to give.
Disconnecting
Disconnect the MCP server in Polylane. Agents lose its tools from the next turn. Revoke the token or the OAuth grant on the server to remove the access of Polylane there.
Disconnect
Disconnecting stops every sync and check and deletes the credentials Polylane held. Everything Polylane set up in MCP Server is removed as well; nothing is left behind.
polylane integration disconnect <id>