# Connect Edith to your AI environment

Configure Edith as a remote MCP server.

## Connection

- URL: `https://edithmd.com/mcp`
- Transport: Streamable HTTP
- Authentication: OAuth with PKCE
- OAuth discovery: `https://edithmd.com/.well-known/oauth-authorization-server`
- Protected resource metadata: `https://edithmd.com/.well-known/oauth-protected-resource/mcp`

Before editing configuration or opening OAuth, explain what you will change. Explain that Edith OAuth grants access to every Edith workspace available to the user's account by default (`mcp:*`). If the user wants narrower access, request explicit scopes from the discovery metadata and explain them before authorisation. Use a manual Edith access token only if remote OAuth is unavailable; the user creates and revokes tokens in Edith's MCP/API access settings.

## Verify the connection

After connecting, call `tools/list` and list the user's accessible workspaces. Tool descriptions, input schemas and annotations are the authoritative operating instructions. Do not fetch a separate tool catalogue. Do not open files or change data while checking the connection.

## Troubleshooting

- Cannot connect: check remote Streamable HTTP support, the `/mcp` URL and OAuth discovery above.
- Login or consent fails: complete it in Edith. Do not ask for passwords or copy account credentials into configuration. Reconnect after an expired or revoked authorisation.
- A tool is forbidden: check the user's current workspace role and granted scopes. `tools/list` is not scope-filtered; seeing a tool does not grant permission to call it. Re-authorise when changing scopes.
- Tools appear out of date: reconnect and call `tools/list` again after Edith deployments. Edith advertises `tools.listChanged=false`.
- `resources/list` is unavailable: this is expected. Edith exposes MCP tools, not MCP resources.

## Starting workspace

Confirm which workspace the user wants to use, then ask which real document or workflow they want to work on.
