import { initStderrTee } from "../../../../lib/mcp-stderr-tee/dist/index.js";
initStderrTee("cloudflare");
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
// The Cloudflare plugin exposes zero agent-facing tools. Every
// Cloudflare operation is the agent invoking `cloudflared` directly via
// the Bash tool, following the runbook in
// platform/plugins/cloudflare/references/manual-setup.md, with
// cloudflared stdout/stderr streamed verbatim into the PTY. The MCP
// server process still spawns for lifecycle and stderr-tee consistency
// with other plugins, but its tool list is empty by design.
const server = new McpServer({
    name: "cloudflare",
    version: "0.4.0",
});
async function main() {
    const transport = new StdioServerTransport();
    await server.connect(transport);
}
main().catch((err) => {
    console.error(`[cloudflare-mcp] fatal: ${err}`);
    process.exit(1);
});
//# sourceMappingURL=index.js.map