mattrguerra/meridian-orders-mcpmainPrivate on GitHub, published here in full

env.ts

Language TypeScript674 B16 lines

mcp-server/src/env.ts

  1. import type { PlinthEnvVars } from "./lib/config.js";
  2. import type { RateLimiterDO } from "./rateLimiterDO.js";
  3. /**
  4. * Cloudflare Workers environment bindings.
  5. *
  6. * Extends the plain env vars the core reads (PlinthEnvVars) with the
  7. * Worker-only bindings. `PLINTH_API_KEY` is a SECRET: set it with
  8. * `wrangler secret put PLINTH_API_KEY`, never in wrangler.jsonc.
  9. */
  10. export interface Env extends PlinthEnvVars {
  11. /** Durable Object namespace backing the McpAgent (one instance per session). */
  12. PLINTH_MCP: DurableObjectNamespace;
  13. /** Shared rate-limiter DO enforcing the global 10/10s cap across sessions. */
  14. RATE_LIMITER: DurableObjectNamespace<RateLimiterDO>;
  15. }