Back to Home
doitintl icon

doit-mcp-server

by doitintl

Overview

The DoiT MCP Server provides an MCP interface for Large Language Models (LLMs) to interact with the DoiT API, enabling capabilities such as cloud cost analysis, anomaly detection, reporting, invoice retrieval, and support ticket management.

Installation

Run Command
npx @doitintl/doit-mcp-server@latest

Environment Variables

  • DOIT_API_KEY
  • CUSTOMER_CONTEXT

Security Notes

The Cloudflare Worker (`doit-mcp-server/src/app.ts`) decodes and locally interprets claims (specifically `DoitEmployee`) from a client-provided JWT (`apiKey`) without validating the JWT's signature. While the `apiKey` itself is sent to the DoiT API for backend validation via `handleValidateUserRequest`, the `DoitEmployee` status is not returned by the DoiT API's `/auth/v1/validate` endpoint. This means an attacker could potentially forge a JWT to set `DoitEmployee: true` and trigger privileged workflows (e.g., the customer context screen intended for DoiT employees), even if they only possess a valid API key for a regular user. The existing check against `payload.sub` is insufficient to mitigate this privilege escalation risk.

Similar Servers

Stats

Interest Score38
Security Score4
Cost ClassHigh
Avg Tokens7500
Stars13
Forks1
Last Update2025-12-02

Tags

DoiTMCPCloudflareAPI IntegrationLLM Tools