API referenceConsole
protocol
Connect any MCP server over OAuth or an API key, and Polylane's agents can call its tools during investigations, with every call recorded in the thread.

Connect

Connect MCP Server from the terminal. Pass --help for the flags MCP Server accepts.

Terminal
polylane integration connect --type mcp

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.

Terminal
polylane integration disconnect <id>