# Connect tools with API & MCP

URL: https://docs.astor.sh/integrations

Give a tool access to one project and chosen permissions.

## Connect one project at a time

Select the project, open your profile menu and choose **Connected tools**. The page is titled **Connected tools**, with **Connect an MCP tool** and **Build with the Astor API**. API keys and application connections belong to one person and one project. Current membership, role, granted permissions and expiry are checked on every call.

Choose only the permissions the tool needs. Removing the member or revoking the connection stops further access; linking a tool does not broaden the person’s project role. Human ticket decisions deliver subscribed events for that project separately from AI processing. Retry and expiry checks still apply.

Changing or resetting your password revokes your existing API keys and tool connections across projects. Sign in with the new password, then create new keys or reconnect tools. This does not change project memberships or another person’s connections. Requesting a password reset link alone does not revoke access.

## Send approved briefs to your work tools

Owners and admins can connect Linear, GitHub Issues, Jira or Confluence in **Settings → Connections → Work tools**, using a credential from your own account. Each tool shows **Connected** or **Not connected**; choose **Connect** or **Manage** on its row. Work tools are included in Starter and Pro:

- **GitHub Issues:** a fine-grained personal access token with Issues read and write for one repository.
- **Linear:** a personal API key and the team key.
- **Jira Cloud:** an Atlassian API token, your account email, the site, project key and issue type.
- **Confluence Cloud:** an Atlassian API token, your account email, the site, space key and an optional parent page.

After a brief is approved, anyone with a development role can use **Send to Linear**, **Send to GitHub Issues** or **Send to Jira** in the ticket's handoff section to create one issue with the brief and a link back to Astor. **Publish to Confluence** creates one page. Astor only creates new items. About every ten minutes it reads back the status of the issues it created, and only while their ticket is being built. It never reads anything else from these tools. When the issue is done there, such as a closed GitHub issue, a merged pull request that closes it, or a Linear or Jira issue in a done status, the ticket moves to review with that work as the version to check. Astor never approves, verifies or closes the ticket itself. See [See every ticket on a board](https://docs.astor.sh/tickets#see-every-ticket-on-a-board). Each approved version is sent once, and the ticket shows the link. If Astor cannot confirm that an item was created, check the tool before you send again. Disconnecting deletes the stored credential. Available on Starter and Pro.

## Use the REST API

Under **Build with the Astor API**, choose **Create an API key**. Name the key, choose permissions and expiry, and store the value shown once. Send it in the Authorization header, not in a URL. Copying is optional: select the displayed key if browser copying is unavailable. A new copy attempt clears the earlier copy message.

```sh
curl https://astor.sh/api/v1/profile \
  -H "Authorization: Bearer $ASTOR_API_KEY"
```

