Connecting MCP Servers
What you can do
Section titled “What you can do”In MCP under Settings, you can register and manage MCP servers shared by all workspaces. You can register servers started by a local command (stdio) and remote servers (HTTP). For registered servers, you can turn them on or off, test the connection, sign in, edit them, and delete them.
When to use it
Section titled “When to use it”- Use it when you want the Agent to use an MCP server you register.
- Use “Test Connection” when you want to check that a registered server can be reached before you start a chat.
- Use “OAuth Advanced Settings” when you want to connect to an HTTP server that does not support OAuth Dynamic Client Registration (DCR), using a client you registered in advance with the service.
Add a server
Section titled “Add a server”- Open MCP in Settings and press “Add Server”.
- Enter the server’s name in “Name”. Letters, digits,
_, and-are allowed. - In “Transport”, choose “stdio (local command)” or “HTTP (remote server)”.
- Fill in the following fields for the transport, and save.
For stdio:
- Command (command): Specify a single executable, not a shell string.
- Arguments (args): Each field is one argument. Use “Add Argument” to add fields.
- Working Directory (cwd): In connection tests, relative paths are resolved from
userData/pi. In chats, they are resolved from the worktree. - Environment Variables (env): Specify pairs of keys and values. Use “Add Key and Value” to add fields.
For HTTP:
- URL (url): Enter the server’s URL. Example:
https://mcp.example.com/mcp - Headers (headers): Specify pairs of keys and values. Use “Add Key and Value” to add fields.
Keys must not be blank and must not repeat.

Operate on servers in the list
Section titled “Operate on servers in the list”Registered servers are listed, with the transport (stdio / HTTP) shown next to the name. Each row has the following operations.
- Enabled: Clear the check box to stop using that server.
- Test Connection: Checks that the server can be reached.
- Sign In / Sign Out: Appear for HTTP servers that do not specify
Authorizationin the headers. “Signed in” or “Not signed in” appears next to the name. - Edit: Changes the registered content.
- Delete: When you confirm the deletion on the confirmation screen, the server is removed from the list.
“Invalid” appears next to the name of a server whose settings contain an error. Use “Reload” at the top right of the list to reload the display.
OAuth Advanced Settings
Section titled “OAuth Advanced Settings”When the transport is HTTP, the form shows “OAuth Advanced Settings (for servers without DCR support)”. Open it to fill in the following five fields.
- Client ID: The ID of the client you registered in advance with the service.
- Client Secret: The client’s secret.
- Callback URL: Enter the same value as the redirect URI registered with the service. Only HTTP loopback addresses (
localhost,127.0.0.1,[::1]) are allowed. Example:http://127.0.0.1:8765/callback - Scope: Separate values with spaces. If left blank, all scopes the server advertises are requested.
- Auth Server Metadata URL: Specify this only if the authorization server cannot be detected automatically.
After saving, press “Sign In” in the list and authorize on the service’s screen.
Apply the changes
Section titled “Apply the changes”To apply added or changed settings to the Agent, start a new chat with /new or restart the app.
- Values entered for environment variables, headers, and Client Secret are saved as plain text.
- Values of environment variables and headers, and Client Secret, can reference environment variables in the
${ENV_VAR}format. - Saved credentials may remain even after you delete a server.