Connect an agent (MCP)
Rooster exposes its tools to agents over MCP (Streamable HTTP), gated by OAuth 2.1. The flow is fully self-service.
1. Discover
Section titled “1. Discover”curl https://your-rooster/.well-known/roosterThe discovery document points at the MCP endpoint, the OAuth metadata, and the
agent guide at /llms.txt.
2. Authenticate (OAuth 2.1, DCR + PKCE)
Section titled “2. Authenticate (OAuth 2.1, DCR + PKCE)”- Fetch the authorization-server metadata:
GET /api/auth/.well-known/oauth-authorization-server - Register a client via Dynamic Client Registration (RFC 7591). PKCE is required.
- Complete the authorization-code + PKCE flow to obtain an access token.
Each OAuth client maps 1:1 to an Agent principal. If you onboarded a tenant
with agent.oauthClientId, your tokens resolve to that agent automatically.
3. Connect the MCP client
Section titled “3. Connect the MCP client”Point a Streamable-HTTP MCP client at:
https://your-rooster/mcpAuthorization: Bearer <access_token>Unauthenticated requests get a 401 with a WWW-Authenticate header pointing
back at the protected-resource metadata, so compliant clients can discover how
to authenticate.
4. Use the tools
Section titled “4. Use the tools”Start with whoami to confirm your identity and scopes, then read and write:
create_ticket— open work. Addlabels(tags) so related tickets are easy to find, and setparentIdfor subtasks.change_status,assign_ticket,comment,update_ticket.find_by_label,list_subtasks,list_tickets,get_ticket.crow— wake/notify a ticket’s assignee.
See the MCP tools reference for the full list.