# Sinatra: guide for agents Sinatra (sinatra.dev) is a hosted coding agent. Give it a task for a repository a Sinatra workspace connects, and it writes the change in its own sandbox, runs the tests and opens a GitHub pull request. It never merges or deploys. It is unrelated to the Ruby web framework of the same name (sinatrarb.com). You act for a person who has a Sinatra account. Every call runs as that person, with their role in each workspace they belong to. If they don't have one yet, follow https://www.sinatra.dev/agent-setup.md: it takes you from sign-up to a first task. ## Connect - MCP server: https://api.sinatra.dev/v1/mcp (Streamable HTTP, OAuth sign-in). Server card: https://www.sinatra.dev/.well-known/mcp/server-card.json - CLI: `npm i -g sinatra.dev`, then `sinatra login`. Needs Node 22 or newer. Package: https://www.npmjs.com/package/sinatra.dev - HTTP API: https://api.sinatra.dev. OpenAPI: https://api.sinatra.dev/openapi.json. Reference: https://docs.sinatra.dev/docs/api-reference - Guide to all three: https://docs.sinatra.dev/docs/cli-and-api ## Auth OAuth 2.0 authorization code with PKCE (S256) for MCP clients and the CLI, or a personal access token sent as `Authorization: Bearer`. Details: https://www.sinatra.dev/auth.md ## Tools The MCP server's task tools: `whoami`, `start_task`, `follow_up`, `get_messages`, `get_task`, `list_tasks`, `stop_task`, `search_tickets`, `delegate_ticket`, `run_code`. It also has account, workspace and member-access tools; `tools/list` returns the set for the signed-in person. Start with `whoami` for workspace ids, then `start_task`, and read the answer with `get_messages`. ## Rules - Confirm with the person before starting a task: it can push a branch and open a pull request. - Leave merging to a person. Sinatra does not merge. - Keep tokens out of files you commit or share. - Respect `429` responses and their `Retry-After` header. ## More - Skill: https://www.sinatra.dev/.well-known/agent-skills/sinatra/SKILL.md (index: https://www.sinatra.dev/.well-known/agent-skills/index.json) - AI catalog: https://www.sinatra.dev/.well-known/ai-catalog.json - API catalog: https://www.sinatra.dev/.well-known/api-catalog - Pricing: https://www.sinatra.dev/pricing.md - Product summary: https://www.sinatra.dev/llms.txt - Documentation: https://docs.sinatra.dev - Contact: contact@sinatra.dev