codeprysm-mcp 0.1.0

MCP server for AI-powered code exploration
docs.rs failed to build codeprysm-mcp-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

codeprysm-mcp

Crates.io Documentation License: MIT

MCP server for AI-powered code exploration.

Part of the CodePrism project.

Features

  • Model Context Protocol: Standard interface for AI assistants
  • Semantic Code Search: Natural language queries via search_graph_nodes
  • Graph Navigation: Traverse code relationships and dependencies
  • Auto-Indexing: Automatically generates graph if missing
  • Incremental Updates: Keeps index in sync with code changes

Installation

[dependencies]

codeprysm-mcp = "0.1"



# With GPU acceleration

codeprysm-mcp = { version = "0.1", features = ["metal"] }  # macOS

codeprysm-mcp = { version = "0.1", features = ["cuda"] }   # Linux/Windows

Usage

As a Library

use codeprysm_mcp::PrismServer;
use std::path::Path;

// Create and run the MCP server
let server = PrismServer::new(
    Path::new("/path/to/repo"),
    "http://localhost:6334",
).await?;

server.run().await?;

VS Code Integration

Create .vscode/mcp.json:

{
    "servers": {
        "codeprysm": {
            "type": "stdio",
            "command": "codeprysm",
            "args": ["mcp"]
        }
    }
}

Claude Desktop Integration

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "codeprysm": {
      "command": "codeprysm",
      "args": ["mcp", "--root", "/path/to/your/repo"]
    }
  }
}

MCP Tools

Tool Description
search_graph_nodes Semantic search for code entities
get_node_details Get detailed information about a node
get_node_relationships Find related nodes (calls, references, etc.)
get_file_contents Read source file contents

License

MIT License - see LICENSE