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.
The agent address
Section titled “The agent address”https://mcp.emergentinstruments.com/mcpAdd 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.
What happens when you connect
Section titled “What happens when you connect”- The app calls the agent address without a token and gets
401, with a pointer to the sign-in metadata. - The app opens the approval page in your browser, on
emergentinstruments.com. - If you are not signed in, you sign in first and return to the page.
- You choose Approve or Cancel.
- The app receives a one-time code and exchanges it for tokens.
The approval page
Section titled “The approval page”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.
What a connection can reach
Section titled “What a connection can reach”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.
How long it lasts
Section titled “How long it lasts”| 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.
See and end connections
Section titled “See and end connections”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.
When the tools change
Section titled “When the tools change”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.
For client developers
Section titled “For client developers”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_methodmust beS256. - No client secret.
token_endpoint_auth_methodisnone. - Client identity. A client either registers at the registration
endpoint with a
client_nameandredirect_uris, or uses a client ID metadata document: an HTTPS address that serves a JSON document naming itself asclient_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
resourceparameter, when sent, must be the agent address. Tokens are issued for that resource only. - Issuer. The authorization response carries an
issparameter. - Refused requests.
invalid_grantfrom 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.