diff --git a/cli.mdx b/cli.mdx index 3b338b6..a8fc189 100644 --- a/cli.mdx +++ b/cli.mdx @@ -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 diff --git a/integrations/mcp.mdx b/integrations/mcp.mdx index 3a4fd46..5279eb4 100644 --- a/integrations/mcp.mdx +++ b/integrations/mcp.mdx @@ -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. + +
+ +```bash +vibe mcp add manifest --url https://app.manifest.build/api/v1/mcp +``` + +
+ +
+ +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 +``` + +
+ +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. @@ -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 @@ -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:/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. diff --git a/llm-gateway/docs/cli.mdx b/llm-gateway/docs/cli.mdx index 3b338b6..a8fc189 100644 --- a/llm-gateway/docs/cli.mdx +++ b/llm-gateway/docs/cli.mdx @@ -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 diff --git a/llm-gateway/docs/integrations/mcp.mdx b/llm-gateway/docs/integrations/mcp.mdx index 3a4fd46..5279eb4 100644 --- a/llm-gateway/docs/integrations/mcp.mdx +++ b/llm-gateway/docs/integrations/mcp.mdx @@ -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. + +
+ +```bash +vibe mcp add manifest --url https://app.manifest.build/api/v1/mcp +``` + +
+ +
+ +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 +``` + +
+ +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. @@ -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 @@ -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:/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.