Quad Harness
0.2.0Download

Docs Extend

MCP servers

Connect MCP servers over stdio, Streamable HTTP or the older HTTP and SSE, sign in with OAuth, and decide which of their tools may run without asking.

7 min read

Quad Harness is an MCP client. An MCP server gives the agent tools (and sometimes resources and prompts) for a service: a filesystem, a database, an issue tracker, a hosted API. A server is either a program the app runs on your Mac (stdio) or a URL it talks to (Streamable HTTP, or the older HTTP+SSE).

MCP servers need the MCP servers feature switched on.

The MCP servers page

Open Settings → Tools and connections → MCP servers. It has two views:

  • Yours: the servers you added, with their status, number of tools, and buttons to Sign in or Sign out, Restart and remove. Reconnect at the top reconnects every server.
  • Discover: about 65 well-known servers. Choosing one connects it straight away. Only entries that need a folder, a token or an environment variable open a short pre-filled form first.

The composer’s paperclip menu has Connectors and plugins…, which opens this page too.

Add a server

Choose Add and pick Command (stdio) or URL (HTTP).

A program on your Mac (stdio)

Field Example
Id filesystem. Used to name its tools, so keep it short.
Name Filesystem
Command npx
Arguments -y @modelcontextprotocol/server-filesystem ~/code/my-app
Environment KEY=value, one per line (optional)

Choose Add server. The app starts the program and lists its tools.

Tip. An app opened from Finder normally has a bare PATH where npx, node and uvx cannot be found. Quad Harness asks your login shell for its PATH once and uses it, so commands that work in your terminal work here too, unless the server’s own environment sets PATH.

A server at a URL (HTTP)

Field Example
Id docs
Name Docs
URL https://example.com/mcp

Under Advanced options:

Option What it does
Headers Extra request headers, one per line, such as Authorization: Bearer <token>. Saved in mcp.json on this Mac.
MCP transport Automatic (Streamable HTTP, and the older HTTP+SSE if the server refuses the newer handshake), Streamable HTTP or HTTP+SSE (older)
OAuth client id Only for a server that signs in with OAuth and has no automatic registration
OAuth scope Optional, space separated
Trust this server’s read-only hints See Permissions below

If the server asks you to sign in, the sign-in page opens as soon as you add it.

Signing in with OAuth

A server that needs a sign-in answers with a challenge, and the app shows Sign in for it. When you choose it (or when you add such a server):

  1. Your browser opens the server’s sign-in page.
  2. You approve access there.
  3. The browser is sent back to a short-lived address on this Mac that the app listens on for that one sign-in (five minutes at most), and the app comes back to the front.
  4. The server reconnects with its tools.

The app follows the MCP authorization specification: it finds the authorization server from the server’s metadata, registers itself automatically unless you gave a client id, and signs in with PKCE.

  • Tokens are sent only to the server they were issued for, refreshed shortly before they expire, and stored in mcp-auth.json in the data folder, readable only by your account. They never appear in a status list or a log.
  • If the refresh stops working, the sign-in is dropped and the server asks you again. Sign out forgets the tokens.
  • A server whose headers already contain Authorization uses that header, not OAuth.
  • Endpoints that are not https (other than on this Mac) are refused.

Some hosted servers only fully trust clients they have reviewed. With those, an automatic registration may sign in with fewer rights (for example without access to a team). The server’s own recovery steps, or a client id it issues, fix that.

Note. The OAuth flow has been tested against servers that follow the specifications, and the first leg was checked against real hosted servers. Signing in as a person and exchanging the code has not been tried against every provider. Expect the odd provider quirk the first time.

Some hosted services (Slack, Asana, Box, PagerDuty, Render) need an OAuth app registered with them first. They are not in Discover. Add them with Add, putting the client id under Advanced options.

How servers behave

  • Tool names are mcp__<server id>__<tool>, kept within 64 characters (what OpenAI-style APIs accept). A name that would not fit is shortened and given a short hash.
  • The tool list is read in full and refreshed when a stdio or HTTP+SSE server announces a change. A Streamable HTTP server’s list is refreshed when it reconnects.
  • Long results are cut, and say so. A result over 120,000 characters ends with a note, so the model does not take half a file for the whole of it.
  • Calls run at the same time. One slow tool never holds up the others.
  • A server that dies is started again by the next call that needs it. The call that was in flight fails and is not retried, since it may have had effects.
  • A failed start explains itself: the last lines the server wrote to its error output are included, and a missing program is reported as not found on PATH.
  • Stopping a server ends its whole process group, so helpers an npx launcher started are not left behind.
  • Protocol versions 2025-06-18, 2025-03-26 and 2024-11-05 are supported. The one the server chose shows in its status.

Permissions

Because the app cannot know what an MCP tool does:

  • Standard mode asks before every MCP tool call.
  • Plan mode blocks them.

A server can mark tools as read-only, but that is the server’s own claim, so it is ignored by default. Tick Trust this server’s read-only hints for a server you trust. Then the tools it marks read-only run without asking in Standard mode and stay available in Plan mode. Its other tools still ask or are blocked.

In Standard mode the approval card can offer Always allow for one MCP tool at a time. See Permissions.

Resources and prompts

  • Resources are documents or records a server can serve by address. While such a server is connected, the agent gets mcp_resources (to list them) and mcp_read_resource (to read one). Reading follows the same rule as tools: it asks in Standard mode and is blocked in Plan mode unless the server is trusted. Binary content is described rather than pasted, and text over 100,000 characters is cut with a note.
  • Prompts are templates meant for you, not the model, so the model is never given them. In 0.2.0 they are available through the headless protocol (mcp/prompts, mcp/getPrompt), not yet in the window.

Configuring with a file

You can also write mcp.json in the app’s data folder (~/Library/Application Support/dev.quad.harness/mcp.json):

[
  {
    "id": "filesystem",
    "name": "Filesystem",
    "command": "npx",
    "args": ["-y", "@modelcontextprotocol/server-filesystem", "/Users/you/code/my-app"]
  },
  {
    "id": "docs",
    "name": "Docs",
    "url": "https://example.com/mcp",
    "headers": { "Authorization": "Bearer <token>" },
    "timeoutSeconds": 60,
    "trustReadOnlyHints": true
  },
  {
    "id": "crm",
    "name": "CRM",
    "url": "https://crm.example.com/mcp",
    "oauth": { "scope": "read write" }
  }
]
Field Meaning
id, name id names the tools; name is for display
command, args, env A stdio server: the program, its arguments, extra environment
url, headers An HTTP server and extra request headers
transport auto (default), http or sse
oauth clientId, clientSecret, scope. Only when needed.
enabled false keeps the entry without connecting (default true)
timeoutSeconds How long one tool call may take (default 120)
trustReadOnlyHints Believe the server’s read-only hints (default false)

Choose Reconnect on the MCP servers page after editing the file.

Not supported yet

Resource subscriptions, completion for prompt arguments, sampling and elicitation requests from servers, and telling servers about your folders (give a filesystem server its folder in its arguments). Only the interactive OAuth sign-in is built, not client-credentials flows.

Warning. Servers run with your user account and see what you send them. Only add servers you trust, and treat headers as secrets: mcp.json is plain text.

If you switch MCP servers off in Settings → Features, every server is disconnected at once and the page leaves Settings.