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.


Your endpoint
Section titled “Your endpoint”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.
Offer a flow as a tool
Section titled “Offer a flow as a tool”- Open the flow and click Flow settings.
- Turn on Offer as an MCP tool.
- 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”).
- Save.


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.


Inputs and what a call does
Section titled “Inputs and what a call does”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.
What a connected client can do
Section titled “What a connected client can do”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.


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.
Connect a client
Section titled “Connect a client”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.


Sign in with OAuth (recommended)
Section titled “Sign in with OAuth (recommended)”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.


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.


Use a personal access token
Section titled “Use a personal access token”For clients and scripts that send plain HTTP headers:
-
Click Create token on the MCP access screen.


-
Give it a Token name you will recognize later.
-
Under Scopes, tick what the token needs, or leave the list empty to grant every scope.
-
Click Submit. The token is shown once, with each client setup pre-filled and ready to copy. It is never displayed again.


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.


Scopes
Section titled “Scopes”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.
Register an OAuth client for your own app
Section titled “Register an OAuth client for your own app”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:
-
Click Register client.


-
Enter an Application name (users see it on the consent screen) and the exact Redirect URI your app sends users back to.
-
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.
-
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.


Troubleshooting
Section titled “Troubleshooting”- 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 withmcp: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.
What the client learns about the result
Section titled “What the client learns about the result”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.
Related
Section titled “Related”- 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.