Skip to main content
The MCP gateway gives any MCP client one HTTP endpoint that reaches a workspace’s integrations through Guild. Point Claude Code, Codex, Claude, ChatGPT, Cursor, or your own script at a URL. Guild picks the credential for each call, applies your credential policies, and records what ran. You configure the gateway with profiles. A profile is a named set of integrations inside a workspace. For each integration, it says whether people connect their own accounts or share one credential. Each profile has its own endpoint:
A profile holds no credentials itself. Each person who calls it uses their own Guild identity, so two people on the same profile reach GitHub as themselves.

Open the gateway

Open a workspace, then click Gateway in the workspace sidebar. The MCP Gateway page lists every profile in the workspace, with Your profiles first and From others after.

Who can do what

Create a profile

1

Start the profile

On the MCP Gateway page, click New profile.
2

Name it

Enter a Name, such as eng-tools. Use lowercase letters, numbers, hyphens, underscores, and periods. The name must be unique in the workspace.
3

Create it

Click Create profile. Guild opens the profile page.

Add integrations

1

Open the dialog

On the profile page, click Add integration.
2

Pick integrations

Select one or more of the workspace’s integrations. Use Search integrations to filter the list.
3

Choose who connects each

For each integration, choose Personal or Shared.
4

Add them

Click Add.
To change a mode later, open the integration’s row menu and choose a different option under Who connects. To take an integration off the profile, choose Remove from profile.

Connect credentials

An integration only works for you once it has a credential. The profile header shows how many are ready, such as 2 of 3 connected, and how many need you.
  • Personal rows: click Connect on the row. Guild sends you through the service’s sign-in.
  • Shared rows: an admin clicks Connect for everyone. If you aren’t an admin, click Ask an admin to copy a link to send to one.
On someone else’s profile, the header counts only the Shared rows, because other people’s personal credentials aren’t visible to you.

Use a different credential

By default, a profile uses the same credential as the rest of the workspace. To change that for one integration, open its row menu and choose Use a different credential…:
  • Pick one of your existing credentials to pin it to this profile only. Your other profiles and agents keep their own.
  • Choose Add a dedicated credential… to connect one that only this profile can use.
  • Choose Default to go back to the workspace’s credential.
Switching away from a dedicated credential deletes it, and you can’t undo that. For how Guild picks a credential when nothing is pinned, see How Guild chooses a credential.

Connect an assistant

The profile page’s Connect card has a tab for each kind of client: Claude Code, Codex, and Other. Each tab gives you a command or URL to copy.

Claude Code

Run the install command from the Claude Code tab, or run it yourself with the Guild CLI:
The command registers an MCP server named guild-gateway in Claude Code. Before it writes anything, it checks that it can reach the endpoint. It also warns you about any integration on the profile that has no credential for you yet. Leave out the profile to choose one from a searchable list:

Codex

Run the install command from the Codex tab, or run it yourself with the Guild CLI:
The command registers the same guild-gateway server in Codex, which keeps MCP servers in ~/.codex/config.toml. Leave out the profile to choose one from a list.

Other MCP clients

Copy the URL from the Other tab, or from the MCP endpoint line of guild gateway profile show. Add it as a custom MCP server or connector in your client. The client needs outbound HTTPS access to gateway.guild.ai.

What the client sees

The gateway exposes four tools, no matter how many integrations the profile holds. This keeps the client’s tool list short. For example, a client that wants to open a GitHub issue calls list_services, then list_tools for the GitHub service, then execute_tool with the issue tool’s name and arguments.

Follow a long-running integration call

To recover a long call after a timeout or disconnect:
  1. Call execute_tool once with wait: false and keep the returned task_id.
  2. Call wait_for_tool with that execution ID.
  3. Read the returned status and result. If the wait expires or the connection drops, continue waiting on the same execution. Do not repeat execute_tool to recover a result; an external action may already have happened.
When native Tasks is enabled for you on the gateway and your client advertises the Tasks extension on MCP 2026-07-28 requests, a pending wait_for_tool returns a native observation handle. Your client follows it through short tasks/get requests. An already-available result returns directly. See native Tasks and streamed waits for client requirements and fallback behavior. Gateway availability is controlled separately from the hosted server. Keep both IDs: task_id identifies the integration execution; taskId identifies its native observation. After reconnecting, use tasks/get with taskId. If native Tasks is unavailable, use wait_for_tool with the original task_id. Cancelling an observation stops waiting, not the integration call. Pending native observations belong to their creator. Another authorized profile member can start their own wait on the same execution without running it again. Completed results remain shared with authorized profile members, but only the creator can update or cancel an observation; existing operator access is retained. If execution loses its heartbeat, the outcome may be unknown. Native observations keep waiting for a recorded result unless cancelled or given an explicit timeout. A timed-out native observation or the streamed fallback can return OUTCOME_UNKNOWN. Inspect the session and the external service before deciding whether to run the action again.

Review what ran

Every call runs under your Guild identity and appears in the workspace’s Sessions list. There you can read back which tools the client called, with which arguments and which credential. Calls are grouped into one session per person per profile. After an hour with no calls, the next call starts a new session.

Delete a profile

Open the profile’s menu and choose Delete profile, then confirm. The profile’s endpoint stops answering, so clients configured with it start failing. Its sessions and credential grants are kept for the audit trail.

Troubleshooting

Last modified on November 7, 2026