#!/usr/bin/env node
// CLI entrypoint for the venos MCP server.
// Reads config from environment variables and connects via stdio transport.
//
// Usage (add to Claude Code / Cursor config):
//   {
//     "mcpServers": {
//       "venos": {
//         "command": "npx",
//         "args": ["@venos/mcp-server"],
//         "env": {
//           "VENOS_URL": "http://localhost:8787",
//           "VENOS_ORG_ID": "your-org-id",
//           "VENOS_API_KEY": "optional-api-key"
//         }
//       }
//     }
//   }
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
import { createVenosMcpServer } from "./server.js";
const baseUrl = process.env["VENOS_URL"] ?? "http://localhost:8787";
const orgId = process.env["VENOS_ORG_ID"] ?? "default";
const apiKey = process.env["VENOS_API_KEY"];
const server = createVenosMcpServer({
    clientConfig: { baseUrl, orgId, ...(apiKey !== undefined ? { apiKey } : {}) },
});
const transport = new StdioServerTransport();
await server.connect(transport);
//# sourceMappingURL=bin.js.map