bitcompass
v0.16.1
Published
BitCompass CLI - rules, docs, and MCP server
Downloads
3,154
Maintainers
Readme
BitCompass CLI
CLI for rules, solutions, skills, commands, and MCP server. Same backend as the webapp (Supabase).
Install
npm install -g bitcompassOr run without installing:
npx bitcompass --helpPackage: npmjs.com/package/bitcompass
Quick Start
bitcompass setup # login → init → sync (skips completed steps)Or step by step:
bitcompass login– Google login (opens browser)bitcompass init– Configure editors, output folder, Compass project linkbitcompass sync– Sync local files with Compass project
Commands
Authentication
bitcompass login– Google login (opens browser)bitcompass logout– Remove credentialsbitcompass whoami– Show current user
Project Setup
bitcompass setup– Quick onboarding: login → init → sync (skips completed steps)bitcompass init– Configure editors, output folder, Compass project linkbitcompass migrate– Migrate from older BitCompass versions
Content Management
Each kind (rules, skills, commands, solutions) supports search, list, pull, push:
bitcompass rules search|list|pull|push– Manage rules (.mdcfiles)bitcompass skills search|list|pull|push– Manage skills (SKILL.mdin subdirectory)bitcompass commands search|list|pull|push– Manage commands (.mdfiles)bitcompass solutions search|list|pull|push– Manage solutions (.mdfiles)bitcompass share [file]– Publish to BitCompass (auto-detects kind and special file target)bitcompass sync– Sync local files with Compass project (--check,--all -y,--prune)bitcompass update– Check for and apply updates to installed content
Groups & Projects
bitcompass group pull|sync|list– Pull/sync rules by knowledge groupbitcompass project pull|sync|list– Manage Compass project content
Configuration
bitcompass config– Interactive config TUIbitcompass config list|get|set– Manage config valuesbitcompass config push|pull– Share/pull config with Compass project teammates
MCP Server
bitcompass mcp start– Start MCP server (stdio) for AI editorsbitcompass mcp status– Show MCP login status
Other
bitcompass glossary– Show terminologybitcompass self-update– Update to latest version
MCP
Cursor (global install)
Add to Cursor's MCP config (Settings → Features → MCP → Edit config, or ~/.cursor/mcp.json):
{
"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 after logging in.
Development (this repo)
Build and log in:
cd packages/bitcompass-cli && bun run build && bitcompass loginMCP Tools
search-rules– Search rules, solutions, skills, or commands by keyword (optional kind filter)search-solutions– Search solutions by queryget-rule– Get full content by IDlist-rules– List all content (optional kind filter and limit)post-rules– Publish new content (auto-detects Compass project, sets version)update-rule– Update existing content you owndelete-rule– Delete content by IDpull-rule– Pull content into project (writes to configured editor directories)pull-group– Pull all rules from a knowledge group
MCP Prompts
share– Guide to publish content (checks duplicates, collects fields, offers pull)share_new_rule– Guide to publish a reusable ruleshare_problem_solution– Guide to publish a problem solutionupdate– Guide to find and update existing contentpull– Guide to search and pull content into projectsync– Guide to sync with Compass project (delegates to CLI)
Multi-Editor Support
BitCompass outputs to multiple editors simultaneously. During bitcompass init, select all editors you use:
| Editor | Base path | Rules | Skills | Commands | Solutions |
|--------|-----------|-------|--------|----------|-----------|
| Cursor | .cursor/ | rules/ | skills/{slug}/SKILL.md | commands/ | documentation/ |
| Claude Code | .claude/ | rules/ | skills/{slug}/SKILL.md | commands/ | documentation/ |
| VSCode | .vscode/ | same | same | same | same |
| Antigrativity | .antigrativity/ | same | same | same | same |
Publish (maintainers)
cd packages/bitcompass-cli
bun run build
npm publishFor a scoped package use npm publish --access public.