The base URL is `https://astor.sh/api/v1`. Read the [generated API reference](https://docs.astor.sh/api-reference) or download [OpenAPI](https://docs.astor.sh/openapi.json).

API-key creation and connection approval recheck your current sign-in before saving. Signing out or an expired session stops a request that is still receiving its data; sign in again before retrying.

Writes use a UUID idempotency key. If the result is uncertain, retry the same operation, resource and payload with the same key while your access is unchanged. Editing also requires the current version or revision. A stale version, changed permissions or a key reused for another request can return 409. Reload the current item and check whether the change was already saved before starting a new operation. Older request references whose original access cannot be checked are also refused; retrying cannot restore removed permissions.

REST settings, project context, activity and subscription writes recheck the connection after receiving the request. Revoking the connection or changing its role, project scope or granted permissions stops the earlier request, including a cached retry. Reconnect with the permissions the operation needs before trying again.

Ticket writes check the current session or connection after receiving the request. A cached retry also requires the ticket to remain visible. Revoked connections, removed project access and withdrawn tickets cannot return an earlier private reply.

Ordinary reads and edits use no AI capacity. Explicit analysis or enabled background review can reserve capacity only where the current workspace permits that work; check the profile and quote first.

Where workspace ticket review is configured, a current owner, admin or product team connection can request a ticket-specific total through REST or MCP. Quotes need `tickets:read`; accepting a review or sending an included answer also needs `tickets:write`. Linked Live evidence additionally needs `live:read`. A paid-plan label, model connection or client-supplied flag grants none of this access. Unconfigured Free workspaces keep AI unavailable.

Workspace ticket review is currently limited to an approved, separately configured Sandbox. This does not enable Production purchases or paid work. Ordinary manual feedback remains available.

Request a new review only when the product owner asks. Read **get_work_quote** or **/work-quote** with `action: analysis`, the actual `ticket_id` and current `version`. Show the returned total and obtain explicit confirmation, or honor the user’s already explicit bounded approval. The confirmation field records that approval; an agent must not approve its own quote. A successful quote reserves no capacity, and acceptance can still return **402** for insufficient funding.

Accept that exact total using `review_digest`, `confirmation: accept_workspace_analysis_total` and the original request’s `idempotency_key`. Workspace root requests do not use the legacy empty `message`. Necessary answers to the current accepted questions use `analysis_id` and `message`, with no new capacity or separate paid approval. See the exact [REST](https://docs.astor.sh/api-reference) and [MCP](https://docs.astor.sh/mcp-reference) inputs. Eligible existing guided projects retain their own empty-message review contract and costs.

For permitted internal team connections, **get_profile** and REST **/profile** keep the current identity, project, connection and permissions. Under the manual-feedback policy, `work_prices: {}` and `ticket_review.enabled: false` keep implicit guided analysis off. A configured connection with the required current role and read permission may additionally receive `quote_contract: workspace_total` and `quote_required: true`. These fields identify the explicit quote protocol; they are not paid access, a balance, a budget or permission to start work.

Without that configured contract, manual Free retains its existing unavailable response. Tester and reviewer profiles omit economics fields. Eligible existing guided connections retain their applicable balances and prices. For workspace review, read a real ticket/version quote rather than treating profile metadata or an action-only generic quote as acceptance authority. Other existing work still uses its current `canStart` and policy checks.

**create_ticket** defaults omitted `analyse_submission` to false in comment-only mode and true in guided mode, subject to availability. Comment-only saves retain exact original wording, up to 3,000 characters including spaces; explicit analysis is refused. Optional `manualFeedback: true` requires current comment-only mode: a changed mode returns 409 before replay, and unavailable policy refuses saving. Retry with identical wording and key; changed whitespace is a different request.

Manual ticket updates and project-context changes can continue only the connected project's already enabled background work and applicable ticket-event delivery. They request no new analysis and cannot process another project's jobs.

Reading your profile, ticket lists or project settings, and saving project or environment settings, starts no background project processing or automatic capacity purchase. An explicitly requested website verification still runs its website check. A rejected MCP tool reports `isError: true` without starting background processing; read the error before retrying.

For eligible existing guided project agreements where AI review is available, **analyse_ticket** with an empty `message` requests a new review. A nonempty `message` answers current saved open questions within an already accepted review, with no new capacity. Read `analysis.canFollowUp` and `analysis.followUpQuestions` from **get_ticket**; send its current `analysis.id` as `analysis_id` when answering. A first, resolved or changed review cannot authorize an included reply. A saved answer that reaches the shared estimated cost ceiling returns a blocked review with the answer retained; no new model attempt or paid fallback starts. API and MCP use these same server checks and current project access.

If a ticket-analysis reply is uncertain, read the current ticket and retain the exact original payload and idempotency key. An explicit same-request replay stays with its original review and may continue only its genuinely pending accepted attempt. It does not restart running or unknown provider work, choose a later review, refund completed work or approve a new spending limit. Changed access, ticket version or review terms can refuse the replay; no replacement review starts automatically.

For optional Mission media, show `list_missions.recordingNotice` and obtain the person’s device choices. Send its `version` as `recording_notice_version` with `start_mission`; missing or stale versions are refused before creation. No version is needed without media. Clients cannot consent for a person.

Mission writes also check current access after receiving the request, before returning a cached retry. Revoked access cannot create or start a Mission, add steps or save a result. A permitted person can save their own written Mission result with no AI capacity remaining. An existing Mission configured for automatic analysis can separately accept that work only when current workspace policy and the requesting team member’s capacity allow it; the written result stays saved if analysis cannot start.

A Mission result read continues only the accepted analysis returned by that authorized result. Retrying a saved finish or analysis request keeps its original analysis, without picking up a later attempt or another project's work. Your project's enabled background settings still apply. A completed result can resume due raw-file cleanup without starting another analysis or background review.

Agents status reads continue only their returned active reviews. A saved start retry keeps its original review, even if a later one exists. A finished or cancelled review starts no further processing. Current project permissions and accepted spending limits still apply. Workspace AI policy applies to tools, retries and client flags. Unknown remote outcomes keep reservations.

Project-context reads and retries continue only the returned, still-current accepted review. Retrying a saved answer cannot continue a later clarification step under the same review. Completed views start no work. Current access, the reviewed website and approved context must still match. One project's request does not process another project's jobs.

## Connect an MCP application

Protocol discovery is public and describes server compatibility. Tool and event catalogs and connection checks require authentication and the relevant permissions. These metadata requests start no project processing or capacity purchase and grant no project access. Calls that read or change project data still require the connection’s current permissions.

Use `https://astor.sh/mcp` with an MCP application. Astor supports the Streamable HTTP versions **2025-03-26**, **2025-06-18** and **2025-11-25**, used by coding agents such as Claude Code, Codex and Cursor, as well as **2026-07-28**. Sign in, choose one project and review its permissions. An API key also works as the bearer token for MCP, which suits CI and agents without a browser. To let an agent test your website and report to Astor, follow [Automate testing with your agent](https://docs.astor.sh/agent-testing). For the 2026-07-28 framing, see the [wire contract](https://docs.astor.sh/mcp-reference#request-metadata-and-headers). **HTTPS address available** describes the endpoint, not a verified ChatGPT, Claude or builder connection. Check compatibility before connecting. OAuth access tokens are for MCP; REST uses API keys. Never paste an API key into a public ticket.

Start with read access to inspect project context and feedback. Grant write access when you want to save a draft or report an updated version. Reading and manual edits use no AI allowance. A connection gives access to Astor; it does not make your ChatGPT or another provider’s model subscription available to the project.

Configured workspace ticket review uses the ticket/version quote and exact acceptance described above. Eligible existing project work keeps its action-only **get_work_quote** and bounded approval rules. A zero balance does not prevent manual ticket creation. Reuse the original payload and idempotency key for an uncertain request while your access is unchanged; a saved draft is not an approved scope or a verified improvement.

Connections use one-time sign-in codes and rotating access tokens. An already-used code cannot issue another token. Reusing a refresh token revokes the connection; reconnect the tool if this happens.

The [generated MCP reference](https://docs.astor.sh/mcp-reference) lists the actual supported tools and their inputs. A catalog entry does not mean a particular connection can execute it: current access checks still apply.

For a building tool, **get_ticket** returns the current `brief` and a separate `approved_brief` when scope is approved. Use `approved_brief.brief` for implementation and check that `approved_brief.version` equals `scope_version`. If that package is absent or cannot be read, review the ticket in Astor before proceeding. **Copy implementation brief** uses the same locked version and remains available without a connected tool.

After making the change, **add_updated_version** uses the current ticket `version` and records what changed, test instructions and a release or preview reference. This is a reported result; a person still verifies the agreed checks before closing the ticket.

## Product events

### Add a webhook in Astor

Direct webhooks are included in Workspace Pro. In **Connected tools**, choose **Send webhooks → Add a webhook**. Name it, enter a public HTTPS endpoint and choose the events: `ticket.created`, `ticket.updated`, `ticket.scope_locked`, `ticket.ready_for_review`, `ticket.approved` and `ticket.closed`. Astor creates a signing secret and shows it once. Each delivery is a JSON POST signed in the Standard Webhooks format, with `webhook-id`, `webhook-timestamp` and `webhook-signature` headers. Check the signature with the secret before you act on an event.

A webhook added here needs no verification challenge and keeps delivering for one year. Webhooks added earlier on another plan keep delivering. It appears in **Your connections** as **Webhook**; **Revoke access** stops it. Private network addresses and plain HTTP are refused. Failed deliveries are retried with increasing delays, up to eight attempts.

### Subscribe from a tool

The API can read an event feed and manage supported webhook subscriptions. Verify the subscriber challenge and signatures, handle retries idempotently and retain the event cursor. The current event catalog is ticket-focused; do not assume every Mission or external action emits a webhook.

Creating or refreshing a subscription continues only that connected project's event deliveries. It starts no analysis or project background review. Cancelling a subscription stops its pending deliveries and starts no background work. A callback already in flight may still finish.

Saved events wait for a later processing run if the current request has too little time left.

**Connected tools** shows pending and failed recent deliveries without opening the history. Open **Recent deliveries** for saved states, attempts and recorded update times. **Delivered** means the callback accepted the event; it does not confirm that the connected tool acted on it or that a person verified the result.

A tool can help draft, investigate or implement. Human review, project boundaries and [ticket verification](https://docs.astor.sh/tickets) still apply.

## Public discovery

[Astor's discovery file](https://astor.sh/llms.txt) describes the product, each feature page and the plans, and links to public guides, the [price catalog](https://docs.astor.sh/pricing.json), [API contract](https://docs.astor.sh/openapi.json) and [MCP tool contract](https://docs.astor.sh/mcp-tools.json). The documentation has its own [index](https://docs.astor.sh/llms.txt) and [every guide in one Markdown file](https://docs.astor.sh/llms-full.txt) for AI tools. Each guide is also available as Markdown on its own: add `.md` to its address, for example [/integrations.md](https://docs.astor.sh/integrations.md). These references can be read without JavaScript or signing in, and the public pages welcome search engines and AI assistants. Private project data still requires the authenticated project access described above; discovery grants no permissions.
