Install the LogicStamp Context CLI (this MCP server is a wrapper around it):
npm install -g logicstamp-contextVerify installation:
stamp --versionnpm install -g logicstamp-mcpcd logicstamp-mcp
npm install
npm run buildNote: After building, you can test the server with npm start or npx logicstamp-mcp (if installed globally). However, when using with an MCP client, the client automatically starts the server - you don't need to run it manually.
Setup is done once (globally): After configuring the MCP server globally, it will be available in all your projects. You don't need to set it up again for each project. However, when you analyze a project, you'll call logicstamp_refresh_snapshot for that specific project - the analysis itself is per-project, but the MCP server setup is global.
Choose your MCP client for detailed installation instructions:
- Claude CLI Integration - For Claude Code users
- Claude Desktop Integration - For Claude Desktop users
- Cursor Integration - For Cursor IDE users
Each integration guide includes:
- Step-by-step installation instructions
- Global and project-specific setup options
- Local development configuration
- Verification steps
- Troubleshooting tips
When starting work with a new project, paste this message into your chat to guide the AI:
See Startup Ritual Guide for the complete message.
This ritual ensures the AI:
- Calls
logicstamp_refresh_snapshotfirst to generate context files - Uses
logicstamp_list_bundlesto discover available bundles - Reads bundles instead of raw source files when possible
- Understands the recommended LogicStamp workflow
If the AI is confused about LogicStamp:
- Ask it to call
logicstamp_read_logicstamp_docs- this returns comprehensive documentation explaining how LogicStamp works and how to use it effectively.
cd /path/to/your/react-project
claudeThen ask Claude to analyze your project:
Can you analyze my React project using LogicStamp?
Or paste the startup ritual message first.
Completely quit and restart Claude Desktop for the changes to take effect, then start a conversation and ask Claude to analyze your project (or paste the startup ritual message).
- Open your project in Cursor
- Open Cursor's AI chat (Cmd/Ctrl + L)
- Paste the startup ritual message or ask:
Can you analyze my React project using LogicStamp?
The AI will automatically use the LogicStamp tools to analyze your codebase.
The MCP server provides 6 tools for analyzing codebases:
logicstamp_refresh_snapshot- Generate context files and create snapshot (STEP 1)logicstamp_list_bundles- List available bundles (STEP 2)logicstamp_read_bundle- Read component contracts and dependency graphs (STEP 3)logicstamp_compare_snapshot- Detect changes after editslogicstamp_compare_modes- Generate token cost comparison across all modeslogicstamp_read_logicstamp_docs- Read LogicStamp documentation (use when confused)
See the Tool Reference in the main README for complete API documentation.
You: Analyze the Button component in my project
Claude:
1. [Uses logicstamp_refresh_snapshot to create snapshot]
2. [Uses logicstamp_list_bundles to find Button component]
3. [Uses logicstamp_read_bundle to read Button's contract]
4. [Provides detailed analysis of Button's props, state, hooks, etc.]
You: Analyze components with style information
Claude:
1. [Uses logicstamp_refresh_snapshot with includeStyle: true]
2. [Uses logicstamp_list_bundles to find components]
3. [Uses logicstamp_read_bundle to read component contracts with style metadata]
4. [Provides analysis including Tailwind classes, color palettes, layout patterns, animations]
"stamp: command not found"
- Install LogicStamp Context CLI:
npm install -g logicstamp-context
Server doesn't show up
- Verify installation:
npm list -g logicstamp-mcp - Check configuration in your MCP client (see integration guides above)
- Restart your MCP client completely
"Snapshot not found"
- Always call
logicstamp_refresh_snapshotfirst before using other tools
For detailed troubleshooting instructions, see the Troubleshooting section in the main README.
- Full Documentation - Complete API reference with examples
- MCP Integration Guide - Architecture and design details
- Tool Description - LogicStamp Context capabilities reference
- Integration Guides - Platform-specific setup instructions