Back to Home
lesleslie icon

session-buddy

Verified Safe

by lesleslie

Overview

The MCP server provides comprehensive session management, conversation memory, quality monitoring, and developer tooling integration for Claude Code projects, aiming to reduce token usage and enhance development workflows. It integrates with various LLM providers, Git worktrees, and code quality tools like Crackerjack.

Installation

Run Command
python -m session_buddy start

Environment Variables

  • OPENAI_API_KEY
  • ANTHROPIC_API_KEY
  • GEMINI_API_KEY
  • GOOGLE_API_KEY
  • OLLAMA_BASE_URL
  • CLAUDE_WORKING_DIR
  • CLIENT_PWD
  • CLAUDE_PROJECT_DIR
  • SESSION_MGMT_USE_SCHEMA_V2
  • SESSION_MGMT_ENABLE_LLM_ENTITY_EXTRACTION
  • SESSION_MGMT_ENABLE_ANTHROPIC
  • SESSION_MGMT_ENABLE_OLLAMA
  • SESSION_MGMT_ENABLE_CONSCIOUS_AGENT
  • SESSION_MGMT_ENABLE_FILESYSTEM_EXTRACTION

Security Notes

The project demonstrates strong security awareness, particularly in handling subprocess execution (explicitly uses `shell=False` and includes input validation for commands, branch names, and paths) and database interactions (parameterized SQL queries). Hashlib usage for content deduplication is correctly flagged with `usedforsecurity=False`. Pydantic models are used for robust parameter validation, mitigating injection risks. API key handling includes masking for display. The project's security posture for common vulnerabilities like command injection and SQL injection is robust, with dedicated tests. One point deducted due to the inherent complexity of integrating with numerous external systems (LLMs, Git, external tools), which always presents a broader attack surface, though well-mitigated within the application's scope.

Similar Servers

Stats

Interest Score30
Security Score9
Cost ClassMedium
Avg Tokens750
Stars1
Forks0
Last Update2026-01-19

Tags

Session ManagementAI ToolingDeveloper WorkflowCode QualityConversation MemoryGit WorktreesLLM IntegrationCrackerjackToken OptimizationSemantic SearchKnowledge GraphMonitoringCollaborationSoftware Development