Skip to content
Documentation
GOCUX / Documentationintegrations

Write a bounded MCP adapter

Keep programmatic tool invocation observable and cancellable.

Keep programmatic tool invocation observable and cancellable.

Practical procedure

  1. Define which tools the adapter exposes and validate their input before execution. Keep credentials in the adapter’s trusted environment.
  2. Record invocation identity, timeout and permission outcome independently from the model conversation.
  3. Return actual tool results or structured failures and stop when the parent task is cancelled. Review side effects before retrying an ambiguous invocation.

Separate the external system from GoCux authority

A named external tool in a workflow does not establish a native GoCux integration. Start with an authorized export, an already configured connector, or a separately implemented adapter. Keep external account credentials in the owning system. In GoCux, inspect the available connector and its grants; the fact that a connector is registered does not itself authorize a task to use it.

Contract example

Developer examples below describe routes on an authorized, configured GoCux control-plane base URL. They are request shapes or operation references, not claims that a particular public hostname exposes the API. Use the workspace for the corresponding human workflow; availability and permissions depend on the actual deployment.

GET /connectors — inspect connectors available to the authenticated company

GET /connectors/{connector_id}
GET /connector-defaults
GET /task-contexts/{context_id}/connectors

Inspect the result

The useful outcome is an explicit boundary: what information enters GoCux, which task can access it, and what result leaves. Start with a read-only sample and verify its source context. A local client or adapter owns the external invocation and its error handling unless an actual deployed connector provides that behavior.

What to keep explicit

An adapter implementation must follow its actual MCP client/server contract. This guide does not invent a GoCux MCP SDK or authorize background external operations.

Handle incomplete and refused work

Authentication with the external system is separate from GoCux authentication. Missing grants, revoked permissions or unavailable connectors must remain visible; do not replace them with invented data. Publishing a marketplace listing, creating a paid external resource or sending messages is a separate action from preparing an integration guide.

Bring this workflow into your workspace.

Set the scope. Review the evidence. Approve the steps that need it.

Open the workspace

Keep exploring