Turn Your Workflows Into an MCP Server, No SDK Required

2026-12-01来源 dev.toEnglish
Turn Your Workflows Into an MCP Server, No SDK Required

TL;DR: ByteChef can expose your connectors and workflows as an MCP server. You create the server in the UI, add component actions and deployed workflows as tools, and mark the fields the model should supply with fromAi(). ByteChef generates each tool's input schema from those fields, hosts the server over streamable HTTP, and walks you through connecting Claude, Cursor, VS Code, ChatGPT and other clients. There is no SDK to learn, no server code to write and nothing extra to deploy.

The assistant that can't do anything

Most teams I talk to are in the same spot. People spend the day with an AI assistant, whether that's Claude, an agent in the IDE or an internal chatbot. It reasons well, and it has no hands. It can't send the Slack message, update the HubSpot contact or start the onboarding process you spent a month getting right.

An automation platform already has what the assistant lacks: authenticated connections to your SaaS tools, and workflows that encode how your business runs. The Model Context Protocol (MCP) is the standard way to join the two. Usually that means writing a server: pick an SDK, define tools, describe schemas, handle auth, find hosting. In ByteChef it's configuration.

Two kinds of tools

Open MCP Servers, click New MCP Server, name it, and start adding tools.

Component actions

Any action from any connector can be a tool: send a Gmail message, create a HubSpot contact, insert a row into a Data Table. You pair the action with a stored connection, and when the model calls the tool, ByteChef runs the action with those credentials. They never leave ByteChef and the model never sees them.

Every action has its own switch, so you can expose Get Email without exposing Send Email.

An MCP server's Component Tools tab with Affinity, Gmail and HTTP Client components, and the Gmail Get Email action enabled as a tool

Workflows

This is the part I find most useful. Attach a workflow from a deployed project and it becomes a tool with a name and a description. Spend time on the description, because it's what the model reads when deciding whether to call the tool.

The Workflow Tools tab listing a project and its workflow exposed as a tool

A tool call runs the real workflow on the same engine, and the run lands in the same execution history as any other. ByteChef waits for the job to finish and returns the result to the caller. Your existing controls still apply: disable the workflow and it disappears from the tool list, disable the server and calls are refused.

So the workflow you built months ago, approval steps, error handling, retries and all, is now a function a model can call.

fromAi(): splitting policy from content

Parameters are the hard part of giving tools to a model. Some are policy: which Slack channel, which table, which API version. Those should be yours. Others are content: the message text, the search query, the customer's name. Those are what the model is good at. Most tool bridges make you pick between exposing everything and hard-coding everything.

ByteChef handles it with one expression. A parameter you set normally stays fixed and invisible to the model. A parameter you mark with fromAi() becomes an input the model provides:

channel: #customer-alerts <- fixed by you message: =fromAi('message') <- written by the AI subject: ='[Escalation] ' + fromAi('title') <- your prefix, the AI's title 

In the tool editor, a marked field reads Automatically defined by the model and everything else keeps your value. Let AI fill all marks every field at once if that's what you want.

The Edit Get Email Tool panel, with Message ID marked as automatically defined by the model and Format fixed to Simple

The tool's MCP input schema is built from the fromAi() fields only. The model sees the parameters you handed over, with names and descriptions, and nothing more. It can write the message; it can't redirect it to another channel. Because fromAi() is an ordinary expression, you can also mix model input with your own fixed text, as in the subject line above.

That single rule, this field is the model's and the rest are mine, is most of what makes it comfortable to point an outside model at real automations.

Connecting a client

Each server is served over streamable HTTP at an address containing its own secret:

https://<your-bytechef>/api/automation/{secretKey}/mcp 

The secret identifies the server. It isn't meant to be the credential, so every server also has a Require authentication switch, on by default. With it on, a caller must present an API key or an OAuth token in addition to the URL. Connection snippets are marked Sensitive, and you can regenerate the URL if it leaks.

Client setup used to be the fiddliest step, so each server has a Connect tab. Pick your client (Claude, Claude Code, Cursor, VS Code, ChatGPT, Codex CLI or Devin Desktop) and you get that client's own steps with the server URL filled in. Cursor and VS Code get an install button.

The Connect tab with a list of MCP clients on the left and step-by-step instructions for adding ByteChef as a custom connector in Claude

For Claude, the One click path is: add ByteChef as a custom connector, paste the URL, click Sign in, approve access when ByteChef opens in your browser. No keys to copy. The Manual path covers clients that want an API key in a request header. How sign-in works underneath is covered in the MCP security post.

The whole flow, end to end:

  1. Create the server.
  2. Add component actions and workflows as tools.
  3. Mark the fromAi() fields.
  4. Follow the Connect steps for your client.
  5. Ask the assistant to do something.

In my experience the slowest step is writing good tool descriptions.

Coming in v0.38: tools from other MCP servers

v0.38 adds a third tab, MCP Server Tools, next to Component Tools and Workflow Tools. It lets you put tools from a remote MCP server, such as Notion or Linear, behind your ByteChef server. Pick the server from the catalog or add a custom one, choose which tools to include, and your client sees them alongside your own actions and workflows.

Two rules keep the list unambiguous: a remote server can be added once per connection, and tool names must be unique across the whole server. The remote tool list is cached and refreshed every five minutes, so a slow upstream doesn't slow down every tool listing.

Both directions of the protocol

ByteChef sits on whichever side of MCP you need, the same approach we took with A2A:

  • As an MCP server (this post): outside AIs call into your connectors and workflows.
  • As an MCP client: the MCP Client component lets your ByteChef agents and workflows call out to third-party MCP servers.

What actually changes

Your assistant can act, under your rules. You expose one standard server instead of building a plugin per assistant. Credentials stay in ByteChef's connection store, so the model holds the server's address and never your Slack token.

Workflows become the unit of AI capability. "The AI can call APIs" and "the AI can run our process" are far apart. A workflow tool brings your validation, approvals and error handling with it, so the model starts a process instead of hitting a raw endpoint.

The boundary is readable. fromAi() schemas, per-server tool lists, switches at the server, component and workflow level, and an address you can regenerate. What the model can do is configuration you can audit, not prompt instructions you hope it follows.

Try it with one workflow

Start small. Pick one deployed workflow your team already trusts, expose it as a tool, and mark only the fields the model really needs with fromAi(). Watching an assistant call one real process teaches you more than exposing fifty raw actions.

Open ByteChef, create an MCP Server, add a workflow, mark a field and follow the Connect tab for your client. The MCP Servers docs cover every option.

Originally published on the ByteChef blog.

原文:https://www.a8q9.cn/en/article/turn-your-workflows-into-an-mcp-server-no-sdk-required-67e783.html

相关文章