mycase-mcp

v1.0.4
io.github.oktopeak/mycase-mcp Checked 3 days ago Published 6 months ago

Connect Claude to MyCase: cases, contacts, documents, tasks, calendar, calls, time, billing, staff.

Values you need

VariableWhat it is
MYCASE_CLIENT_IDrequired MyCase OAuth client ID issued by MyCase support for your firm
MYCASE_CLIENT_SECRETrequired secret MyCase OAuth client secret issued by MyCase support
ENCRYPTION_KEYrequired secret 64-character hex key for encrypting stored OAuth tokens (generate with: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))")
MYCASE_REDIRECT_PORToptional Local port for the OAuth callback listener (default: 5678). Must match the redirect URI registered with MyCase support.
MYCASE_EXPERIMENTAL_TOOLSoptional Set to '1' to enable experimental tools (log-call) whose API endpoints are unverified.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add mycase-mcp -e 'ENCRYPTION_KEY=<ENCRYPTION_KEY>' -e 'MYCASE_CLIENT_ID=<MYCASE_CLIENT_ID>' -e 'MYCASE_CLIENT_SECRET=<MYCASE_CLIENT_SECRET>' -- npx -y @oktopeak/mycase-mcp@1.0.4
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mycase-mcp": {
      "args": [
        "-y",
        "@oktopeak/mycase-mcp@1.0.4"
      ],
      "command": "npx",
      "env": {
        "ENCRYPTION_KEY": "<ENCRYPTION_KEY>",
        "MYCASE_CLIENT_ID": "<MYCASE_CLIENT_ID>",
        "MYCASE_CLIENT_SECRET": "<MYCASE_CLIENT_SECRET>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mycase-mcp": {
      "args": [
        "-y",
        "@oktopeak/mycase-mcp@1.0.4"
      ],
      "command": "npx",
      "env": {
        "ENCRYPTION_KEY": "<ENCRYPTION_KEY>",
        "MYCASE_CLIENT_ID": "<MYCASE_CLIENT_ID>",
        "MYCASE_CLIENT_SECRET": "<MYCASE_CLIENT_SECRET>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "ENCRYPTION_KEY",
      "id": "encryption-key",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "MYCASE_CLIENT_ID",
      "id": "mycase-client-id",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "MYCASE_CLIENT_SECRET",
      "id": "mycase-client-secret",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "mycase-mcp": {
      "args": [
        "-y",
        "@oktopeak/mycase-mcp@1.0.4"
      ],
      "command": "npx",
      "env": {
        "ENCRYPTION_KEY": "${input:encryption-key}",
        "MYCASE_CLIENT_ID": "${input:mycase-client-id}",
        "MYCASE_CLIENT_SECRET": "${input:mycase-client-secret}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mycase-mcp]
command = "npx"
args = ["-y", "@oktopeak/mycase-mcp@1.0.4"]
env = { "ENCRYPTION_KEY" = "<ENCRYPTION_KEY>", "MYCASE_CLIENT_ID" = "<MYCASE_CLIENT_ID>", "MYCASE_CLIENT_SECRET" = "<MYCASE_CLIENT_SECRET>" }

For AI agents

  1. Ask the user for: MYCASE_CLIENT_ID, MYCASE_CLIENT_SECRET, ENCRYPTION_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: authenticate, auth-status, logout, list-cases, get-case, create-case, search-contacts, get-contact, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json