Skip to content
Truffl.
Browse chapters

MCP documentation Get started

Self-hosted clients

Use the same Truffl connection from LibreChat or another client that supports remote HTTP and OAuth.

Google Antigravity

Connect a self-hosted LibreChat server

  1. Use a LibreChat deployment with an external HTTPS address. Merge this configuration into librechat.yaml.
  2. Restart LibreChat, select the server in a chat with a tool-capable model, and connect. LibreChat registers through OAuth discovery. The callback for this entry is your LibreChat origin followed by /api/mcp/truffl/oauth/callback. Confirm that origin on the Truffl consent screen.
  3. Select the workspace and permissions for this client. Keep the registration with the issuer that created it.
LibreChat librechat.yaml
mcpServers:
  truffl:
    type: streamable-http
    url: https://build.trufflinnovations.in/api/mcp/truffl
    requiresOAuth: true

Register another client

Use a remote Streamable HTTP client with browser sign-in, S256 PKCE and resource indicators. Discover the authorization server from the connector’s protected-resource metadata. Its registration_endpoint accepts a JSON POST.

For a public client send {"redirect_uris":["https://your-app.example/oauth/callback"],"grant_types":["authorization_code","refresh_token"],"response_types":["code"],"token_endpoint_auth_method":"none"}. Save the returned client_id for this connector. Use your actual HTTPS callback with an explicit path. For a native client on the unified endpoint, use its supported loopback callback and PKCE.

Registering an app gives it a client ID. Each user then chooses an eligible workspace and explicitly approves the required permissions. Use a server-side or native MCP connection for tool requests.

Verify access and revocation

  1. In a fresh chat, ask Evals for evidence from one reviewed call in the selected workspace. Check a known detail against the call in Truffl.
  2. Open that connector’s connections in Truffl Settings, revoke this app and repeat the request in a fresh chat. It should require authorization again. Any separately approved connector should still work.