Skip to main content

Connect a client

An AI client connects itself to miForge's MCP server. You add miForge's MCP address to the client, open the link it shows, and click Approve in miForge. You never copy or paste a secret. Each client gets its own credentials, which it keeps and renews by itself, and you can revoke any one client without disturbing the others.

There are no accounts and no passwords. Whoever can open miForge's Approvals page can approve a client, exactly as for every other approval.

What you need​

  • The public https address of miForge's MCP server, ending in /mcp, for example https://mcp-forge.example.com/mcp. The connect flow runs on the public https address only. The plain-http addresses on your local network keep working with the older shared token until it is retired, and do not offer the connect flow.
  • A browser on the computer where the client runs, to open the link the client shows.
  • miForge's Approvals page open in another tab.

Connect, step by step​

  1. Add the address to the client.
    • Claude Code: claude mcp add --transport http miforge https://mcp-forge.example.com/mcp, then claude mcp login miforge (or /mcp inside a session). Remove any Authorization header you set for this server earlier: a client that sends the old token keeps using it.

    • Codex (Linux, macOS or Windows): in its configuration add

      [mcp_servers.miforge]
      url = "https://mcp-forge.example.com/mcp"

      then run codex mcp login miforge. Delete any bearer_token_env_var line for this server, and the environment variable it named.

    • claude.ai: add a custom connector with the address and choose to register automatically.

  2. Open the link. The client opens a browser page from miForge. It names the client, where it will return, and the address the request came from, and says it is waiting for your approval. Nothing on that page asks for a password.
  3. Approve it in miForge. In Approvals, the request reads like "Claude Code on 203.0.113.7 wants to use miForge's tools." Check that it is yours. A request that returns to an address that is not on the requesting computer carries a Not on the requesting computer badge: expect it for claude.ai, and for nothing you started on your own machine. Click Approve and connect client, or Reject.
  4. Done. The waiting page continues by itself and hands the client a one-time code, which the client exchanges for its credentials. The client now calls miForge's tools as before.

A request you do not decide expires after 10 minutes. A client you reject can ask again only after a 10-minute pause.

Connected clients​

The Connected clients page, beside Approvals in the menu, lists every client you approved:

  • its name and where it returns;
  • who approved it and when;
  • when it was last used, and from which address;
  • whether it connected itself or uses a key.

Revoke stops that one client at once: its next call is refused, and every other client keeps working. To use it again, the client connects again and you approve it again. A client that presents a credential that was already used is revoked automatically, and its row says why.

A client that cannot connect itself​

For a client that cannot run the connect flow, choose Add a client that cannot connect itself on Connected clients, name the client, and choose Make the key. miForge shows the key once: copy it into the client, which sends it as its bearer token. miForge keeps only a fingerprint of the key and can never show it again. The client is listed with the others and revoked the same way.

Credentials and their lifetimes​

  • An access credential lasts one hour; the client renews it by itself.
  • A renewal credential is replaced every time it is used, and lapses after 90 days unused.
  • miForge stores only fingerprints of credentials, never the credentials themselves.
  • An agent can neither approve a connection nor list, revoke or create clients: those are yours, in miForge's pages.

The older shared token​

Clients set up before this feature send miForge's shared MCP token. It keeps working for a set window, and each use is counted, with the address and client that used it, in the MCP server's health answer under legacy_mcp_token. Once no client has used it for the window, it is retired. Move each client to the connect flow above before then.