For Developers

CLI and MCP server

Extract and diff schemas from your terminal, and let AI agents query your data model directly. Both are published on npm under MIT.

Before you install

The default API host in the currently published versions does not resolve yet. Always set THINKERD_API_URL as shown below.

MCP server

@thinkdata/mcp-server@0.1.0

A Model Context Protocol server. Connect it to Claude Desktop, Cursor, or any MCP-capable tool and the assistant can query your database schema directly.

MCP client configuration

{
  "mcpServers": {
    "thinkerd": {
      "command": "npx",
      "args": ["-y", "@thinkdata/mcp-server"],
      "env": {
        "THINKERD_API_URL": "https://api.thinkerd.io",
        "THINKERD_TOKEN": "<your-token>"
      }
    }
  }
}
View on npm

CLI

@thinkdata/cli@0.2.2

Extracts database schemas and compares them against your design model. Useful in CI to catch design-to-runtime drift.

Usage

# 스키마 추출
THINKERD_API_URL=https://api.thinkerd.io \
  npx @thinkdata/cli pull --workspace <id>

# 설계 모델과 실제 스키마 비교
THINKERD_API_URL=https://api.thinkerd.io \
  npx @thinkdata/cli diff --workspace <id>
View on npm

Environment variables

Read by both packages.

VariableRequirementDescription
THINKERD_API_URLRequiredAPI endpoint. Must be set explicitly for now.
THINKERD_TOKENOptionalPersonal access token, needed to reach a workspace.