Skip to main content
This connects external software to Chance’s hosted MCP server. To choose the AI powering a Desk, use Desk AI sign-in instead. A provider account connection and a Chance MCP connection are separate. The hosted MCP server is at:
Every client reaches the same tools here. The local package chance-mcp forwards to this endpoint.

Endpoint

  • Streamable HTTP, stateless, with buffered JSON responses. Only POST is accepted; GET and DELETE return 405.
  • A request can run for up to 300 seconds.
  • A missing or invalid credential returns 401 with a JSON-RPC error (-32001) and the header WWW-Authenticate: Bearer resource_metadata="https://harness.chance.cc/.well-known/oauth-protected-resource", which OAuth clients follow to start sign-in.

Credentials

Create API keys at harness.chance.cc/keys.

Scopes

OAuth grants only the scopes requested and approved. An API key carries both scopes. A client that requests no scope gets mcp. The available tools depend on server configuration. Use tools/list for current names and schemas, and MCP tools for the tool groups. A wallet tool may be listed but require reconnecting with wallet access before it can run.

Connect a client

In an MCP client that supports remote servers, add a server named Chance with this URL:
Choose OAuth, sign in to Chance and review the requested access. The server supports dynamic client registration; you do not need a pre-issued client ID or secret. For clients that only launch local stdio servers, use the local MCP package. For a custom API client, send the Chance API key as a bearer credential when connecting to the server:
Keep the key on your server or in the client’s secret storage. It identifies the Chance account whose tools and balance the connection uses.

Confirm the connection

Call check_connection once. It is free.
account is the account’s email, or its wallet address or account id when it has no email. authMethod is oauth or api_key. Use balanceUsd for the account balance. creditsRemaining is the number of verification checks that balance covers. Do not use verify_intent as a connection test: it is a paid check.

Disconnect a client

Open Settings on the Chance dashboard. Apps and computers lists every client signed in to your account, with what each one can do. Select Sign out next to one to end its access. Its tokens stop working immediately.

OAuth reference

All endpoints are on https://harness.chance.cc. Paid requests charge the Chance account that approved the connection.