# MCP tool reference

URL: https://docs.astor.sh/mcp-reference

Tool names, permissions and inputs generated from Astor’s tool catalog.

## Connect and approve permissions

The endpoint is `https://astor.sh/mcp`. Astor accepts **MCP 2026-07-28** and the session-style Streamable HTTP versions **2025-03-26**, **2025-06-18** and **2025-11-25**. Sign in to Astor, select the project and approve its permissions, or send a project API key as the bearer token. Setup for Claude Code, Codex, Cursor and other agents is in [Automate testing with your agent](https://docs.astor.sh/agent-testing). An HTTPS endpoint alone does not verify a connection with a particular AI tool. See [connection setup](https://docs.astor.sh/integrations).

Tools share the platform’s access, version and approval rules. Reads never silently start a microphone or recording. A tool description does not authorize a paid job, scope approval or deployment.

## Explicit workspace ticket review

Where configured, a current owner, admin or product connection can use `get_work_quote` with `{action: analysis, ticket_id, version}`. Quotes require `tickets:read`; `analyse_ticket` also requires `tickets:write`, and linked Live evidence requires `live:read`. Read the current ticket first. An action-only quote keeps its existing generic contract and is not a bound workspace total.

When a product owner asks for a new review, show the actual returned amount and obtain explicit user confirmation or honor their already explicit bounded approval. Then call `analyse_ticket` with exactly `{ticket_id, version, review_digest, confirmation: accept_workspace_analysis_total, idempotency_key}`. Copy returned `reviewDigest` into `review_digest`; omit the legacy root `message`. The confirmation literal records the user’s approval and is never permission for an agent to approve its own quote.

Quote success reserves no units. A six-unit quote may succeed with fewer units available, while acceptance returns **402** without a reservation. Profile `ticket_review.enabled: false` still means implicit guided review is off; optional `quote_contract: workspace_total` and `quote_required: true` identify this explicit protocol only. They establish no paid permission, balance, budget or provider availability. Unconfigured Free remains unavailable for AI.

A necessary user answer to current accepted questions uses exactly `{ticket_id, version, message, analysis_id, idempotency_key}`. Take the actual current `analysis.id` and eligible saved questions from `get_ticket`. The answer adds zero units, even without new-review capacity, and needs no separate paid approval. A first, resolved or changed review cannot authorize free model work. A valid reply stopped by its accepted cost ceiling is saved as a blocked analysis with its answer retained for manual use.

Keep the same exact body and idempotency key on an uncertain replay, after reading the current ticket. It stays with the original accepted review and may continue only its genuinely pending attempt; running, paused or unknown provider work is not restarted. HTTP **200** with `isError: true` is a tool error, not a successful acceptance. No later review, automatic refund or replacement approval is implied.

Eligible existing guided projects retain the empty-message six-unit root and current-question included-answer contract. The workspace fields do not replace those accepted terms.

## Request metadata and headers

Session-style clients call `initialize` first. Astor returns the negotiated version and no session ID, accepts `notifications/initialized` with **202**, and answers `tools/list`, `tools/call` and `ping` with plain JSON. It offers no server-sent event stream, so `GET /mcp` returns **405**.

With 2026-07-28, each request uses JSON-RPC 2.0 with an ID and a `params` object. Put both `io.modelcontextprotocol/protocolVersion: 2026-07-28` and an object-valued `io.modelcontextprotocol/clientCapabilities` inside `params._meta`. Headers must match the body: `MCP-Protocol-Version`, `MCP-Method`, and, for `tools/call`, `MCP-Name`. `Accept` must include both `application/json` and `text/event-stream`; send JSON with `Content-Type: application/json` and the connection’s bearer token.

For example, a quote tool call uses these matching headers:

```text
MCP-Protocol-Version: 2026-07-28
MCP-Method: tools/call
MCP-Name: get_work_quote
Accept: application/json, text/event-stream
Content-Type: application/json
```

```json
{
  "jsonrpc": "2.0",
  "id": "ticket-review-quote",
  "method": "tools/call",
  "params": {
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    },
    "name": "get_work_quote",
    "arguments": {
      "action": "analysis",
      "ticket_id": "00000000-0000-4000-8000-000000000001",
      "version": 1
    }
  }
}
```

Replace the fictional ticket ID and version with the current permitted ticket. Valid protocol framing establishes no funding or work permission. Endpoint and schema publication do not verify a named client, production provider connection or workspace offer.

To attach a screenshot or recording, call `prepare_attachment_upload` with `{ticket_id}`. It returns a one-time `upload_url` that lasts 15 minutes. Send the raw file to it with `PUT`, its `Content-Type`, and optional details in the `Astor-Attachment` header, as described in the [API reference](https://docs.astor.sh/api-reference). The link needs no other credentials and works once.

This catalog and its input schemas are generated directly from the tool definitions on each release. Download the [machine-readable catalog](https://docs.astor.sh/mcp-tools.json).

The tool reference is generated from the MCP catalog: https://docs.astor.sh/mcp-tools.json
