codeprism
An experimental, 100% AI-generated, high-performance code intelligence server providing AI assistants with a graph-based understanding of codebases.
claude mcp add --transport stdio rustic-ai-codeprism bash -lc ./target/release/codeprism \ --env RUST_LOG="info" \ --env REPOSITORY_PATH="/path/to/repository"
How to use
CodePrism is an MCP server implemented in Rust that provides a production-ready set of code intelligence tools via the Model Context Protocol. The server exposes a suite of 20 MCP tools organized into Core Navigation, Search & Discovery, Analysis, and Workflow Orchestration, with multi-language support for JavaScript/TypeScript and Python. After building the server, start the binary to listen for JSON-RPC 2.0 requests from AI assistants or clients. You can interact with the server to perform repository analysis, symbol discovery, dependency tracing, pattern and security analyses, and real-time updates to code graphs. The Mandrel MCP Test Harness is included for validating protocol compliance and running test specifications against the server, ensuring stable, repeatable behavior in automated environments.
How to install
Prerequisites:
- Rust 1.82+ (stable toolchain)
- Git
- A compatible repository to analyze (JavaScript/TypeScript or Python)
Installation steps:
-
Clone the repository: git clone https://github.com/rustic-ai/codeprism cd codeprism
-
Build the MCP server in release mode: cargo build --release
-
Run the MCP server (example): ./target/release/codeprism
-
Verify the server startup and available commands: ./target/release/codeprism --help
Notes:
- The server reads REPOSITORY_PATH and other environment variables at runtime as needed by plugins and analyzers.
- For production deployments, consider wrapping the binary in a process manager (systemd, PM2 if using Node tooling conventions, or similar) and configure logging via RUST_LOG.
Additional notes
Tips and common considerations:
- Ensure Rust toolchain (1.82+) is installed and up to date.
- The Mandrel MCP Test Harness can validate YAML-based MCP tests against the server. Install via cargo if you need to run tests locally.
- Set REPOSITORY_PATH to the root of the workspace you intend to analyze so CodePrism can auto-detect repository structure.
- If you encounter port or transport issues, check firewall rules and ensure the JSON-RPC endpoint is reachable by the client or AI assistant.
- Environment variables can tune logging, performance, and repository detection behavior; consult docs/MANDREL_PROJECT_OVERVIEW.md for advanced options.
Related MCP Servers
roam-code
Architectural intelligence layer for AI coding agents. Structural graph, architecture governance, multi-agent orchestration, vulnerability mapping. 139 commands, 101 MCP tools, 26 languages, 100% local.
deep-code-reasoning
A Model Context Protocol (MCP) server that provides advanced code analysis and reasoning capabilities powered by Google's Gemini AI
arbor
Graph-native code intelligence that replaces embedding-based RAG with deterministic program understanding.
CodeMCP
Code intelligence for AI assistants - MCP server, CLI, and HTTP API with symbol navigation, impact analysis, and architecture mapping
mcp-gearbox
A modern desktop application for managing Model Context Protocol (MCP) servers across multiple AI agents
mcp-mail
📧 MCP Mail Tool - AI-powered email management tool | 基于 MCP 的智能邮件管理工具