=============== LIBRARY RULES =============== From library maintainers: - The hosted MCP server is https://mcp.revenuedot.app/mcp (Streamable HTTP); the client signs in with OAuth, or send `Authorization: Bearer sk_...`. - To run it locally over stdio: `npx -y @revenuedot/mcp` with REVENUEDOT_API_KEY set, and REVENUEDOT_URL for a self-hosted server (it defaults to https://api.revenuedot.app). - No tool accepts a store key or password: App Store and Google Play credentials are entered in the RevenueDot dashboard, and a secret key should carry only the scopes the assistant needs. - Every tool takes an optional `project_id`; leave it out when the key or connection has one project. - The tool definitions can be reused without MCP: `import { tools, runTool } from "@revenuedot/mcp/tools"`. ### Run self-hosted RevenueDot MCP server Source: https://github.com/revenuedot/mcp/blob/main/README.md Starts the RevenueDot MCP server in self-hosted HTTP mode, listening on port 8788 and serving the MCP endpoint at http://127.0.0.1:8788/mcp. Use --host 0.0.0.0 and --public-url to expose it behind a reverse proxy. ```bash npx -y @revenuedot/mcp --http --port 8788 --url https://your-server ``` -------------------------------- ### Run development commands with pnpm Source: https://github.com/revenuedot/mcp/blob/main/README.md Development commands for the repository. Requires Node 24 and pnpm. `pnpm test` starts a real RevenueDot server from ../revenuedot (or REVENUEDOT_REPO) on in-memory Postgres; `pnpm dev` runs HTTP on :8788 against REVENUEDOT_URL; `pnpm run deploy` deploys a Cloudflare Worker with the cf CLI (cloudflare.config.ts, Circo account) and needs Node 22.18+. ```bash pnpm install pnpm test # starts a real RevenueDot server from ../revenuedot (or REVENUEDOT_REPO) on in-memory Postgres pnpm typecheck pnpm dev # HTTP on :8788 against REVENUEDOT_URL pnpm run deploy # Cloudflare Worker with the cf CLI (cloudflare.config.ts, Circo account); needs Node 22.18+ ``` -------------------------------- ### Use tools without MCP Source: https://github.com/revenuedot/mcp/blob/main/README.md Use the tool definitions and executors directly without MCP, by creating a client and calling runTool with the tool name and arguments. ```ts import { createClient } from "@revenuedot/mcp"; import { tools, runTool } from "@revenuedot/mcp/tools"; const client = createClient({ baseUrl: "https://api.revenuedot.app", apiKey: process.env.REVENUEDOT_API_KEY! }); await runTool(client, "grant-customer-entitlement", { customer_id: "user_42", entitlement_id: "pro", expires_at: "30d" }); ``` -------------------------------- ### Configure RevenueDot MCP server in JSON Source: https://github.com/revenuedot/mcp/blob/main/README.md Configuration for MCP clients that use a JSON config file (e.g., Claude Desktop). Specifies the npx command, arguments, and environment variables for the RevenueDot MCP server. ```json { "mcpServers": { "revenuedot": { "command": "npx", "args": ["-y", "@revenuedot/mcp"], "env": { "REVENUEDOT_API_KEY": "sk_...", "REVENUEDOT_URL": "https://your-server" } } } } ``` -------------------------------- ### Add RevenueDot MCP server to Claude Code Source: https://github.com/revenuedot/mcp/blob/main/README.md Adds the RevenueDot MCP server to Claude Code via the CLI, passing the API key and optional server URL as environment variables. Requires a secret key created under API keys in the RevenueDot dashboard. ```bash claude mcp add revenuedot -e REVENUEDOT_API_KEY=sk_... -e REVENUEDOT_URL=https://your-server -- npx -y @revenuedot/mcp ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.