Skip to main content

Configure a client by hand

hostingctl mcp setup writes these entries for you. Use this page if you prefer to edit the client's configuration yourself, or your client is not one setup supports. You do not need hostingctl.

Codex HTTP configuration​

Choose a URL entry instead of the local command entry. In ~/.codex/config.toml, or a trusted project's .codex/config.toml:

[mcp_servers.hosting]
url = "https://hosting.haak.co/mcp"
scopes = ["mcp:read", "mcp:write", "mcp:api:read", "mcp:api:write"]

Then sign in:

codex mcp login hosting --oauth-client-registration dcr --scopes mcp:read,mcp:write,mcp:api:read,mcp:api:write

These grants request standard reads and mutations plus full API discovery, reads and writes. API permissions and the client capabilities required for each operation still apply. The optional local stdio connection can remain under a separate name. Restart Codex after editing configuration. An added HTTP URL does not authenticate itself: complete that entry's login first.

For a terminal without a browser, add --no-browser and follow Codex's printed callback instructions. For less access, use the matching scope list from the access presets in both scopes and the login command. After any scope change, follow Reauthorize changed scopes.

To connect a second Hosting installation as well, add another entry under a different name with that installation's /mcp address, and sign in to it separately.

Examples were checked against Codex CLI 0.172.0 on 2026-11-28; OpenAI's MCP guide owns current client options.

Claude Code HTTP configuration​

Merge this entry into ~/.claude.json (user-wide), or .mcp.json in your project. Keep existing entries and settings. If CLAUDE_CONFIG_DIR is set, its .claude.json is the user file instead.

{
"mcpServers": {
"hosting": {
"type": "http",
"url": "https://hosting.haak.co/mcp",
"oauth": { "scopes": "mcp:read mcp:write mcp:api:read mcp:api:write" }
}
}
}

Sign in with the configured scopes:

claude mcp login hosting

In Claude Code you can also run /mcp, select hosting, and authenticate. Approve the signed-in account and all four requested scopes in the browser. Project configurations may need approval before loading. Keep oauth.scopes pinned; use the preset table for less access and reauthorize after changing it. Claude Code's MCP guide owns current settings and sign-in UI.

Pi HTTP configuration​

Use a current Pi release with built-in MCP support (pi mcp --help should work). Merge this into ~/.pi/agent/mcp.json, or .pi/mcp.json in a trusted project. If PI_CODING_AGENT_DIR is set, its mcp.json is the user file instead. No MCP adapter extension is required.

{
"mcpServers": {
"hosting": {
"url": "https://hosting.haak.co/mcp",
"oauth": {
"scope": "mcp:read mcp:write mcp:api:read mcp:api:write",
"clientRegistration": "dcr"
}
}
}
}
pi mcp login hosting
pi mcp list

For the project file, sign in with pi mcp login hosting --local. In a running Pi session use /mcp to inspect or reconnect the entry. Approve the signed-in account and all four requested scopes in your browser. Use the preset table for less access and reauthorize after changing oauth.scope. An installed MCP adapter can replace Pi's built-in support; check that adapter's configuration and OAuth instructions if you choose to keep it. Pi's MCP guide owns current native options.

Reauthorize changed scopes​

Editing a file or rerunning setup does not expand an existing OAuth grant. After changing scopes, clear that connection's stored grant and sign in again. These commands use the example name hosting; use your configured name if it differs:

codex mcp logout hosting
codex mcp login hosting --oauth-client-registration dcr --scopes mcp:read,mcp:write,mcp:api:read,mcp:api:write
claude mcp logout hosting
claude mcp login hosting
pi mcp logout hosting
pi mcp login hosting

For a Pi project connection, add --local to both Pi commands. Claude and Pi read scopes from the configuration above; for Codex keep the configured array and --scopes list aligned. If you chose a lower-permission preset, use its scope list instead. Complete the browser consent, then restart or reload the client and call whoami to check memberships, access and the actual tool catalogue. These login/logout commands were checked with Codex 0.172.0, Claude Code 2.1.332 and Pi 1.7.0 on 2026-11-29. They clear the selected client's MCP credential, not a hostingctl login.

Reconnect after a Hosting upgrade​

Clients keep the tool list they read when they connected. If a tool that worked before an upgrade fails with "Structured content does not match the tool's output schema", reconnect so the client reads the current tool list: run /mcp and reconnect in Claude Code, restart Codex, or /reload Pi. No new sign-in is needed.

Other HTTP clients and connection checks​

In Claude web/desktop or another compatible client, add a custom connector using your deployment’s MCP URL. The client needs Streamable HTTP, OAuth and Dynamic Client Registration. Follow its own sign-in UI and check the account and access shown on Hosting's consent page. Support varies by client; hostingctl mcp setup --client claude configures Claude Code only.

After connection, ask the assistant:

Call Hosting whoami. Tell me my company memberships and access mode.
Then search Hosting docs for "application deployment" and read the matching section.
Do not change anything.

Check that the intended company appears in your memberships. Recommended setup delegates standard tools and full API operations; whoami reports what the client's granted scopes and negotiated capabilities actually allow. With less access, full API read-only lists fourteen tools, including docs, api_search, api_schema and api_read; reviewed-only mcp:read lists eleven. Missing optional capabilities do not prevent ordinary reads. API operations that delete data or move money need form approval, and responses that can carry a secret need private-file download support.

If the server is missing, check the selected config file, project trust and client restart. If it needs authentication, finish that entry's OAuth login; a CLI login does not sign an HTTP client in. If the intended company is missing, verify the account and membership before acting. For 403, check company permissions and delegated scopes; do not bypass a refusal by switching credentials. Remove an unwanted entry with codex mcp remove hosting, claude mcp remove hosting --scope user (or --scope project), or pi mcp remove hosting (add --local for a project).