MCP for AI agents
InfraBuffet provides a Model Context Protocol endpoint at /mcp. MCP clients can discover and use the same protected
infrastructure and administration operations as the REST API without exposing a separate tool for every route.
Create a token
Create an API token through API tokens in the user menu, as described in API access and tokens.
Copy the secret when it is shown. Any token can discover operations and read data. Changing objects requires the
write grant; scheduling diffs, imports and syncs or cancelling jobs requires workflows; applying a reviewed plan
requires apply. Tokens cannot be created, listed, read, or revoked through MCP.
Configure a client
Add InfraBuffet as a Streamable HTTP server at https://ibf.example.com/mcp and pass the token as a bearer
credential. If your configuration uses IBF_TOKEN, export it before starting your client.
Other clients use a similar shape: a Streamable HTTP URL plus an Authorization: Bearer header. Consult your client’s
documentation for environment-variable expansion and secret storage. Use HTTPS and do not commit the token. MCP does
not accept browser session cookies.
Discover and execute operations
The server has four tools:
ibf_searchfinds operation IDs by purpose, entity, action, route, or keyword. For a route shared by several operations, include the HTTP method, for exampleGET /api/teams/42/members.ibf_describereturns the operation’s path, query and body schemas, plus workflow notes.ibf_executeaccepts{operation, id?, query?, body?}.idis the route’s single path ID; query filters accept scalar values or arrays, andbodyuses the same JSON fields as REST.ibf_docslists or reads guides. Topics include form fields, block validation, dependencies, multiple providers, deduplicators, and permissions. Omit the topic to list them. Clients with resource support can readibf://docs/<topic>.
Use small list pages and fetch details only when necessary. Domain and permission failures are tool errors carrying
code, category, detail, and optional extra; invalid or revoked credentials fail the HTTP connection instead.
When a change is recorded in the audit log, the result also links to the
changelog of the token owner at /admin/users/<id>/changelog, filtered to
entries created since that change. The link names the owner, so it shows the token’s changes even when your browser
is signed in as someone else; reading another user’s changelog requires a superuser, otherwise the page asks you to
sign in as the owner. Agents are told to end a task that changed data with the link from its first change, so you
can review everything they did in one place. Changes to users, teams, settings, saved filters and jobs are not
audited and carry no link. The link uses IBF_PUBLIC_URL when the administrator set it, otherwise the address the
agent connected to; see Configuration reference.
For infrastructure changes, read Provision → diff → apply. Calculate a diff, poll its job, review the result, and apply that exact plan. Do not treat scheduling a job as proof that it completed. See jobs and results for interruption and recovery guidance.