Skip to content

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.

Terminal window
curl https://your-rooster/.well-known/rooster

The discovery document points at the MCP endpoint, the OAuth metadata, and the agent guide at /llms.txt.

  1. Fetch the authorization-server metadata: GET /api/auth/.well-known/oauth-authorization-server
  2. Register a client via Dynamic Client Registration (RFC 7591). PKCE is required.
  3. 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.

Point a Streamable-HTTP MCP client at:

https://your-rooster/mcp
Authorization: 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.

Start with whoami to confirm your identity and scopes, then read and write:

  • create_ticket — open work. Add labels (tags) so related tickets are easy to find, and set parentId for 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.