Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ mnfst auth status # credential, host, and expiry
mnfst logout # revoke and sign out
```

## Use Manifest tools in Vibe Code

To let Vibe Code call Manifest tools directly, follow the [MCP setup for Mistral Vibe Code](/llm-gateway/docs/integrations/mcp#connect-mistral-vibe-code). Vibe Code opens its own browser sign-in and consent flow.

## Manage harnesses

```bash
Expand Down
35 changes: 31 additions & 4 deletions integrations/mcp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,32 @@ The tools act on the workspace of the user who authorized the client. They are t

If the client supports **read-only** connections, keep it to the `mcp:read` scope. Add `mcp:write` only for clients that should be able to create and change things.

### Connect Mistral Vibe Code

Vibe Code uses dynamic client registration for automatic setup. Ask your Manifest operator whether it is enabled on your instance.

<div data-deploy="cloud">

```bash
vibe mcp add manifest --url https://app.manifest.build/api/v1/mcp
```

</div>

<div data-deploy="selfhosted">

Set `MCP_ALLOW_ANONYMOUS_CLIENT_REGISTRATION=true` on the Manifest server and restart it. Copy the server URL from **MCP server** in the dashboard. For example, on a local install:

```bash
vibe mcp add manifest --url http://localhost:2099/api/v1/mcp
```

</div>

Sign in to Manifest in the browser and click **Allow access**. In Vibe Code, run `/mcp manifest` to see the available tools.

If your instance uses Client ID Metadata Documents, set `client_metadata_url` in Vibe Code's OAuth configuration. You can also supply a pre-registered `client_id`. See the [Mistral MCP setup guide](https://docs.mistral.ai/vibe/code/cli/mcp-servers) for both options.

## Scopes

The consent screen asks for scopes, and the tools you get depend on the scopes the token carries.
Expand All @@ -90,13 +116,14 @@ An MCP client starts from the server URL and reads Manifest's OAuth metadata to

| Document | URL |
| ------------------------------- | -------------------------------------------------------------- |
| Protected resource metadata | `{origin}/.well-known/oauth-protected-resource` |
| Authorization server metadata | `{origin}/.well-known/oauth-authorization-server` |
| Protected resource metadata | `{origin}/.well-known/oauth-protected-resource/api/v1/mcp` |
| Authorization server metadata | `{origin}/.well-known/oauth-authorization-server/api/auth` |
| Client registration, when enabled | `{origin}/api/auth/oauth2/register` |
| Authorization endpoint | `{origin}/api/auth/oauth2/authorize` |
| Token endpoint | `{origin}/api/auth/oauth2/token` |
| Signing keys (JWKS) | `{origin}/api/auth/jwks` |

