Back to Home
floydw1234 icon

badger-graph

by floydw1234

Overview

Visualizes, searches, and queries code graphs to enhance code understanding and assist LLMs in coding tasks.

Installation

Run Command
python -m badger.main mcp-server

Environment Variables

  • BADGER_GRAPHDB_ENDPOINT
  • BADGER_WORKSPACE_PATH
  • BADGER_LANGUAGE
  • BADGER_VERBOSE
  • BADGER_QWEN_ENDPOINT
  • BADGER_GPT_OSS_ENDPOINT
  • BADGER_QWEN_MODEL
  • BADGER_GPT_OSS_MODEL
  • BADGER_LLM_PROVIDER
  • BADGER_API_KEY
  • BADGER_MAX_RETRIES
  • BADGER_TIMEOUT
  • BADGER_REQUESTS_PER_MINUTE
  • WORKSPACE_PATH
  • FLASK_APP
  • PORT

Security Notes

The compiled JavaScript for the VSCode extension (`vscode_ext/out/extension.js`) contains `eval(func);`, which is an inherent security risk, even if intended for legitimate dynamic loading. The `tool_edit_file` function (`cli/badger/main.py`) allows modifications to arbitrary files, though it is mitigated by a preview and user confirmation step. The system connects to a Dgraph instance (potentially remote) and external LLMs, introducing network-based risks related to data transmission and endpoint security. The `EmbeddingService` loads external models, which could be a supply chain risk if not from trusted sources.

Similar Servers

Stats

Interest Score0
Security Score4
Cost ClassHigh
Avg Tokens3000
Stars0
Forks0
Last Update2025-11-21

Tags

Code GraphVisualizationDgraphFlaskMCPAI Coding Agent