OpenAPI to MCP
Publish & download
Download or publish your generated MCP server after configuring tool rules.
Once your tools are configured, you can get the generated MCP server as a downloadable ZIP or host it via the Agenetix Gateway.
Download as ZIP#
- Open the server detail page
- Click Download Server
- You get a ZIP containing:
package.jsonwith MCP SDK and telemetry dependenciessrc/index.tswith tool handlers built from your tool rules.env.examplewith all required environment variablestsconfig.jsonconfigured for Node.js ESM
The generated code uses your custom tool descriptions, instructions, and selection guidance — not just the raw OpenAPI text.
Host via Gateway worker#
For managed hosting behind the Agenetix auth edge:
- Configure hosting in the server's Runtime settings
- Choose Gateway Worker as the runtime mode
- The generated server runs as a worker behind your Gateway
- Agents and the SDK connect via the Gateway URL
flowchart LR
SDK["Agent SDK"] --> GW["Gateway URL"]
GW --> Worker["Generated worker"]
Worker --> API["Your upstream API"]Attach to an agent#
After publishing, attach the server to an Agent:
- Go to Agents > your agent
- Click Attach MCP Server
- Select the generated server
- Optionally configure which tools the agent can use
Republishing after changes#
When you edit tool rules or refresh the OpenAPI spec, the server detail page shows a Needs redeploy indicator. Click Publish to regenerate and redeploy with your latest changes.
