# Connect an agent to AllMind

AllMind's remote MCP connector provides read-only access to entitled financial
research. A human signs in with their own AllMind account and grants access.
Never ask for an AllMind password, copy browser cookies, or put credentials in URLs.

## Discover the connection

- MCP endpoint: `https://mcp.useallmind.ai/mcp` (Streamable HTTP, POST).
- [MCP server card](https://allmind.ai/.well-known/mcp/server-card.json).
- [Protected resource metadata](https://mcp.useallmind.ai/.well-known/oauth-protected-resource/mcp).
- [Authorization server metadata](https://login.useallmind.ai/.well-known/oauth-authorization-server).
- [Agent skills](https://allmind.ai/.well-known/agent-skills/index.json).
- [API catalog](https://allmind.ai/.well-known/api-catalog).
- [Capability manifest](https://allmind.ai/.well-known/ard.json).

The authorization issuer is `https://login.useallmind.ai`, not the marketing
site. The marketing site's discovery URLs redirect to the live provider documents;
the canonical documents above remain authoritative.

## Register and authorize

1. Use an OAuth-capable MCP client and add the MCP endpoint above. An
   unauthenticated POST returns HTTP 401 with a `WWW-Authenticate` header
   pointing to the protected resource document.
2. Read its `authorization_servers` and `scopes_supported`, then fetch the
   selected issuer's authorization server metadata. Follow the returned
   endpoints; do not derive API paths or treat this guide as a token issuer.
3. For a new public client, register through the advertised
   `registration_endpoint` using your actual redirect URI and
   `token_endpoint_auth_method: none`. A previously registered client can
   reuse its client ID. Client-ID metadata document registration is not
   advertised by the live issuer. Registration does not grant user access.
4. Use the authorization-code flow with PKCE `S256`, a fresh unpredictable
   `state`, and the registered redirect URI. Request the minimum advertised
   scopes, normally `openid allmind:market`, plus `offline_access` only if the
   human wants the connection to persist. Send the resource identifier
   `https://mcp.useallmind.ai/mcp` where supported by the client and issuer.
5. Open the advertised authorization endpoint for the human to sign in and
   approve. Validate `state` and the authorization response issuer. Exchange
   the code at the advertised token endpoint with the original PKCE verifier.
6. Keep tokens in the client's credential store. Send the access token only
   as `Authorization: Bearer …` to the MCP endpoint. Initialize MCP and use
   `tools/list` to discover the tools that this connection actually permits.

OAuth scopes on the issuer can include capabilities that this deployment has
not enabled. The current resource advertises market research, not workspace
reads or agent execution. Do not assume access from a scope name alone. Source
coverage, tool availability and permitted use depend on the account and its
organization's entitlements.

## Refresh, disconnect and recover

When `offline_access` was granted, use the advertised refresh-token flow and
persist a replacement refresh token if one is returned. If a token is rejected,
reconnect through human consent. Do not retry an invalid grant indefinitely.

The human can disconnect AllMind in their agent client's connector settings.
An AllMind organization administrator can also revoke the member's connected-app
grant or deactivate the member; contact AllMind through
[Contact](https://allmind.ai/contact) for assistance. Revoking a grant prevents
future refreshes; an already-issued access token can remain valid until its
expiry. Do not promise immediate revocation of an existing token or a public
revocation endpoint that the issuer does not advertise.

## Public A2A research finder

The [A2A agent card](https://allmind.ai/.well-known/agent-card.json) describes a
separate, unauthenticated finder for published reading material. It searches
public article and product-guide titles and descriptions. It does not use the
MCP connector, access customer accounts, run a model, or generate investment
analysis. Requests are synchronous, at most 16 KiB, with a text query of at
most 2,000 characters. Streaming and persistent tasks are not supported.

Send A2A 1.0 JSON-RPC to `https://allmind.ai/a2a`:

```json
{"jsonrpc":"2.0","id":1,"method":"SendMessage","params":{"message":{"messageId":"find-guides-1","role":"ROLE_USER","parts":[{"text":"Find earnings research guides"}]}}}
```

Use `Content-Type: application/json` and `A2A-Version: 1.0`. The response's
`result.message.parts` contains reading suggestions with canonical URLs, not
an assertion that those sources support a particular investment conclusion.
Read the sources before citing them. A query with no matches is not proof that
AllMind lacks a dataset or product capability.

## Public reading

Public pages require no credentials. Read the [directory](https://allmind.ai/llms.txt)
or [full research text](https://allmind.ai/llms-full.txt). Request supported public
pages with `Accept: text/markdown`, or follow their Markdown alternate links.
Private dashboards, source-viewer capabilities, API responses and personal
data are excluded from public Markdown export.
