# Connect an MCP server

Connect a remote MCP server, such as your issue tracker's or one your team runs, and choose which of its tools the agent and your team can use. Reads are what the agent checks while it investigates, such as an issue a customer mentions. Actions change something, such as adding a label, and go through the same approvals as every other action.

This page is about servers answerable connects to. To connect your own agent to answerable, see [answerable's MCP server](https://staging.preview.answerable.co/docs/developers/mcp.md). For an API without an MCP server, see [Connect an API](https://staging.preview.answerable.co/docs/integrations/api.md).

## Connecting

1. Under **Integrations → Connectors**, choose **Add a connector**, then **An MCP server**.
2. Give it a name your team and the agent will recognize, such as "Linear".
3. Give its address, the one its docs give for remote MCP clients (it speaks Streamable HTTP), such as `https://mcp.example.com`. Servers that only run on a computer (stdio) can't be connected, since answerable runs in the cloud.
4. Choose how it signs in:
   - **Signing in**, for a server that asks you to sign in to it, as most hosted ones do. You sign in on its own page, and answerable keeps the sign-in.
   - **A token**, sent as `Authorization: Bearer <token>`.
   - **No token**, for a server that's open to anyone with its address.

Connecting checks the server: it has to answer and list its tools. Each tool starts off.

The token is stored encrypted, only ever sent to the server's own address, and shown only by its last characters. Changing the address to another host needs the token again, so it never goes somewhere new without you giving it. The server acts as whoever the token belongs to, so give it only the access its tools need.

### Signing in

A server that signs in the way MCP's authorization spec describes (OAuth, with a code and PKCE) sends you to its own sign-in page after you add it. Once you approve, it sends you back to the connector, which lists the server's tools. The connector's panel says who signed in and when.

- The agent uses the server as the person who signed in, for the whole workspace, as it would a token they pasted. Sign in with an account that has only the access its tools need, such as a bot or a shared support account where the service has one.
- answerable needs to be known to the server's sign-in. It offers the server its client document (`https://staging.preview.answerable.co/api/connectors/oauth/client`, the way MCP prefers), or registers itself where the server lets apps register. A server that does neither needs an OAuth app made for answerable in its settings: give it the redirect address below, then paste its client ID (and its client secret, if it gives one) when you add the connector.

```text Redirect address
https://staging.preview.answerable.co/api/connectors/oauth/callback
```

- The sign-in is stored encrypted, like a token, and its access token is renewed as it's used. When the server stops accepting it (the account lost access, or the sign-in was revoked), the connector shows **Sign in again**, and the agent's reads through it fail until someone does.
- Only an admin can sign in, and only in answerable: a sign-in started from one browser can only be finished in it, within 15 minutes. An agent connected to answerable that adds a server gets a link to the connector's page to give you, never the sign-in itself.
- Changing its address or its client ID needs signing in again.

## Tools

The connector's panel lists the server's tools under Reads and Actions. Its hints decide where each starts: a tool marked read-only is a read, one marked destructive is an irreversible change, and any other changes something. Turn on the ones the agent may use, and choose who may take each action.

A tool's row opens it as a page of the connector's panel: what the server says it does, what it does, who gives its inputs, who may take it, when to use it, and Try it, all saved together with **Save**. The switch or choice on the row itself saves at once. A tool's hints only set what it does when it first appears; what you choose stands after that. Changing what a tool does turns it off, so you choose again who may take it. A read runs while the agent investigates without anyone approving it, so make one a read only when it changes nothing.

### Inputs

A tool's inputs come from its schema. Text, numbers, yes or no, and lists of options become fields of their own. Anything else, such as an object or a list, is JSON that the agent fills in as the schema says, and your team types when they take an action.

An input is given by the agent (and by your team when they take an action), or filled by answerable from the ticket, never by the agent:

| Filled by answerable | What it is |
| --- | --- |
| Customer's email | The verified email address the customer wrote from. |
| Their account in your product | The account ID [your product's lookup](https://staging.preview.answerable.co/docs/integrations/your-product.md) gives for them. |
| Their Stripe customer | Their Stripe customer ID, from [Stripe](https://staging.preview.answerable.co/docs/integrations/stripe.md) or your product's lookup. |
| Ticket number | The ticket's number in answerable. |

answerable fills only inputs the agent would give as text (or a number, for the ticket's number). Inputs about the customer are filled only for a sender whose latest email is verified as theirs, so tools that take one are offered to the agent only then. An input the agent gives that points at another account, such as an issue's ID, has to be checked by the server itself.

A read the agent gives an input to, such as a search query or an order number, works from what the ticket says, so someone writing in can ask for a value of their own, and a read with nothing answerable fills from the customer runs for any sender, verified or not. Give a read only inputs whose results anyone writing in may see. One that says whose data to read (a customer's email, an account or customer ID) should be filled by answerable instead: its settings point out an input whose name looks like one.

### When a tool changes

answerable checks the server's tools when the agent uses it, at most once an hour, and when you choose **Refresh tools** in the connector's menu.

- A tool that's off is kept as the server describes it now.
- A tool that's on keeps working as it was when you turned it on: the agent reads the description and inputs you saw. A change waits beside it with a **Changed** badge, and **Review** shows the old and the new side by side. Approving makes the new one what the agent reads. This way a server can't reword a tool to give the agent new instructions.
- A tool the server stops listing isn't offered anymore. Its setting is kept, and it's back if the server lists it again.

### Trying it

In a tool's panel, use **Try it** with values to try it with, including the ones answerable fills, such as an email address.

- A read calls the tool once and shows what the agent would see, and how long it took.
- An action shows the exact call first. **Send it for real** then calls it once, so use values from a test account. Changing a value puts the preview away, so what's sent is always what was shown.

## What the agent sees

A read gives the agent the tool's result, as data from that system, never as instructions: its structured content and its text. Images, audio and files in a result are left out, with a note saying so. Past 16,000 characters it's cut, with a note saying so. A result the server marks as an error is an answer too, such as "No such issue". A result that repeats the token has it blanked out.

If the server can't be reached, refuses the token or the sign-in, or doesn't answer within 10 seconds, the agent is told the read failed, and the connector's panel shows why.

## Actions

An action runs when someone takes it from a ticket, or when the agent proposes it and it's approved, or runs on its own where you allow that. Each runs only as it was approved, and only as it was when it was proposed: if the tool, what answerable fills, or what it does changed since, it isn't run.

| The server answers | The action |
| --- | --- |
| A result | Is done. Its text becomes the receipt's line, and a `url` (https) in its structured content its link. |
| A result marked as an error | Failed, with what the server said. |
| An error before the tool was called, such as a refused token | Failed: nothing ran. |
| Its own error (5xx), or nothing within 15 seconds, once the tool was called | May have gone through. MCP has no way to ask a server to do something only once, so check the server before trying again. |

A money action can run on its own up to a limit. answerable can't check an amount a tool moves against the customer's own payments, as it does for Stripe, so an amount over the limit, or one it doesn't know, waits for approval. While the workspace is in test mode, and on sample tickets, the agent's replies aren't emailed to customers, so the actions that go with them wait for approval too.

## Limits

- Servers are reached only at https addresses on the public internet, and redirects aren't followed.
- At most 1 MB is read of an answer.
- Reads time out after 10 seconds, actions after 15.
- 600 calls an hour per connector, from the agent and your team together. Checking its tools counts as one.
- 30 connection checks an hour per workspace, shared with API connectors: each time you connect a server, change its address or token, find its sign-in, or choose **Refresh tools**. The agent's own hourly check doesn't count.
- 10 reads through connectors in one investigation.
- 100 tools per connector: a server that lists more has its first 100 kept. Tools that only run as tasks aren't listed.
- 50 inputs per tool.
- Descriptions, the tool's and each input's, up to 1,000 characters.
