Skip to content

Latest commit

 

History

History
159 lines (109 loc) · 5.56 KB

README.md

File metadata and controls

159 lines (109 loc) · 5.56 KB

DoiT MCP Server

smithery badge License: MIT

DoiT MCP Server provides access to the DoiT API. This server enables LLMs like Claude to access DoiT platform data for troubleshooting and analysis.

top-services

Requirements

  • Node.js v18 or higher
  • DoiT API key with appropriate permissions
  • Customer context identifier (for customer-specific data)

Installation

To get your DoiT API key, visit the API key section in your DoiT profile.

There are several ways to install and configure the MCP server:

Installing via Smithery (Recommended)

To install doit-mcp-server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @doitintl/doit-mcp-server --client claude

Claude Desktop App

To manually configure the MCP server for Claude Desktop App, add the following to your claude_desktop_config.json file or through "Settings" as described here:

{
  "mcpServers": {
    "doit_mcp_server": {
      "command": "npx",
      "args": ["-y", "@doitintl/doit-mcp-server@latest"],
      "env": {
        "DOIT_API_KEY": "your_doit_api_key"
      }
    }
  }
}

Make sure to replace the environment variables with your actual values:

  • DOIT_API_KEY: Your DoiT API key with appropriate permissions
  • CUSTOMER_CONTEXT: Your customer context identifier (optional)

NOTE: you need to restart Claude for Desktop after updating the configuration for changes to take effect.

Cursor

For Cursor IDE, you can install this MCP server using Smithery (recommended):

npx -y @smithery/cli install @doitintl/doit-mcp-server --client cursor

Or manually with the following command in your project:

env DOIT_API_KEY=[KEY] npx -y @doitintl/doit-mcp-server@latest

Don't forget to replace the env values in that command with your actual values.

If you have the latest version (v0.47 and above) of Cursor, you can create an mcp.json file in your project root:

{
  "mcpServers": {
    "DoiT": {
      "command": "npx",
      "args": [
        "DOIT_API_KEY=your_doit_api_key",
        "--",
        "npx",
        "-y",
        "@doitintl/doit-mcp-server@latest"
      ]
    }
  }
}

Clone to Local Repository

If you want to clone and run this MCP server directly from the source code, follow these steps:

  1. Clone the repository
git clone https://github.com/doitintl/doit-mcp-server
cd doit-mcp-server
  1. Install dependencies
yarn install
  1. Build the project
yarn build
  1. Run the server
node dist/index.js

Tools

This MCP server provides the following tools:

  • get_cloud_incidents: Retrieve cloud incidents from various platforms
  • get_cloud_incident: Get details about a specific cloud incident by ID
  • get_anomalies: Retrieve anomalies detected in cloud resources
  • get_anomaly: Get details about a specific anomaly by ID
  • list_reports: Lists Cloud Analytics reports that your account has access to
  • run_query: Runs a report query with the specified configuration without persisting it
  • get_report_results: Get the results of a specific report by ID
  • validate_user: Validates the current API user and returns domain and email information
  • list_dimensions: Lists Cloud Analytics dimensions that your account has access to
  • get_dimension: Get a specific Cloud Analytics dimension by type and ID

Usage Examples

Here are some common queries you can ask using the DoiT MCP server:

Cost Analysis and Savings

  • "What are my Flexsave savings?" - This will analyze your Flexsave cost optimization savings across your cloud accounts.
  • "What are my top 3 AWS services by cost?" - This will run a Cloud Analytics query to identify your highest-spending AWS services.

Reports and Analytics

  • "List all my available reports" - This will show all Cloud Analytics reports you have access to.
  • "Show me the results of my 'Monthly Cost Overview' report" - This will fetch and display results from a specific report.

Anomaly Detection

  • "What are my recent GCP anomalies?" - This will show recent cost or usage anomalies detected in your Google Cloud Platform accounts.
  • "Show me details about anomaly ABC123" - This will provide detailed information about a specific anomaly.

These examples demonstrate basic usage patterns. You can combine and modify these queries based on your needs. The MCP server will interpret your natural language queries and use the appropriate tools to fetch the requested information.

Environment Variables

  • DOIT_API_KEY: Your DoiT API key (required)
  • CUSTOMER_CONTEXT: Your customer context identifier (optional)