Bracker

TJONKR/bracker
0 starsCommunity

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

An MCP server that gamifies development by tracking builds, posts, and calculating XP with social media themed levels.

README.md

Bracker

An MCP (Model Context Protocol) server that gamifies your development process by tracking builds, posts, calculating XP, and generating "build in public" content with social media themed levels.

๐ŸŽฎ Features

  • XP System: Earn XP from tokens burned, lines changed, and social media posts
  • Social Media Levels: Rise from Lurker to Legend with realistic progression
  • Post Gates: Level advancement requires posting your progress publicly
  • Streak Bonuses: Get XP multipliers for consecutive days of building
  • Tweet Generation: Auto-draft "build in public" content with level context
  • Simple Storage: JSONL builds log + JSON stats

๐Ÿ“ˆ XP Calculation

  • 1 XP per 100 tokens burned in AI sessions
  • 1 XP per 10 lines changed in commits
  • 50 XP per social media post (encourages building in public)
  • Streak multiplier: Up to 2x for consecutive building days
  • Steeper curve: Levelยฒ ร— 75 XP required (Legend takes ~6 months of daily building)

๐Ÿ† Social Media Themed Levels

  • 1-5: ๐Ÿซฅ Lurker - "Nobody. Zero followers energy."
  • 6-10: ๐ŸŒฑ Seedling - "First commits, first posts. Sprouting."
  • 11-15: ๐Ÿ”จ Maker - "Actually building stuff. People notice."
  • 16-20: ๐Ÿ“ข Broadcaster - "Posting regularly. Small following."
  • 21-25: ๐Ÿ”ฅ Hot Take - "Content hits different. Growing fast."
  • 26-30: โšก Shipper - "Ships weekly. Known in the scene."
  • 31-35: ๐Ÿ—๏ธ Architect - "People study your repos."
  • 36-40: ๐ŸŽฏ Influencer - "Have you seen what X built?"
  • 41-45: ๐Ÿ‘‘ Thought Leader - "Industry talks. Podcast invites."
  • 46-50: ๐Ÿฆ„ Unicorn - "Everyone knows your name."
  • 51+: ๐ŸŒ Legend - "Changed the game."

๐Ÿšช Post Gates - Build AND Share

You can't advance past certain tiers without posting publicly:

  • Level 1-10: No posting required (just build)
  • Level 11-20: Need 1 post per level to unlock (10 total posts)
  • Level 21-30: Need 2 posts per level to unlock (20 more posts)
  • Level 31+: Need 3 posts per level to unlock

Why? Because the best builders share their journey. Level gates encourage authentic building in public.

๐Ÿš€ Installation

1. Install the MCP server

npm install -g bracker

Or clone and install locally:

git clone <this-repo>
cd bracker
npm install
npm link  # Makes 'bracker' available globally

2. Add to Claude Code config

Add this to your ~/.claude/settings.json under mcpServers:

{
  "mcpServers": {
    "bracker": {
      "command": "bracker",
      "args": []
    }
  }
}

3. Install git hook (optional)

For automatic build logging on pushes:

# In your project directory
cp /path/to/bracker/hooks/post-push.sh .git/hooks/post-push
chmod +x .git/hooks/post-push

Or use the installer script:

# From the bracker directory
./hooks/install-hook.sh /path/to/your/project

๐Ÿ”ง MCP Tools

log_build

Log a build event and calculate XP.

Parameters:

  • repo (string, required): Repository name
  • diff_summary (string, required): Git diff summary
  • commit_message (string, required): Git commit message
  • conversation_summary (string, optional): What was built/learned
  • tokens_used (number, optional): AI tokens consumed

Returns:

  • XP earned, total XP, current level and title
  • Post gate warnings if level is blocked
  • Tweet draft with level context

log_post

Log a social media post and earn XP.

Parameters:

  • url (string, required): URL of the tweet/post
  • platform (string, optional): Platform name (default: "twitter")
  • content (string, optional): What was posted

Returns:

  • XP earned (50 XP per post)
  • Total post count
  • Current level and any levels unlocked
  • Posts needed for next level

get_stats

Get current build statistics and level progress.

Returns:

  • Total XP, level, and title with description
  • Total builds, posts, and tokens
  • Current streak and last build date
  • Post gate status (gated/ungated)
  • Posts needed to unlock next level

suggest_tweet

Generate a tweet draft from recent builds with level context.

Parameters:

  • style (enum, optional): raw | polished | educational (default: raw)

Returns:

  • Tweet draft including current level
  • Builds and posts today
  • Gate status and posting encouragement

๐Ÿ“Š Storage

Data is stored in ~/.bracker/:

  • builds.jsonl: Build events (one JSON object per line)
  • stats.json: Aggregate statistics

๐Ÿ” Testing

Test the MCP server:

echo '{"jsonrpc":"2.0","method":"tools/list","id":1}' | bracker

Should return the available tools.

๐Ÿค– Usage with Claude Code

Once configured, Claude Code can call bracker tools:

Log a build: ``` Log this build:

  • Repo: my-app
  • Changes: Added auth system, 150 lines
  • Tokens used: 2500
  • Commit: "feat: implement JWT authentication"

**Log a social media post:**

I just tweeted about my progress: https://twitter.com/user/status/123456789 ```

Get current stats: `` What's my current level and progress? ``

Generate a tweet: `` Suggest a tweet about today's work (polished style) ``

Claude will track your builds, posts, calculate XP, warn about post gates, and help you build in public!

๐Ÿ’ก Pro Tips

  1. Session Files: Create .claude_session in your project root with conversation summary and token count for automatic hook detection
  2. Multiple Repos: Each repo contributes to the same XP pool
  3. Streak Building: Code every day for maximum XP multipliers
  4. Tweet Styles: Use different styles for different audiences

๐Ÿ› ๏ธ Development

# Clone the repo
git clone <this-repo>
cd bracker

# Install dependencies
npm install

# Test locally
npm test

# Make changes and test
echo '{"jsonrpc":"2.0","method":"tools/list","id":1}' | node index.js

๐Ÿ“ License

MIT - Build in public, share the gains! ๐Ÿš€

Related MCP servers

Browse all โ†’