@limeadelabs/clarabit-mcp 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/README.md ADDED
@@ -0,0 +1,135 @@
1
+ # @limeadelabs/clarabit-mcp
2
+
3
+ Clarabit MCP server for Claude Code — manage tasks, pull project context, and track work directly from your coding environment.
4
+
5
+ ## Quick Start
6
+
7
+ ```bash
8
+ # Install via Claude Code CLI
9
+ claude mcp add clarabit -- npx @limeadelabs/clarabit-mcp
10
+ ```
11
+
12
+ Or add manually to `~/.claude/claude_desktop_config.json`:
13
+
14
+ ```json
15
+ {
16
+ "mcpServers": {
17
+ "clarabit": {
18
+ "command": "npx",
19
+ "args": ["@limeadelabs/clarabit-mcp"],
20
+ "env": {
21
+ "CLARABIT_API_KEY": "your-api-key",
22
+ "CLARABIT_URL": "https://app.clarabit.ai"
23
+ }
24
+ }
25
+ }
26
+ }
27
+ ```
28
+
29
+ ## Environment Variables
30
+
31
+ | Variable | Required | Default | Description |
32
+ |----------|----------|---------|-------------|
33
+ | `CLARABIT_API_KEY` | Yes | — | API key from Clarabit workspace settings |
34
+ | `CLARABIT_URL` | No | `https://app.clarabit.ai` | Clarabit instance URL |
35
+ | `CLARABIT_TIMEOUT_MS` | No | `10000` | Request timeout in milliseconds |
36
+
37
+ The previous `LAUNCHPAD_API_KEY` / `LAUNCHPAD_URL` / `LAUNCHPAD_TIMEOUT_MS` variables are still read for one transition release; using them logs a deprecation warning. They will be removed in a future release.
38
+
39
+ ## Tools
40
+
41
+ All tools use the `cla_` prefix (renamed from `lp_` in v2.0).
42
+
43
+ | Tool | Description |
44
+ |------|-------------|
45
+ | `cla_bootstrap` | One-call onboarding — workspace, projects, tasks, conventions |
46
+ | `cla_list_projects` | List projects with optional stage filter |
47
+ | `cla_get_project` | Get project details + agent_instructions |
48
+ | `cla_list_tasks` | List tasks with filters (project, status, priority, label, assignee) |
49
+ | `cla_get_task` | Get full task context — description, comments, links |
50
+ | `cla_create_task` | Create a new task |
51
+ | `cla_update_task` | Update task status/fields (enforces workflow transitions) |
52
+ | `cla_claim_task` | Claim a task before working on it |
53
+ | `cla_release_task` | Release a claimed task |
54
+ | `cla_heartbeat` | Keep a claim alive (expires after 30 min without heartbeat) |
55
+ | `cla_add_comment` | Post a comment on a task |
56
+ | `cla_log_time` | Track time spent on a task |
57
+ | `cla_generate_prompt` | Generate a build-ready spec for a task |
58
+ | `cla_list_pages` | List spec/doc pages for a project |
59
+ | `cla_get_page` | Get a page's full content (`project_id` optional — sub-second when omitted via flat endpoint) |
60
+ | `cla_create_page` | Create a new spec/doc page |
61
+ | `cla_update_page` | Update a page; every MCP edit creates a new version (no debounce). `project_id` optional. Optional `change_summary` |
62
+ | `cla_list_page_versions` | List version history for a page (`project_id` optional) |
63
+ | `cla_get_page_version` | Read a specific historical version's full body (`project_id` optional) |
64
+ | `cla_restore_page_version` | Restore a page to a previous version (`project_id` optional; pre-restore content is snapshotted) |
65
+ | `cla_create_page_comment` | Post a comment on a page (supports threading + text anchors) |
66
+ | `cla_update_page_comment` | Edit your own page comment (403 if you are not the author) |
67
+ | `cla_resolve_page_comment` | Mark a page comment resolved (anyone with project access can resolve) |
68
+ | `cla_unresolve_page_comment` | Reopen a previously resolved page comment |
69
+ | `cla_get_workflow` | Get valid workflow states and transitions |
70
+ | `cla_context_list` | List context entries with optional filters (project, type, search) |
71
+ | `cla_context_get` | Fetch a context entry's full content by slug or ID |
72
+ | `cla_context_package` | Get assembled context package for a task (org + project entries, specs, comments) |
73
+ | `cla_context_update` | Update a context entry's content (requires write access) |
74
+
75
+ ## Resources
76
+
77
+ - `clarabit://project/{id}/context` — Project instructions, conventions, and page summaries
78
+ - `clarabit://task/{id}/spec` — Full generated task spec
79
+ - `context://entries` — Browse all active context entries
80
+ - `context://entries/{slug}` — Read a specific context entry
81
+
82
+ ### Resources vs Tools
83
+
84
+ Resources are for **passive browsing** in the Claude Code resource panel. Tools are for **active agent invocation** during conversation. Both access the same underlying context registry API.
85
+
86
+ ## Prompts
87
+
88
+ - `cla_start_task` — Guided workflow: find → claim → get spec → start building
89
+ - `cla_submit_task` — Guided workflow: comment → update status → release claim
90
+
91
+ ## Example Usage
92
+
93
+ In Claude Code:
94
+ - "List my Clarabit tasks"
95
+ - "Claim task #500 and show me the spec"
96
+ - "What's the status of the Clarabit project?"
97
+
98
+ ## Troubleshooting
99
+
100
+ **"CLARABIT_API_KEY environment variable is required"**
101
+ Set your API key in the MCP server config. Get one from Clarabit workspace settings.
102
+
103
+ **"Invalid CLARABIT_API_KEY"**
104
+ Your API key is expired or incorrect. Generate a new one from Clarabit.
105
+
106
+ **"Cannot reach Clarabit"**
107
+ Check your `CLARABIT_URL` and network connectivity.
108
+
109
+ **"Request timed out"**
110
+ Clarabit may be slow. Increase `CLARABIT_TIMEOUT_MS` or try again.
111
+
112
+ ## Migration from `@limeadelabs/launchpad-mcp` v1.x
113
+
114
+ v2.0 renames the package, env vars, tool names, resource URIs, and session file location. Migration steps:
115
+
116
+ 1. Update your `.mcp.json` (or claude_desktop_config.json):
117
+ - Server key: `"launchpad"` → `"clarabit"`
118
+ - Package: `@limeadelabs/launchpad-mcp` → `@limeadelabs/clarabit-mcp`
119
+ - Env vars: `LAUNCHPAD_API_KEY` → `CLARABIT_API_KEY`, etc.
120
+ 2. The old env var names are still honored in v2.0 with a deprecation warning. They will be removed in a future release.
121
+ 3. Active session state moves from `~/.launchpad/active-session.json` to `~/.clarabit/active-session.json`. Mid-task agents will need to re-claim once after upgrading; subsequent claims work normally.
122
+ 4. Tool names changed prefix `lp_*` → `cla_*` (e.g. `cla_create_task`).
123
+ 5. Resource URIs changed scheme `launchpad://` → `clarabit://`.
124
+
125
+ ## Development
126
+
127
+ ```bash
128
+ npm install
129
+ npm run build
130
+ npm test
131
+ ```
132
+
133
+ ## License
134
+
135
+ MIT
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import '../dist/index.js';
@@ -0,0 +1,2 @@
1
+
2
+ export { }