MCP integrations: tools, transport, and authorization
Review tool contracts and the MCP 2026-07-28 authorization model before wiring a server into a harness.
An MCP integration is part of your harness’s tool boundary. Review what the client supports, what the server exposes, and which component authorizes each action.
Authorization has changed
The MCP authorization specification dated 2026-07-28 allows client IDs to be obtained through Client ID Metadata Documents, pre-registration, or Dynamic Client Registration, subject to its selection rules. Dynamic registration is not a universal requirement. HTTP authorization and local stdio credential handling have different requirements; use the transport-specific guidance.
The earlier version of this article claimed that clients needed dynamic registration and could not use pre-registered IDs. That guidance has been removed.
Treat each tool as a contract
For each proposed tool, write down:
- The user task that should cause the agent to select it.
- Its input schema, required identifiers, and validation behavior.
- The permissions checked by the runtime and service.
- Whether it reads or changes external state.
- How a caller can distinguish success, partial completion, and failure.
- Whether retrying is safe, and how duplicate operations are handled.
Then test realistic prompts, ambiguous prompts, malformed arguments, denied access, and timeouts. An illustrative deployment tool should report an operation identifier and state; returning “deployment started” is not evidence of completion.
Size the tool surface empirically
There is no universal fifteen-tool limit that establishes reliability. Measure selection and argument correctness for your client, model, and workload. Group operations when doing so improves the interface, then compare against separate tools.
Anthropic’s tool-design guidance discusses evaluation, clear descriptions, and managing tool response context. Use those techniques to investigate observed mistakes instead of adding unsupported numerical rules.
Integration exercise
Implement a read-only build-log tool first. Give it a bounded response size and a reference to the complete artifact. Test a timeout and an authorization failure. Next, add a write operation with a separate permission scope and a reconciliation strategy.
Verify protocol version and transport support against the MCP specification and the actual clients you support. Protocol support does not imply that every optional capability works in every client.
For the runtime around the integration, read harness engineering.