bitcompass
v0.3.9
Published
BitCompass CLI - rules, solutions, and MCP server
Maintainers
Readme
BitCompass CLI
CLI for rules, solutions, and MCP server. Same backend as the webapp (Supabase).
Install
npm install -g bitcompassOr run without installing:
npx bitcompass --helpPackage: npmjs.com/package/bitcompass
Setup
- Configure Supabase (required for login and API):
bitcompass config set supabaseUrl https://YOUR_PROJECT.supabase.cobitcompass config set supabaseAnonKey YOUR_ANON_KEY- Or set
BITCOMPASS_SUPABASE_URLandBITCOMPASS_SUPABASE_ANON_KEY
- Log in:
bitcompass login(opens browser)
Commands
bitcompass login– Google login (opens browser)bitcompass logout– Remove credentialsbitcompass whoami– Show current userbitcompass rules search [query]– Search rulesbitcompass rules list– List rulesbitcompass rules pull [id]– Pull rule to filebitcompass rules push [file]– Push rule (or interactive)bitcompass solutions search|pull|push– Same for solutionsbitcompass mcp start– Start MCP server (stdio) for Cursor/IDEsbitcompass mcp status– Show MCP login statusbitcompass config– List config;config set/getfor values
MCP
Cursor (global install)
If you installed via npm install -g bitcompass, add this to Cursor’s MCP config:
Cursor: Settings → Features → MCP → Edit config (or open ~/.cursor/mcp.json).
Add the bitcompass entry under mcpServers:
{
"mcpServers": {
"bitcompass": {
"type": "stdio",
"command": "bitcompass",
"args": ["mcp", "start"]
}
}
}Run bitcompass login before using MCP. If you added the MCP before logging in, restart the MCP server in Cursor after logging in.
Development (this repo)
This repo includes .cursor/mcp.json so Cursor points at the local CLI when the project is open. Build and log in:
cd packages/bitcompass-cli && npm run build && bitcompass loginManual (local path): Settings → MCP → stdio, Command node, Args path/to/packages/bitcompass-cli/dist/index.js mcp start.
MCP Tools
Rules & Solutions:
search-rules- Search rules by query (with optional kind filter)search-solutions- Search solutions by queryget-rule- Get full rule/solution details by IDlist-rules- List all rules/solutions (with optional kind filter and limit)post-rules- Create/publish a new rule or solutionupdate-rule- Update an existing rule or solutiondelete-rule- Delete a rule or solution by IDpull-rule- Pull a rule/solution to a file in the project rules directory
Activity Logs:
create-activity-log- Create activity log from git repo (day/week/month)list-activity-logs- List user's activity logs (with optional filters)get-activity-log- Get activity log details by ID
Prompts:
share_new_rule- Guide to collect and publish a reusable ruleshare_problem_solution- Guide to collect and publish a problem solution
Publish (maintainers)
From the CLI package directory:
cd packages/bitcompass-cli
npm run build
npm publishFor a scoped package use npm publish --access public.
