Skip to main content
Glama
Enterprise Ops MCP Gateway

Enterprise Ops MCP Gateway

by sumitjangid

Enterprise Ops MCP Gateway

A TypeScript MCP gateway for safe AI access to mock enterprise operations data.

Milestone 1 status

The first milestone provides a local Next.js MCP endpoint with a whoami tool. Authentication, database access, policy enforcement, audit logging, and the dashboard are intentionally not implemented yet.

Related MCP server: MCP Playground

Milestone 2 status

The database milestone includes a PostgreSQL schema and deterministic synthetic seed data. The seed contains fictional customers, orders, tickets, and one expired pending action.

For a local dummy database:

docker run -d --name enterprise-ops-mcp-postgres \
  -e POSTGRES_DB=enterprise_ops \
  -e POSTGRES_USER=postgres \
  -e POSTGRES_PASSWORD=postgres \
  -p 54329:5432 postgres:17-alpine

npm run db:migrate
npm run db:seed
npm run db:reset  # optional: drop all gateway tables
npm run db:migrate
npm run db:seed

Milestone 3 status

The auth and policy module provides:

  • Constant-time bearer-token role mapping

  • Role-to-tool permission checks

  • Refund policy boundaries

  • Separation-of-duties checks

  • 24-hour expiry checks

  • PostgreSQL-backed per-token rate limiting

These modules are implemented and tested but are not yet wired into the MCP route.

Milestone 4 status

The sanitizer and audit modules provide:

  • Untrusted-data wrappers for ticket and customer text

  • Injection and exfiltration heuristics

  • Email and phone masking

  • Recursive secret-field redaction

  • Argument and result truncation

  • PostgreSQL audit-log writes

Local development

npm install
npm run dev

Open http://localhost:3000/api/mcp with MCP Inspector:

npx @modelcontextprotocol/inspector

Tests

npm test
npm run lint
npm run build

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Enables policy-governed MCP interactions with deterministic authorization, tenant isolation, minimized PII exposure, and human approval gates for sensitive mutations, while producing structured audit events.
      3
      MIT
    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables admins to author and manage persistent mock MCP servers and OpenAI-compatible endpoints through a browser UI and admin API, with REST mocks, shared datasets, and traffic logging for demos and training.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides an OAuth-protected, scoped, and audited MCP server that lets AI assistants safely query business data through a fixed set of tools without direct database access.
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI clients to call upstream MCP tools under each user's own identity, with guardrails, approvals, data filtering, and tamper-evident audit streaming to SIEM.
      AGPL 3.0