Skip to main content

manage code from random folders into one central place

Project description

Starbase - Your Personal Code Repository Manager

Never lose track of your code again! Starbase centralizes all your scattered code into one searchable repository.

Development & Release Process

To release a new version to PyPI:

python release.py

That's it! This automatically:

  • Increments the version
  • Syncs starbase.py → src/starbase/cli.py with import fixes
  • Builds the package with PDM
  • Commits and tags the release
  • Uploads to PyPI using ~/.pypirc credentials

After release, push to GitHub:

git push && git push --tags

Quick Start

# If using PDM (recommended):
pdm run python menu.py

# Or activate the environment first:
pdm shell
python menu.py

That's it! The interactive menu will guide you through everything.

What This Does

Starbase solves the "where did I put that code?" problem by:

  • Extracting code from messy project folders with intelligent dependency detection
  • Storing everything in a centralized repository at ~/starbase
  • Searching your code using natural language (even with typos!)
  • Installing any stored package instantly with PDM or pip

First Time Setup

  1. Install dependencies:

    pdm install
    # or
    pip install -r requirements.txt
    
  2. Run the menu:

    pdm run python menu.py
    
  3. Choose option 1 to extract your first project!

Common Commands

# Using PDM (recommended way):
pdm run python menu.py                    # Interactive menu
pdm run python starbase.py extract .      # Extract current directory
pdm run python starbase.py search "term"  # Search for code

# Or activate environment once and run directly:
pdm shell                                  # Activates the virtual environment
python menu.py                            # Now you can run directly
python starbase.py extract .

Key Features

  • 🤖 AI-Powered: Automatically generates descriptions and understands natural language searches
  • 📦 Smart Extraction: Detects entry points and traces all dependencies
  • 🔍 Semantic Search: Find code even when you can't remember exact names
  • 💻 Claude Integration: Your code automatically available to Claude Desktop (MCP)
  • Zero Config: Works out of the box with intelligent defaults

Requirements

  • Python 3.8+
  • PDM or pip
  • Optional: Groq/Claude API key for AI features

MCP Server Integration (Claude, VSCode, Copilot)

Starbase automatically configures itself as an MCP server on first run, making your code available to AI assistants everywhere!

🚀 Auto-Configuration

When you run starbase for the first time, it automatically:

  • ✅ Installs MCP server globally
  • ✅ Configures Claude Desktop
  • ✅ Configures Claude Code CLI
  • ✅ Creates VSCode-compatible wrapper

📝 VSCode/GitHub Copilot Setup

If VSCode doesn't detect the MCP server automatically:

  1. Reload VSCode (if you had errors before):

    • Press Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows/Linux)
    • Type: "Developer: Reload Window"
  2. Check MCP Server Status:

    • Open Output panel (ViewOutput)
    • Select "MCP" from dropdown
    • Should show "Starting server starbase"
  3. Manually Add/Restart Server:

    • Press Cmd+Shift+P / Ctrl+Shift+P
    • Type: "MCP: Restart Server" or "MCP: Add Server"
    • Select "starbase"
  4. Manual Configuration (if needed):

    • Command: python starbase_mcp_server.py
    • Type: stdio

🤖 Claude Desktop

After running starbase once, restart Claude Desktop. You'll see:

  • 🔌 starbase tool available in Claude
  • Can search and retrieve any extracted code

🛠️ Available MCP Commands

Once connected, AI assistants can:

  • search_packages("query") - Search your code with natural language
  • get_package_code("name") - Retrieve full source code
  • list_all_packages() - See everything in your starbase
  • get_install_command("name") - Get install instructions

🔧 Troubleshooting MCP

VSCode Issues:

  • Make sure you have the MCP extension installed
  • Check that starbase_mcp_server.py exists in your project root
  • Try: MCP: Restart Server from command palette

Claude Desktop Issues:

  • Check config at: ~/Library/Application Support/Claude/claude_desktop_config.json (Mac)
  • Should contain starbase in mcpServers section
  • Restart Claude Desktop after any config changes

Testing the Server:

# Test if MCP server works
starbase-mcp-server --help

# Or with PDM
pdm run starbase-mcp-server

Never lose code again. Never search through old folders. Just Starbase it!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

starbase_code-0.1.5.tar.gz (62.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

starbase_code-0.1.5-py3-none-any.whl (58.1 kB view details)

Uploaded Python 3

File details

Details for the file starbase_code-0.1.5.tar.gz.

File metadata

  • Download URL: starbase_code-0.1.5.tar.gz
  • Upload date:
  • Size: 62.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for starbase_code-0.1.5.tar.gz
Algorithm Hash digest
SHA256 c389d7322698117df5c240c1232f5f0b31bb7ad2ff99df44e51f878ac0a8825c
MD5 f63f6b6d9917794267dc4116ea80afc2
BLAKE2b-256 a06263104a1dcf078e22c2fea18d4c9d1f12583a04b12df14220967eadcd9292

See more details on using hashes here.

File details

Details for the file starbase_code-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: starbase_code-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 58.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for starbase_code-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f10f34b55450324695bce6151360fbd580436f8b4fbfd70b02ef8b095210060c
MD5 9790dc64f30dcbf95b17e51b83e830be
BLAKE2b-256 e85f5d3785866b3d4da2b32f54717c90f255dc7c8dd2ad96a9c866c81dedff70

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page