checkbox-mcp-server 1.1.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -8,7 +8,8 @@
8
8
  *
9
9
  * Environment variables:
10
10
  * CHECKBOX_API_URL — Base URL of the Checkbox instance (e.g. https://checkbox.my)
11
- * CHECKBOX_API_TOKEN — API key (ck_live_...) or Supabase JWT
11
+ * CHECKBOX_API_KEY — API key (ck_live_...) preferred
12
+ * CHECKBOX_API_TOKEN — Alias for CHECKBOX_API_KEY (backward compat)
12
13
  *
13
14
  * Get your API key:
14
15
  * 1. Log in to checkbox.my
package/dist/index.js CHANGED
@@ -8,7 +8,8 @@
8
8
  *
9
9
  * Environment variables:
10
10
  * CHECKBOX_API_URL — Base URL of the Checkbox instance (e.g. https://checkbox.my)
11
- * CHECKBOX_API_TOKEN — API key (ck_live_...) or Supabase JWT
11
+ * CHECKBOX_API_KEY — API key (ck_live_...) preferred
12
+ * CHECKBOX_API_TOKEN — Alias for CHECKBOX_API_KEY (backward compat)
12
13
  *
13
14
  * Get your API key:
14
15
  * 1. Log in to checkbox.my
@@ -20,11 +21,11 @@ import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'
20
21
  import { z } from 'zod';
21
22
  // ── Config ──────────────────────────────────────────────────────────
22
23
  const API_URL = process.env.CHECKBOX_API_URL ?? 'https://checkbox.my';
23
- const API_TOKEN = process.env.CHECKBOX_API_TOKEN ?? '';
24
+ const API_TOKEN = process.env.CHECKBOX_API_KEY || process.env.CHECKBOX_API_TOKEN || '';
24
25
  function getHeaders() {
25
26
  return {
26
27
  'Content-Type': 'application/json',
27
- ...(API_TOKEN ? { Authorization: `Bearer ${API_TOKEN}` } : {}),
28
+ ...(API_TOKEN ? { 'X-API-Key': API_TOKEN } : {}),
28
29
  };
29
30
  }
30
31
  // ── HTTP helpers ────────────────────────────────────────────────────
@@ -49,7 +50,7 @@ function resultText(data) {
49
50
  // ── MCP Server ──────────────────────────────────────────────────────
50
51
  const server = new McpServer({
51
52
  name: 'checkbox',
52
- version: '1.1.0',
53
+ version: '2.0.0',
53
54
  });
54
55
  // 1. List capabilities ───────────────────────────────────────────────
55
56
  server.tool('list_capabilities', 'List all available Checkbox commands and queries with their descriptions, required roles, and domains. Call this first to understand what actions are available.', {}, async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "checkbox-mcp-server",
3
- "version": "1.1.0",
3
+ "version": "2.0.0",
4
4
  "description": "MCP server for the Checkbox capability API — lets AI assistants (Claude, Cursor, etc.) manage compliance plans, tasks, documents, and more through the Model Context Protocol.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",