Manifest follows [RFC 9728](https://datatracker.ietf.org/doc/html/rfc9728) for the protected-resource document and [RFC 8414](https://datatracker.ietf.org/doc/html/rfc8414) for the authorization server. Clients are identified with [Client ID Metadata Documents](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization/client-registration), the MCP 2026-07-28 profile. Anonymous dynamic client registration is disabled, so a client must be able to present a verified metadata document to register itself.
Manifest follows [RFC 9728](https://datatracker.ietf.org/doc/html/rfc9728) for the protected-resource document and [RFC 8414](https://datatracker.ietf.org/doc/html/rfc8414) for the authorization server. Manifest supports [Client ID Metadata Documents](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization/client-registration). Anonymous dynamic client registration is off by default. When an operator enables it, the authorization server metadata includes `registration_endpoint`. Registration creates a client ID. Users still sign in and grant access before the client can call tools.

## Tools

Expand Down Expand Up @@ -171,7 +198,7 @@ Signing out of Manifest ends the browser session, and an access token stops work

- **The server URL follows `BETTER_AUTH_URL`.** The issuer, the protected-resource identifier, and every URL in the metadata are derived from it. Set `BETTER_AUTH_URL` to the origin your MCP client actually reaches, then restart. A mismatch makes clients refuse the token.
- **Remote clients need HTTPS.** OAuth metadata requires an `https://` resource except on loopback. For local development the client may connect to `http://localhost:<port>/api/v1/mcp`. To connect from another machine, terminate TLS in front of Manifest and set `BETTER_AUTH_URL` to that `https://` origin.
- **Let the well-known routes through your proxy.** Forward `/.well-known/oauth-protected-resource` and `/.well-known/oauth-authorization-server` to Manifest. If your reverse proxy only forwards `/api`, discovery fails and the client never reaches the consent screen.
- **Let the well-known routes through your proxy.** Forward both `/.well-known/` paths listed in [Discovery](#discovery) to Manifest. If your reverse proxy only forwards `/api`, discovery fails and the client never reaches the consent screen.
- **The OAuth tables are created on boot.** Manifest runs Better Auth's own migrations at startup, which adds the client, token, consent, and JWKS tables. No manual step is needed.

</div>
Expand Down
4 changes: 4 additions & 0 deletions llm-gateway/docs/cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ mnfst auth status # credential, host, and expiry
mnfst logout # revoke and sign out
```

## Use Manifest tools in Vibe Code

To let Vibe Code call Manifest tools directly, follow the [MCP setup for Mistral Vibe Code](/llm-gateway/docs/integrations/mcp#connect-mistral-vibe-code). Vibe Code opens its own browser sign-in and consent flow.

## Manage harnesses

```bash
Expand Down
35 changes: 31 additions & 4 deletions llm-gateway/docs/integrations/mcp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,32 @@ The tools act on the workspace of the user who authorized the client. They are t

If the client supports **read-only** connections, keep it to the `mcp:read` scope. Add `mcp:write` only for clients that should be able to create and change things.

### Connect Mistral Vibe Code

Vibe Code uses dynamic client registration for automatic setup. Ask your Manifest operator whether it is enabled on your instance.

<div data-deploy="cloud">

```bash
vibe mcp add manifest --url https://app.manifest.build/api/v1/mcp
```

</div>

<div data-deploy="selfhosted">

Set `MCP_ALLOW_ANONYMOUS_CLIENT_REGISTRATION=true` on the Manifest server and restart it. Copy the server URL from **MCP server** in the dashboard. For example, on a local install:

```bash
vibe mcp add manifest --url http://localhost:2099/api/v1/mcp
```

</div>

Sign in to Manifest in the browser and click **Allow access**. In Vibe Code, run `/mcp manifest` to see the available tools.

If your instance uses Client ID Metadata Documents, set `client_metadata_url` in Vibe Code's OAuth configuration. You can also supply a pre-registered `client_id`. See the [Mistral MCP setup guide](https://docs.mistral.ai/vibe/code/cli/mcp-servers) for both options.

## Scopes

The consent screen asks for scopes, and the tools you get depend on the scopes the token carries.
Expand All @@ -90,13 +116,14 @@ An MCP client starts from the server URL and reads Manifest's OAuth metadata to

| Document | URL |
| ------------------------------- | -------------------------------------------------------------- |
| Protected resource metadata | `{origin}/.well-known/oauth-protected-resource` |
| Authorization server metadata | `{origin}/.well-known/oauth-authorization-server` |
| Protected resource metadata | `{origin}/.well-known/oauth-protected-resource/api/v1/mcp` |
| Authorization server metadata | `{origin}/.well-known/oauth-authorization-server/api/auth` |
| Client registration, when enabled | `{origin}/api/auth/oauth2/register` |
| Authorization endpoint | `{origin}/api/auth/oauth2/authorize` |
| Token endpoint | `{origin}/api/auth/oauth2/token` |
| Signing keys (JWKS) | `{origin}/api/auth/jwks` |

Manifest follows [RFC 9728](https://datatracker.ietf.org/doc/html/rfc9728) for the protected-resource document and [RFC 8414](https://datatracker.ietf.org/doc/html/rfc8414) for the authorization server. Clients are identified with [Client ID Metadata Documents](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization/client-registration), the MCP 2026-07-28 profile. Anonymous dynamic client registration is disabled, so a client must be able to present a verified metadata document to register itself.
Manifest follows [RFC 9728](https://datatracker.ietf.org/doc/html/rfc9728) for the protected-resource document and [RFC 8414](https://datatracker.ietf.org/doc/html/rfc8414) for the authorization server. Manifest supports [Client ID Metadata Documents](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization/client-registration). Anonymous dynamic client registration is off by default. When an operator enables it, the authorization server metadata includes `registration_endpoint`. Registration creates a client ID. Users still sign in and grant access before the client can call tools.

## Tools

Expand Down Expand Up @@ -171,7 +198,7 @@ Signing out of Manifest ends the browser session, and an access token stops work

- **The server URL follows `BETTER_AUTH_URL`.** The issuer, the protected-resource identifier, and every URL in the metadata are derived from it. Set `BETTER_AUTH_URL` to the origin your MCP client actually reaches, then restart. A mismatch makes clients refuse the token.
- **Remote clients need HTTPS.** OAuth metadata requires an `https://` resource except on loopback. For local development the client may connect to `http://localhost:<port>/api/v1/mcp`. To connect from another machine, terminate TLS in front of Manifest and set `BETTER_AUTH_URL` to that `https://` origin.
- **Let the well-known routes through your proxy.** Forward `/.well-known/oauth-protected-resource` and `/.well-known/oauth-authorization-server` to Manifest. If your reverse proxy only forwards `/api`, discovery fails and the client never reaches the consent screen.
- **Let the well-known routes through your proxy.** Forward both `/.well-known/` paths listed in [Discovery](#discovery) to Manifest. If your reverse proxy only forwards `/api`, discovery fails and the client never reaches the consent screen.
- **The OAuth tables are created on boot.** Manifest runs Better Auth's own migrations at startup, which adds the client, token, consent, and JWKS tables. No manual step is needed.

</div>
Expand Down
Loading