Skip to content
Docs

MCP access

Every workspace runs a Model Context Protocol (MCP) server. An external AI client (Claude, Claude Code, Cursor, VS Code, ChatGPT) connects to it once and can then invoke the flows you offer through MCP access as tools, build and inspect flows with the builder toolset, and work with your workspace’s agent memory.

The MCP access screen, in the workspace menu at the foot of the sidebar, is where you set this up. It shows your workspace’s endpoint, setup instructions for common clients, and every tool the server offers.

The MCP access screen: Your MCP endpoint with Copy, Connecting a client with Create token, Manage tokens and a setup per client, and Available tools with the builder tools and one offered flow
The MCP access screen: Your MCP endpoint with Copy, Connecting a client with Create token, Manage tokens and a setup per client, and Available tools with the builder tools and one offered flow

The first section of the screen shows the endpoint, with a copy button. It is the workspace’s own URL, ending in /mcp/ followed by the workspace ID, and accepts authenticated POST requests. There is no shared endpoint: the URL always names the workspace, and a connected client sees and acts on only that workspace’s flows and data.

  1. Open the flow and click Flow settings.
  2. Turn on Offer as an MCP tool.
  3. Fill in Description, if the flow has none yet. MCP clients read it to decide when to call your flow, and so do agents in Publicus that use it as a tool, so make it specific (for example “Look up the delivery status for an order by its tracking number”).
  4. Save.
Flow settings with a Description filled in and Offer as an MCP tool turned on
Flow settings with a Description filled in and Offer as an MCP tool turned on

The flow appears under Available tools on the MCP access screen, and connected clients list it as a tool named after the flow’s title (lowercased, with underscores). On the Flows list, the line under an offered flow’s title says it starts when an outside AI app calls it as a tool (MCP). A flow with several ways to start names the first and how many more; hover over the line to read them all. The Offered through MCP access filter lists only the offered flows.

The Flows list filtered to the flows offered through MCP access: one, Route shipments by weight, with what starts it and its description under its title
The Flows list filtered to the flows offered through MCP access: one, Route shipments by weight, with what starts it and its description under its title

The tool’s parameters come from the flow’s input JSON schema: each property becomes a tool parameter. A flow without a schema gets a single optional input parameter that accepts JSON-encoded input.

When a client invokes the tool, Publicus starts a run with the arguments as the flow’s $start data and immediately returns the run’s ID, so the caller can track progress. Follow the run under Runs.

Besides the flows you offer, the server always offers the builder toolset: over 40 tools that list and describe node types, create and edit flows, wire graphs, read and write workspace resources, start, stop and inspect runs (flow_run and get_flow_run), search the service catalog and the Publicus docs, and work with memory (recall_memory, record_memory, and search_conversations). The memory tools share your workspace’s agent memory, so an external client can look up and record the same facts your in-platform agents use. Builder tools that only work inside the builder chat, such as the ones that show a card for you to fill in, are left out.

The Available tools section of the screen lists the builder tools by group; open Tool reference for each tool’s full description.

The top of the MCP tool reference: every tool the server offers a connected client, grouped, starting with Discover and inspect and the full descriptions of list_node_types, describe_node_type and find_examples
The top of the MCP tool reference: every tool the server offers a connected client, grouped, starting with Discover and inspect and the full descriptions of list_node_types, describe_node_type and find_examples

This means an external client can do what the in-app Build with AI page does: describe a flow in plain language and have it assembled, then inspect and run it. The in-app page adds plan approval, build phases, and secure credential prompts, so prefer it for interactive building.

Your client determines how it authenticates. The Connecting a client section shows a ready-made setup per client (Claude Code, Claude and Claude Desktop, Cursor, VS Code, ChatGPT), each stating which method it needs.

The Connecting a client section: Sign in with OAuth marked Recommended, Use a personal access token with Create token and Manage tokens, and a tab per client with the Claude Code command shown, marked OAuth or token, with Copy
The Connecting a client section: Sign in with OAuth marked Recommended, Use a personal access token with Create token and Manage tokens, and a tab per client with the Claude Code command shown, marked OAuth or token, with Copy

Clients with connector support need only the endpoint URL. Publicus is a spec-compliant OAuth 2.1 authorization server with dynamic client registration, so the client discovers it, registers itself, and opens the Publicus consent screen for you to approve. There is nothing to create or copy except the URL.

