# Hosted connector

Connect your assistant to ORDan with a URL. The hosted MCP connector uses
Streamable HTTP and OAuth: your assistant opens ORDan's sign-in and consent
page, and you choose the authority it receives.

```text
https://mcp.ordan.io/mcp
```

**Available now**
Read tools cover your agent's status, Lines, usage, ledger and policy checks.
With the `ordan.calls` scope, a grant can also place and control calls from a
Line with ORDan voice on. SMS tools remain unavailable until SMS is enabled.

## Connect an assistant

1. Create an [ORDan account](https://app.ordan.io/signup) and verify your email.
2. In your assistant's MCP or connector settings, add the URL above using
   **Streamable HTTP** and **OAuth**. If it asks for scopes, start with `ordan.read`.
3. Sign in on `app.ordan.io`. Review the organization, requested permissions,
   policy, monthly spend limit and agent name before approving.
4. Ask: **“What's my ORDan status?”** or **“Which Lines do I have?”**

You do not paste an ORDan API key into the connector. Your client discovers
the authorization server and manages its OAuth credentials.

### Claude

In claude.ai or Claude Desktop, open **Settings → Connectors**, add a custom
connector with the URL above, and connect. Availability depends on your
Claude account and workspace settings.

For Claude Code:

```bash
claude mcp add --transport http ordan https://mcp.ordan.io/mcp
```

Then run `/mcp` in Claude Code and choose **Authenticate**.

### ChatGPT

Where developer mode and custom connectors are available, create a connector
with `https://mcp.ordan.io/mcp` and OAuth authentication. Complete ORDan's
sign-in and consent flow. Custom connections are separate from a directory
listing; availability depends on your plan and workspace settings.

### Codex

```bash
codex mcp add ordan --url https://mcp.ordan.io/mcp
codex mcp login ordan
```

### VS Code and GitHub Copilot

Add to `.vscode/mcp.json`, then start the server and complete authentication:

```json
{
  "servers": {
    "ordan": { "type": "http", "url": "https://mcp.ordan.io/mcp" }
  }
}
```

### Other hosted clients

In Microsoft Copilot Studio, add a Model Context Protocol tool of type
**Streamable**, with OAuth **dynamic discovery**. In Muse or another client
that accepts a hosted MCP URL, use the same endpoint and request `ordan.read`
when a scope field is provided.

For local stdio clients, see [Connect your AI client](integrations.md).

## OAuth scopes

Scopes describe requested authority. They are **not tool names**. Multiple
scopes are space-separated, not comma-separated.

| Scope | Authority requested |
| --- | --- |
| `ordan.read` | Read usage and events, and check policy; use alone for a read-only connector. |
| `ordan.calls` | Place calls in ORDan voice, speak and listen on them, send keypad tones and hang up, when hosted calling is available. |
| `ordan.sms` | Send and read messages, when SMS is available. |
| `offline_access` | Accepted for clients requesting refresh access; ORDan issues refresh tokens with its authorization-code flow. |

An omitted scope defaults to `ordan.read`. Unknown scopes, including tool
names such as `ordan.usage.get`, are refused with `invalid_scope`.
Requesting a scope does not make an unavailable feature available.

### Consent and revocation

The consent page tells you who is asking by where your approval is sent,
because an app can give itself any name:

- **Verified app** appears only for an app ORDan recognizes by its own
  sign-in address, such as Claude or ChatGPT.
- Any other app is **Unverified** and is shown by the address your approval
  is sent to, with the name it gives itself quoted beneath.
- An app that uses a known app's name but returns somewhere else gets a
  warning, and you must confirm you know who runs it.

Approve only a connection you started yourself, from your own account in
that app.

You can narrow the requested permissions before approving. Line-bound
actions also need an authorized Line. The grant pins the policy version
shown at consent, and actions remain subject to that policy and the spend
limits you approve. An assistant cannot approve itself or expand its own
authority.

Revoke the agent in the console under **Agents** to end its access. To change
the authority of a connection, review and authorize it again. Keep access
and refresh tokens in the client's credential store, never in a chat.

## Available tools

The client receives only tools permitted by both your grant and current
feature availability. Every connection can list the read tools:

| Tool | What it does |
| --- | --- |
| `ordan.agent.status` | Show the connected agent's status. |
| `ordan.line.list` | List the agent's Lines. |
| `ordan.usage.get` | Read the agent's usage this month. |
| `ordan.ledger.read` | Read the agent's ledger. |
| `ordan.policy.check` | Check a proposed action against policy without executing it. |

A connection with `ordan.calls` also lists the call tools:
`ordan.call.create`, `ordan.call.speak`,
`ordan.call.speak.stop`, `ordan.call.listen`, `ordan.call.status`,
`ordan.call.list`, `ordan.call.hangup`, `ordan.call.dtmf` and
`ordan.call.report`. The assistant has no audio of its own, so it calls
only from a Line with [ORDan voice](voice.md#ordan-voice) on: ORDan speaks
its text and transcribes the other party, after an opening that says the
voice is automated. The first such call to each number waits for your
approval, which confirms the person agreed to calls in an automated voice.

Resources and prompts are not currently provided; a client showing zero of
each is expected. Number provisioning, purchases, transfers and recording
are not part of the hosted tool set. See [SDK, CLI and MCP](clients.md) for
the local server's tools and [feature availability](index.md#what-is-available).

## Discovery and transport

For client developers:

- **Protected resource metadata:**
  `https://mcp.ordan.io/.well-known/oauth-protected-resource/mcp`
- **Authorization server metadata:**
  `https://api.ordan.io/.well-known/oauth-authorization-server`
- **Resource/audience:** `https://mcp.ordan.io/mcp`
- **Flow:** authorization code with PKCE S256; dynamic client registration
  and client ID metadata documents are supported.
- **Requests:** JSON-RPC over `POST /mcp`, with the OAuth bearer token in the
  `Authorization` header.

A request without a token receives **401** with a `WWW-Authenticate`
challenge pointing to resource metadata. Invalid tokens add
`error="invalid_token"`. Opening the endpoint in a browser sends GET, which
returns **405**; use an MCP client to connect. Hosted OAuth tokens are for
this connector, not direct REST API requests.

## Troubleshooting

| Symptom | What to check |
| --- | --- |
| `invalid_scope` | Use `ordan.read` for read-only access. Remove tool names or unsupported scopes. |
| Sign-in refused | Verify your account email and confirm you can sign in at `app.ordan.io`. |
| 401 after connecting | Reauthorize an expired or revoked connection through the client. |
| "Unknown client_id" on the consent page | A registration that never completed a connection lapses after 30 days. Remove the connector in your assistant and add it again, so that it registers afresh. |
| 405 when opening the URL | Expected for browser GET requests; configure a Streamable HTTP MCP client. |
| Fewer tools than expected | Check the permissions you approved and the Line's ORDan voice switch. SMS remains unavailable. |
| `approval_required` | An authorized human must approve in the console before the action can be retried with that approval. |
| 429 | Back off and honor `Retry-After` when present. |

If the connection still fails, contact [contact@ordan.io](mailto:contact@ordan.io)
with the client name and error message. Do not include credentials or tokens.
