MCP Servers
Publish component actions and workflows as Model Context Protocol tools that AI assistants such as Claude, Cursor, and Windsurf can call.
An MCP Server turns the things you build in ByteChef into tools that AI assistants can call. You choose which component actions and workflows to expose. ByteChef gives you a single Model Context Protocol (MCP) URL, and any MCP client (Claude, Cursor, Windsurf, or your own agent) can discover and call them.
A server can expose two kinds of tools:
- Component actions - individual actions from a connected component (for example, "send a Slack message" or "create a HubSpot contact"), optionally backed by one of your connections so the assistant can act as you.
- Workflows - whole workflows from a published project version, each exposed as a single tool the assistant runs with the inputs you define.
MCP Servers vs. the Management MCP Server. This page is about publishing your own tools to external assistants. If you instead want an assistant to manage ByteChef itself - create and edit projects, workflows, and components - see the Management MCP Server.
The MCP servers you create here need no server-side configuration: the per-server endpoint is always available. The
separate BYTECHEF_AI_MCP_SERVER_ENABLED variable controls only the Management MCP Server
(default true).
For exposing integrations to your product's own customers instead, see Embedded → MCP Servers.
Create an MCP server

- In the Automation workspace, open MCP Servers from the sidebar.
- Click New MCP Server (or Create MCP Server when the list is empty).
- Enter a Name, choose whether to Require authentication (see Authentication), and click Save.
A server created from the dialog starts disabled; turn it on with the Enabled switch on the server's row in the list, once its tools are in place (see Turning the server on below). Each server belongs to your workspace and a single environment (Development, Staging, or Production), so you can publish a different set of tools, with different credentials, per environment. Tags are assigned from the server row. Filter the list by component, project, or tag in the left sidebar.
A server exposes nothing until you add components or workflows to it.
Expose component actions
- Expand the server's row, open its Component Tools tab and click Add Component.
- Select a component from the available components.
- Select the actions (tools) from that component you want to expose. Only the actions you pick become callable; everything else stays hidden. Ticking an action opens its settings form under its row: Tool Name, Tool Description, Let AI fill required and the action's own parameters. Filling it in is optional, and saving never waits on it.
- If the actions need authentication, select one of your connections for the component, or create one with the + button. The assistant runs those actions with that connection's credentials.
- Optionally pick the component's Required Authorities: a caller must hold at least one of them to see this component's tools when the server has Enforce tool authorization on. The list of authorities is available in Enterprise Edition, and the picker is shown only when the
ff-6383feature flag is on.
You can add multiple components to one server and enable or disable individual tools at any time. Each tool row has a Configure button, an Enabled toggle, and an actions menu (⋮). A disabled tool is removed from the server's tool list: connected assistants can no longer see or call it. New tools are enabled by default. Switching a tool requires permission to edit the workspace's MCP servers. The server-level toggle turns the whole server on or off. Configure opens the properties panel below, and the actions menu holds Delete. The component's own ⋮ menu has Edit (change the selected tools and connection) and Delete.

For each exposed action you decide which parameters you set yourself (a constant the assistant cannot change) and which the assistant fills at call time with the fromAi(...) expression, the same mechanism used for AI Agent tools. See Supplying tool parameters with fromAi for the syntax.
The properties panel also has Tool Name and Tool Description fields. Both are optional, and both are what the model sees. When blank, the name defaults to COMPONENT_ACTION in upper snake case (sendChannelMessage on Slack becomes SLACK_SEND_CHANNEL_MESSAGE), and the description defaults to the action's own. A tool name is limited to 64 characters made up of letters, digits, _ and -, the characters AI model APIs accept; anything else, a space included, is rejected as you type. A name you set is served exactly as typed, so changing it later breaks clients and prompts that call the old name. A name saved with other characters, for example through the API, is served without the ones at its start and end and with each other run of them replaced by _.
Rename an action when its generated name would not tell the model what it does in your context, or when two servers should surface the same action differently. The override is stored on the server's attachment to the tool, not on the component, so it does not follow the action anywhere else.
Let AI fill required
Let AI fill required sits below Tool Description in the inline forms, in a workflow's Tool tab and in the Configure panels. It sets every empty, visible required field to a fromAi(...) expression, so the assistant supplies those values at call time:
- Optional fields are left empty, for you to set or to leave unset. For a workflow tool, the required fields are the ones listed under
requiredin the trigger's input schema. - Fields you filled in are left alone, and so is a field still holding its built-in default.
- Fields hidden by a display condition are skipped, and so are advanced fields unless Show Advanced Properties is expanded.
- A select field with fixed options gets that list in the expression. A select whose options come from the connection is filled only if its options load, and the list is not stored: the server reads it from the tool's connection each time it lists the tool. When such a field is the only empty one and its options can't be loaded, the button is disabled.
- A nested field gets an argument named after its full path, so
shipping.cityandbilling.citybecomeshipping_cityandbilling_city.
New tools start this way: when you add an action or a workflow, its empty required fields are filled with fromAi(...) even if you never open its form. The exception is a select field whose options come from the connection, such as a channel or a spreadsheet: it stays empty, so you choose which one the assistant can use. Clicking Let AI fill required, or turning on AI for that field, hands it to the assistant; the options it may choose from are then read from the tool's connection whenever the server lists the tool, so they stay correct after you change the connection or set up the same tool in another environment. Tools you already exposed are never filled again, and Edit keeps their saved settings. If a new tool's settings can't be loaded while you save, the tool is added without those values and a warning names it, so you can set them from its Configure panel.
Defaults at call time
When a tool runs, a field without a value gets its default. For a component tool that is the field's built-in default. For a workflow tool it is the default set on that field in the New Workflow Call trigger's input schema; a default that does not match the field's type is ignored. Values are applied in this order, each overriding the one before:
- the field's default
- the value the assistant sends
- the value you saved
A value you fixed therefore always wins over the assistant. A field you cleared stays empty; its default does not come back.
Expose workflows