The Publicus consent screen: Authorize Claude, the signed-in account, Use the MCP server as what it will be able to do, where you are sent after approving, a warning that Publicus has not verified the application, and Cancel and Authorize
The Publicus consent screen: Authorize Claude, the signed-in account, Use the MCP server as what it will be able to do, where you are sent after approving, a warning that Publicus has not verified the application, and Cancel and Authorize

Every client you approve this way is listed in your account settings under API access → Authorized applications, with the scopes it was granted. Click Revoke access there to cut a client off; it loses access immediately.

Authorized applications in the account settings: Claude with the mcp:use scope, when it was authorized and when it expires, and Revoke access
Authorized applications in the account settings: Claude with the mcp:use scope, when it was authorized and when it expires, and Revoke access

For clients and scripts that send plain HTTP headers:

  1. Click Create token on the MCP access screen.

    The Create token form: Token name and three Scopes checkboxes, with a note that leaving them empty grants every scope
    The Create token form: Token name and three Scopes checkboxes, with a note that leaving them empty grants every scope
  2. Give it a Token name you will recognize later.

  3. Under Scopes, tick what the token needs, or leave the list empty to grant every scope.

  4. Click Submit. The token is shown once, with each client setup pre-filled and ready to copy. It is never displayed again.

Token created: the token shown once with Copy token, and a ready-to-paste setup per client with the token already filled in
Token created: the token shown once with Copy token, and a ready-to-paste setup per client with the token already filled in

The token goes in an Authorization: Bearer header, where the client setup says YOUR_TOKEN.

Tokens created on this screen are bound to this workspace and only work on its endpoint. Tokens created in your account settings work on the endpoint of any workspace you belong to. Manage tokens takes you to the account’s Personal access tokens page, where every token is listed and can be revoked.

Personal access tokens in the account settings: three tokens with their workspace or Account default, scopes, created and expiry dates, and Revoke on each
Personal access tokens in the account settings: three tokens with their workspace or Account default, scopes, created and expiry dates, and Revoke on each

Scopes limit what a token or authorized application can do. Grant the least a caller needs.

Scope Grants
mcp:use Use the MCP server (tools, resources and prompts).
api:read Read your data via the API.
api:write Create and modify your data via the API.

The MCP endpoint requires mcp:use; a token without it is refused with a response naming the missing scope. A token for an MCP client typically needs only mcp:use. Scopes are fixed at creation: to change them, revoke the token and create a new one.

If you are building an application that signs Publicus users in and calls the MCP server or API on their behalf, register it in your account settings under API access → OAuth clients:

  1. Click Register client.

    The Register client form: Application name, Redirect URI, and the Confidential client toggle turned on, then Submit
    The Register client form: Application name, Redirect URI, and the Confidential client toggle turned on, then Submit
  2. Enter an Application name (users see it on the consent screen) and the exact Redirect URI your app sends users back to.

  3. Leave Confidential client on for a server-side app that can keep a secret; turn it off for a single-page or native app, which relies on PKCE instead.

  4. Click Submit. The confirmation shows the Client ID, and for a confidential client the secret, shown once.

Your app then drives the standard authorization-code flow with PKCE. Revoke, in a client’s row menu (⋮), stops every token it issued.

OAuth clients in the account settings: a public and a confidential client with their masked client ID, redirect URI and creation date, and a ⋮ row menu on each
OAuth clients in the account settings: a public and a confidential client with their masked client ID, redirect URI and creation date, and a ⋮ row menu on each
  • The client gets a 401. The token is missing, mistyped, or revoked. Create a fresh one and paste it again.
  • The client gets a 403 naming mcp:use. The token lacks the scope. Revoke it and create one with mcp:use (or with no scopes ticked, which grants all).
  • A client will not auto-register. Not every client supports OAuth discovery. Fall back to a personal access token.
  • You never saw the token or client secret. Both appear only once at creation. Revoke and create again.

A call to the tool starts the run and returns a handle (flowRunId, flowId, status), which the tool declares as its output schema; the run itself is not awaited. When the flow ends in an Agent with a response schema, the tool’s description also states the shape of the run’s final output, so a client that reads the run back knows to look for data.category and the values it can take.

  • MCP servers covers the reverse direction: giving your agents tools from an external MCP server.
  • Build with AI is the in-app surface for the same builder.
  • Agent memory explains what the memory tools read and write.