MCP Reference

Guide

Cursor

Cursor can use Anamaya MCP remotely (Streamable HTTP) or locally via stdio for developer demos.

Remote HTTP (recommended for shared PoC)

{
  "mcpServers": {
    "anamaya": {
      "url": "https://maya.suherman.net/mcp/anamaya/v1",
      "headers": {
        "Authorization": "Bearer <MAYA_ANAMAYA_MCP_API_TOKEN>"
      }
    }
  }
}

Local stdio

{
  "mcpServers": {
    "anamaya": {
      "command": "node",
      "args": ["/ABS/PATH/maya-anamaya-mcp/dist/index.js"],
      "env": {
        "ANAMAYA_OMS_BASE_URL": "https://oms-dev.example.com"
      }
    }
  }
}

Do not commit OMS passwords or gate tokens into .cursor configs checked into git. Prefer env injection.

Agent rules of engagement

  • Call anamaya_login before search when the cache is cold
  • Flight depDate: MM-DD-YYYY; passengers as strings
  • Stop and ask the human before any confirm-gated tool
  • Hotel geo may need REST /api/hotel/geo/list — see the REST section