Skip to main content

LEGION Knowledge & Code Intelligence MCP Server for Claude

Project description

LEGION MCP

Knowledge & Code Intelligence MCP Server for Claude.

Installation

pip install git+https://github.com/wearethelegion/legion-mcp.git

Configuration

Environment Variables

# Required: gRPC server connection
GRPC_SERVER_HOST=localhost
GRPC_SERVER_PORT=50051

# Required: Authentication
MCP_USER_EMAIL=your@email.com
MCP_USER_PASSWORD=your_password

Claude Desktop Configuration

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "legion": {
      "command": "legion-mcp",
      "env": {
        "GRPC_SERVER_HOST": "localhost",
        "GRPC_SERVER_PORT": "50051",
        "MCP_USER_EMAIL": "your@email.com",
        "MCP_USER_PASSWORD": "your_password"
      }
    }
  }
}

Available Tools

Knowledge Management

  • queryKnowledge - Search docs with hybrid retrieval (vector + graph + reranking)
  • fastQuery - Fast vector-only search
  • createKnowledge - Store documentation/notes
  • searchByTags - Filter by metadata fields

Code Intelligence

  • findSimilarCode - Search code by natural language or snippet
  • createCode - Index source code files
  • analyzeImpact - Analyze blast radius of code changes
  • traceExecutionFlow - Trace function call chains

Expertise & Lessons

  • queryExpertise - Search guides/tutorials
  • createExpertise - Store structured knowledge
  • queryLessons - Search past resolved issues
  • recordLesson - Document resolved bugs

Utility

  • getProjects - List available projects
  • exploreGraph - Run custom Cypher queries

Requirements

  • Python 3.10+
  • Running LEGION gRPC server
  • Valid LEGION user credentials

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

legion_mcp-0.1.5.tar.gz (314.5 kB view details)

Uploaded Source

Built Distribution

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

legion_mcp-0.1.5-py3-none-any.whl (197.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: legion_mcp-0.1.5.tar.gz
  • Upload date:
  • Size: 314.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for legion_mcp-0.1.5.tar.gz
Algorithm Hash digest
SHA256 33a5eb0e6dc2989c18ea60bbc0199451afd4addc48b8677754e1b8ef14586f9b
MD5 86c79555b076a8424d751ad34051ad06
BLAKE2b-256 a436995f0934270a746ed5c5b28b65ac77cc744bed588b8b24f687699c4b39a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: legion_mcp-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 197.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for legion_mcp-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1e1eee9293aa4fc1beb346d3128071f26fe7bb5b9a099b40641f6e1795b28041
MD5 e75a0ba65ddbbf99a4f75ede1eeb88b4
BLAKE2b-256 57a91bd2c0264d787d19f0a4de546a510051a7a60cf4907982470119de388051

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