@mcp-com-ai/plugin-cloudflare
v1.3.0
Published
Cloudflare Workers deployment for the HAPI CLI: deploy, login, status. Bundles the HAPI worker entrypoint.
Maintainers
Readme
HAPI Cloudflare plugin 
@mcp-com-ai/plugin-cloudflare deploys a HAPI MCP server to Cloudflare Workers.
It supports both OpenAPI APIs and HAPI Workflows (Arazzo), selected
automatically from the document passed with --specs.
Install and deploy
bun add -g \
@mcp-com-ai/hapi \
@mcp-com-ai/plugin-cloudflare
hapi cloudflare login
hapi cloudflare deploy --specs https://example.com/openapi.yamlUse an HTTP(S) URL for --specs: a Worker cannot read a file from your
computer. Use an Arazzo URL in exactly the same way:
hapi cloudflare deploy --specs https://example.com/workflow.yamlThe deployment command reports the public MCP URL to configure in your client. Review API credentials and tool permissions before sharing that URL.
OAuth-protected documents
Before publishing, HAPI reads the document (and the referenced operations for
an Arazzo workflow). If an effective operation requires OAuth, the standard
deployment stops with a clear warning: the public Worker cannot install the
licensed OAuth broker after it is deployed. Deploy the private Enterprise OAuth
Worker profile instead. --allow-unsupported-oauth is available only for a
deliberately limited deployment; OAuth tool discovery and protected calls will
not work in that public Worker.
The deployment bundle includes the runtime needed to recognize OpenAPI and
Arazzo. Install the OpenAPI or Arazzo plugin too when you also want to run
those documents locally with hapi serve. Keep all selected HAPI packages on
the same release version.