- Expand the server's row, open its Workflow Tools tab and click Add Workflows.
- On the Basic step, select a project and a published version, then click Next.
- On the Workflows step, switch on the workflows from that version you want to expose. Only workflows that start with the Workflow → New Workflow Call trigger are listed; a version without any says so.
- For each switched-on workflow, pick its Connections, fill in its Inputs and set up its Tool tab, then click Add. Every required connection must be set; a connection must belong to the server's environment.
- The Tool tab holds the workflow's tool mapping: a Tool Name and a Tool Description (both shown to the model), plus one field per input declared on the workflow's New Workflow Call trigger, including the child fields of object and array inputs. A tool name is limited to 64 characters made up of letters, digits,
_and-, the characters AI model APIs accept; anything else, a space included, is rejected as you type. A name you set is served exactly as typed, so changing it later breaks clients and prompts that call the old name. A name saved with other characters, for example through the API, is served without the ones at its start and end and with each other run of them replaced by_. The Inputs tab is the workflow's own configuration and can't be filled by AI. To change the mapping later, click Configure on the workflow's row in the expanded server.
Adding a project version does not touch your own deployments. The server deploys the selected workflows itself, in a deployment of its own in the server's environment that does not appear in the Deployments list. The attachment stays pinned to that version. To expose another version, choose Change Project Version from the project's ⋮ menu, which also has Edit Workflows and Delete.
Each workflow row has its own Enabled toggle, like a component tool: a disabled workflow is left out of the server's tool list until you switch it back on, and new workflows start enabled. Configure opens the tool mapping, and the row's actions menu holds Edit (the workflow's connections and inputs in the server's deployment) and Delete.
Each exposed workflow becomes one tool. Per-input values can be fixed constants or fromAi(...) expressions the assistant fills at call time. When the assistant calls the tool, ByteChef runs the workflow with those inputs and waits up to 300 seconds for it to finish. It returns the workflow's response if the workflow sends one, and otherwise the run's outputs. A run that pauses on an approval step returns status: approval_required together with the approval form link; MCP clients that support elicitation ask the user to approve or reject inline instead.
The mapping is stored on the MCP server's attachment to the workflow, not in the workflow definition. The same workflow can therefore be exposed under different tool names on different servers, and adding a workflow does not by itself make it callable.
Why a workflow might not appear in the tool list
A workflow is silently skipped when the server lists its tools if any of these is true:
- It does not start with the Workflow → New Workflow Call trigger
(
workflow/v1/newWorkflowCall). Only that trigger makes a workflow callable as a tool. - Its tool name is blank and its label has no letters or digits to build one from. A blank tool
name otherwise falls back to the workflow's label in upper case, with every run of characters
other than letters, digits,
_and-replaced by_(Send EmailbecomesSEND_EMAIL), matching theCOMPONENT_ACTIONstyle of component tools. - The server has Enforce tool authorization on, which hides every workflow tool.
- Its Enabled toggle is off.
Choosing what to expose
Prefer exposing a workflow over giving an assistant direct access to the upstream API it wraps:
- The assistant is handed a tool, never a credential.
- Retry and error handling live in the workflow, so every caller behaves the same way without each client reimplementing them.
- Every tool call runs as an ordinary workflow execution and appears in Workflow Executions with its inputs, outputs, and per-step trace, so you can debug an assistant's calls like any other run.
- Changing what a tool does is a new project version attached to the server, not an update to every connected client.
Turning the server on
Switching a server on is refused with an incomplete tool mapping error, naming the workflows at fault, while any exposed workflow has no tool name or leaves a required trigger input unmapped. A blank Tool Name counts as set when the workflow's label can stand in for it, as in the tool list; only a label without letters or digits leaves the workflow nameless. Complete those mappings first, then turn on the Enabled switch.
While a server is off, a request with a valid credential (or any request, when the server does not require authentication) is answered with 403 and the JSON body {"error": "server_disabled", "message": "…"}. The response carries no sign-in challenge, so an MCP client reports the server as unavailable instead of asking you to sign in. A request without a valid credential to a server that requires one still gets 401, whether the server is on or off.
Get the server URL
Expand the server's row and open its Connect tab. It shows the URL inside ready-to-copy configuration snippets, grouped into per-client tabs: Claude, Cursor, Windsurf, and Other. The URL has the form:
https://<your-host>/api/automation/<secret-key>/mcpKeep this URL private. The secret key identifies this server and selects which tools are exposed. Each snippet has a refresh control, available to editors of the server's workspace and to tenant admins, that rotates the secret in the URL, invalidating the old one. Viewers do not see the URL.
Whether the URL alone is enough to connect depends on the server's Require authentication setting.
Authentication
The URL secret identifies the server. When the server has Require authentication enabled, a separate credential also authenticates the caller, and requests without a valid one are rejected with 401. Whether a credential is required is a per-server setting. See Require authentication.
Require authentication
Each MCP server has a Require authentication checkbox, in both the create and the edit dialog:
- On - every request must carry a valid API key or a JWT from a trusted issuer; token-less requests get
401. This is the default for newly created servers. - Off - the URL secret alone is enough; requests are served without a credential, and an API key that is sent is ignored. Servers created before this setting existed default to off, except servers that already had Enforce tool authorization on, which default to on.
Keep the URL secret private in both modes. It is the server's only protection when authentication is off.
Enforce tool authorization
Availability
Tool authorization is behind the ff-6383 feature flag. When the flag is off, the Enforce tool authorization toggle and the components' Required Authorities picker are hidden.
Editing an existing server also offers Enforce tool authorization. With it on, a component's tools are listed and callable only for callers holding at least one of the component's Required Authorities; a component without any is hidden, and so is every workflow tool. The caller's authorities are those of the API key's owner, or those mapped from the JWT.
It depends on authentication: an anonymous caller has no identity to authorize, so turning Require authentication off clears and disables it, and the server rejects the combination.
API key (default)
Create a workspace API key under Settings → API Keys in Automation, in the server's environment, and send it with every request as a Bearer header:
Authorization: Bearer <your-api-key>Only workspace API keys are accepted; an admin API key is rejected with 401. When the server requires authentication, the connection snippets below include this header. A key works only on the MCP servers of its own workspace and environment: a key from another workspace, or created for another environment, is rejected with 401. A request may name an environment in the X-ENVIRONMENT header, but it must be the server's own - another one is rejected with 401, also on a server that does not require authentication. Because the key is bound to your user account, you can revoke a single client by deleting its key without regenerating the server URL or touching other clients.
Sign in with ByteChef (optional)
When the built-in OAuth2 authorization server is turned on, an OAuth-capable MCP client can connect to the server URL without an API key: you sign in with your ByteChef account and approve the mcp:automation scope. The server then accepts the client only if you are a member of the server's workspace (or a tenant administrator), and only for that server. The token does not work on another MCP server. A request that names another environment in X-ENVIRONMENT is rejected with 403. See MCP Server → Sign in with ByteChef for the setup and how long tokens last.
JWT from a trusted issuer (optional)
The MCP endpoints can also accept JWTs from an external issuer that your installation trusts. List each trusted issuer under the BYTECHEF_OAUTH2_RESOURCE_SERVER_ISSUERS_* properties. See Environment Variables. JWT support stays off until at least one issuer is configured. A token from an issuer that is not listed is rejected with 401, and a token for these endpoints must carry the mcp:automation scope. API keys keep working alongside JWTs.
Per-account identity providers are not used here yet. Trusted issuers are set by whoever runs the ByteChef installation, in its configuration, and apply to every account. Identity providers added under Settings → Identity Providers are used for signing in to ByteChef only; their tokens are not accepted on MCP servers.
Connect an AI assistant
Claude.ai (web)
Requires a Claude Pro subscription. claude.ai integrations cannot send custom headers, so they can only reach a server that has Require authentication turned off.
- Go to claude.ai/settings/integrations
- Click Add More
- Paste your MCP server URL and save
Claude Desktop
-
Open Claude Desktop
-
Go to Settings → Developer → Edit Config → Open
claude_desktop_config.json -
Add the following, replacing the URL with yours and
YOUR_API_KEYwith your API key:{ "mcpServers": { "ByteChef": { "command": "npx", "args": [ "-y", "mcp-remote", "https://<your-host>/api/automation/<secret-key>/mcp", "--header", "Authorization: Bearer YOUR_API_KEY" ] } } } -
Save the file, then quit and restart Claude Desktop
How requests are handled
When a client connects, ByteChef authenticates the caller's credential (when the server requires one), identifies the server from the secret key in the URL, and returns only the tools that server exposes: the enabled actions and workflows you selected, in that server's environment. Disabling the server, disabling a tool, removing a tool, or regenerating the secret key takes effect immediately for new requests.
Related
How is this guide?
Last updated on