Skip to content

Connecting apps and OAuth

Use this page to understand what happens when an agent app connects, what the connection can reach, how long it lasts, and how to end it. Developers building an MCP client will find the endpoints and token rules here.

https://mcp.emergentinstruments.com/mcp

Add it to your app as a remote MCP server, or custom connector. The Quickstart has the steps for each kind of app. That host serves only the MCP endpoint and the sign-in metadata. Any other path on it redirects to emergentinstruments.com.

  1. The app calls the agent address without a token and gets 401, with a pointer to the sign-in metadata.
  2. The app opens the approval page in your browser, on emergentinstruments.com.
  3. If you are not signed in, you sign in first and return to the page.
  4. You choose Approve or Cancel.
  5. The app receives a one-time code and exchanges it for tokens.

The page asks whether to let the app use Emergent Instruments. Check three things on it before you approve:

  • The app’s name. The app gave this name itself. Emergent Instruments does not verify it.
  • Where it returns you. The page shows the address the app sends you back to. For an app on your own computer this is a local address.
  • The account. The page shows the email address you are signed in as.

The page loads no outside content and cannot be shown inside another site’s frame. Cancel returns you to the app with nothing connected.

A connection acts as you. It reaches every organization you belong to, with the products you can open there, and it follows your role. Your membership is checked on every call, so leaving or being removed from an organization ends the connection’s access to it at once.

There are no OAuth scopes to choose from. To give an agent less than your own access, use a product key: one product, one scope.

Credential Lifetime Notes
Authorization code 5 minutes Works once
Access token 1 hour Sent as Authorization: Bearer to the agent address
Renewal token 90 days Works once. Each use returns a new access token and a new renewal token
Connection 90 days from the last renewal Shown as “expires” in Connected apps

In practice, an app you use at least once every 90 days stays connected. One you leave idle for 90 days has to be approved again.

If a code or a renewal token is presented a second time, Emergent Instruments treats it as copied. It ends the whole connection, and the app has to be approved again.

Tokens are stored as hashes only. An access token works only at the agent address.

Open Settings. Connected apps lists each connection with the app’s name, the day it was connected, when it was last used, and the day it expires.

Choose Disconnect to end one. The app stops reaching your products right away. To use it again, sign in and approve it again.

The same list, with Revoke, is in a product under Connections, in the Connected apps tab.

Apps keep the tool list they read when they connected. When Emergent Instruments changes its tools, it tells a connected app that its list is out of date on the app’s next tool call. If your agent still does not see a tool this documentation names, disconnect and connect again.

Emergent Instruments is an OAuth 2.0 authorization server for public clients. It supports the authorization code grant with PKCE and the refresh token grant.

Endpoint Address
Protected resource metadata https://mcp.emergentinstruments.com/.well-known/oauth-protected-resource
Authorization server metadata https://emergentinstruments.com/.well-known/oauth-authorization-server
Authorization https://emergentinstruments.com/oauth/authorize
Token https://emergentinstruments.com/oauth/token
Dynamic client registration https://emergentinstruments.com/oauth/register

Rules the server enforces:

  • PKCE is required. code_challenge_method must be S256.
  • No client secret. token_endpoint_auth_method is none.
  • Client identity. A client either registers at the registration endpoint with a client_name and redirect_uris, or uses a client ID metadata document: an HTTPS address that serves a JSON document naming itself as client_id. Registering grants nothing until a person approves.
  • Redirect addresses. HTTPS, or HTTP on the person’s own machine (127.0.0.1, localhost, or [::1]), with no fragment. A local address may differ from a registered one in its port only.
  • Resource. The resource parameter, when sent, must be the agent address. Tokens are issued for that resource only.
  • Issuer. The authorization response carries an iss parameter.
  • Refused requests. invalid_grant from the token endpoint means the code or renewal token is unknown, used, expired, or for another client. Start the authorization again.

The MCP endpoint answers POST only and keeps no session between requests.