Claude Code can use o11 to retrieve current documentation, read an approved public page, or prepare an asset through eligible external tools. Connect the assistant once over MCP, then keep the useful output with your project instead of building a new provider client for each capability.
This guide takes you from the connection configuration to one bounded task: inspect a suitable operation, request the approved work, retain its source or artifact, and recover the existing invocation if it takes longer than a turn. The result should be something a developer can review and use in the repository.
Prepare the connection
You need Claude Code with remote HTTP MCP support, an HTTPS o11 tools origin supplied for your environment, and a scoped application key. The key should allow only the operations relevant to this project and the accounts it may use.
The examples follow the implemented bearer-key contract. Confirm supplier access, pricing, and limits before paid execution; a catalog entry alone does not establish that the operation is activated in your workspace.
Keep the origin and key in the environment available to Claude Code. Use O11_TOOLS_URL for the origin without /mcp, and O11_API_KEY for the application key. Do not paste a real key into the conversation or commit it to the repository.
Before enabling execution, ask the workspace administrator to confirm the effective tool scope, available connections, action permissions, and spending limits. A valid connection does not establish that a particular supplier is configured.
Claude Code documents local, project, and user MCP scopes. Choose project scope for a reviewed configuration shared by a team, with secret values supplied individually. Choose a private scope for a personal experiment. Claude Code MCP setup.
Configure HTTP MCP with environment references
For a project configuration, merge the following entry into the repository’s .mcp.json. Preserve existing server entries.
{
"mcpServers": {
"o11": {
"type": "http",
"url": "${O11_TOOLS_URL}/mcp",
"headers": {
"Authorization": "Bearer ${O11_API_KEY}"
}
}
}
} Claude Code supports environment expansion in remote URLs and headers. The variable syntax here is Claude Code’s syntax; it differs from Cursor’s ${env:NAME} form. This example contains references rather than secret values. Claude Code environment expansion.
Start Claude Code from an environment where those variables exist. Use /mcp to inspect the connection. A server entry loading successfully is not the same as credentials being accepted or tools being usable. Review the actual connection status.
If your organization manages MCP configuration centrally, follow that approved configuration path. Avoid creating several conflicting entries for the same endpoint. The selected server configuration should be clear to the person debugging it.
Verify discovery before purchasing work
Use a prompt that makes the intended boundary explicit:
Use o11 to discover tools for extracting a public web page.
Inspect the best matching eligible operation.
Report its exact identifier, required inputs, account requirements,
pricing evidence, and lifecycle. Do not invoke a supplier yet. The assistant should use discover to obtain candidates and inspect for the selected identifier. The expected outcome is an operation review, not a successful extraction. If a required account or rate is missing, that is useful information to resolve before execution.
Check that the assistant reports provider-specific requirements accurately. A generic “extract URL” description is insufficient if the operation requires a particular body shape or connected account. Required identifiers must come from actual configuration or prior results.
Discovery in the current o11 contract matches names, providers, and identifiers. If a broad term returns little, try a known capability term or provider. Do not describe that behavior as semantic search or infer unsupported operations from a brand name.
Give the assistant a bounded first task
Choose one approved public page and define an output you can inspect. For example: extract the product description and retain the source URL, then write a short implementation note in a local file.
The instruction should include permitted work, a spending ceiling chosen by the operator, and a stop condition. Do not allow account creation, subscription changes, email, publishing, or unrelated purchases just because the catalog contains them.
Read the approved public URL using the inspected o11 operation.
Use the configured account mode and the approved maximum for this task.
Preserve the invocation identifier and reuse the original intent on retry.
Return source-backed notes and mark missing content explicitly.
Stop after the requested page; do not create services or publish anything. This is an instruction template. Replace “approved URL” and the budget through your actual task configuration. A prompt is useful communication, but the server-side policy must enforce the limits. A model’s promise to stay within a budget is not enforcement.
For a larger task, use the company research workflow after the single-operation path is understood.
Understand the returned state
An invocation can be accepted before its work finishes. o11 receipts distinguish states such as queued, executing, waiting, succeeded, failed, cancelled, and unknown. A tool response containing a receipt should not be summarized as a completed deliverable unless the state and result support that claim.
When work is pending, retain its identifier and use get_invocation. For long-running generation, the assistant can report that work is pending and return later to the same invocation. It should not start another job merely because the first response is incomplete.
If the state is unknown, preserve the existing call and request the supported recovery path. The application may need operator reconciliation using supplier evidence. Asking the assistant to “try harder” is not a reason to create another purchase.
A failure can still involve supplier usage. Do not infer a refund or zero charge from the word failed. Review the receipt and the configured billing model. The recovery guide explains these distinctions in more depth.
Turn results into reviewable project work
The useful output is often a local artifact: a research note, a proposed content change, an image reference, or a structured evidence file. Ask Claude Code to keep provenance with that artifact.
For a research note, retain source URLs, retrieval time, relevant excerpts within appropriate limits, and unresolved questions. For generated media, retain the prompt, operation identifier, output format, and download status. Do not embed expiring result links into long-lived application code without a storage plan.
Separate tool completion from repository changes. Extracting a page does not authorize replacing product copy. Generating an image does not authorize publishing it. The user’s project instructions still govern edits, deployments, and external actions.
This makes the assistant productive without obscuring the review boundary. A developer can examine the evidence and the proposed diff together. If an optional tool fails, the completed local work should remain available.
Our coding agent workflow applies the same pattern to a larger build task.
Diagnose the first connection
| Symptom | First check | Useful next action |
|---|---|---|
| Server does not connect | Origin, /mcp path, environment availability | Inspect /mcp status and configuration |
| Authentication rejected | Key validity, expiration, effective policy | Fix through the administrator; do not broaden scope blindly |
| No relevant candidates | Scope and search terms | Try a known operation or inspect eligibility |
| Tool requires an account | Connection availability and operation contract | Connect the correct account or choose an eligible path |
| Accepted work stays pending | Existing invocation state | Retrieve that invocation rather than resubmit |
| Output misses required content | Actual retrieved evidence | Mark the limitation or authorize a suitable alternative |
Keep diagnostic output free of secrets. Connection logs can be useful, but do not paste authorization headers or account credentials into an issue. Share status codes and sanitized error details instead.
If a server is configured but the assistant does not use it, narrow the task and request discovery explicitly. That distinguishes a selection problem from a transport problem without paying for unnecessary calls.
Establish a repeatable project pattern
Once the first task works, document the approved tool set, account choices, result acceptance criteria, and recovery behavior in the project. Keep the runtime credential out of that document.
Use separate execution credentials for different projects or environments. Share the non-secret configuration pattern and task rubric. This reduces repeated setup while preserving attribution and revocation.
The snippets here were checked against the current o11 request contract and Claude Code documentation. They are not evidence of live paid supplier certification or an executed Claude Code session against a production account. Confirm environment activation before paid use.
If you need the same capabilities in an application server, use the custom agent adapter. If several runtimes share them, build a reusable tool layer around domain-specific operations and retained invocation records.





