LogicStamp MCP server works with Claude Code - Anthropic's official CLI for Claude.
Before diving into setup, check these common issues:
- ✅ Node.js installed? Run
node --version(needs >= 20) - ✅ Claude CLI installed? Run
claude --version - ✅ Package installed? Run
npm list -g logicstamp-mcp - ✅ LogicStamp CLI installed? Run
stamp --version(needsnpm install -g logicstamp-context) - ✅ MCP server listed? Run
claude mcp list- should showlogicstamp: ✓ Connected - ✅ Config file exists? Check
~/.claude.json(macOS/Linux) or%USERPROFILE%\.claude.json(Windows) - ✅ JSON valid? Validate your config file syntax
- ✅ In project directory? MCP tools need a valid project context
If all checks pass but it's still not working, see the Troubleshooting section below.
Claude CLI provides command-line tools to manage MCP servers:
-
List All MCP Servers:
claude mcp list
- Shows all configured MCP servers
- Status indicator:
✓ Connected(working) or✗ Failed(error) - Example output:
logicstamp: npx logicstamp-mcp - ✓ Connected
-
Check Specific Server:
claude mcp get logicstamp
- Shows configuration for the LogicStamp server
- Displays scope (user/project) and command details
-
Verify Connection:
claude mcp list
- Look for
logicstampin the output - Status should be
✓ Connected - If you see
✗ Failed, check the Troubleshooting section
- Look for
Quick Test: Run claude mcp list - if you see logicstamp: ✓ Connected, you're all set!
npm install -g logicstamp-mcpChoose one of the following setup options based on your needs:
Install globally to use LogicStamp in all your projects.
Important: This setup is done once (globally). After configuring the MCP server globally, it will be available in every project. You don't need to set it up again for each project. However, when you actually 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.
On macOS/Linux:
nano ~/.claude.jsonOn Windows:
notepad %USERPROFILE%\.claude.jsonAdd the following configuration:
{
"mcpServers": {
"logicstamp": {
"type": "stdio",
"command": "npx",
"args": ["logicstamp-mcp"]
}
}
}claude mcp add --scope user --transport stdio logicstamp -- npx logicstamp-mcpThis automatically adds LogicStamp to ~/.claude.json and makes it available in all your projects.
What this does:
- Adds LogicStamp to your global Claude Code configuration (
~/.claude.json) - Makes the 7 LogicStamp tools available in every project
- Server auto-starts when Claude Code needs it (no manual startup required)
Install per-project to share configuration with your team via git.
npm install -g logicstamp-mcpOption A: Manual Configuration
Create .mcp.json in your project root directory:
cd /path/to/your/projectCreate .mcp.json with this content:
{
"mcpServers": {
"logicstamp": {
"type": "stdio",
"command": "npx",
"args": ["logicstamp-mcp"]
}
}
}Option B: Use CLI Command
cd /path/to/your/project
claude mcp add --scope project --transport stdio logicstamp -- npx logicstamp-mcpThis automatically creates .mcp.json in your project root.
What this does:
- Creates
.mcp.jsonin your project root - Can be committed to git for team collaboration
- Team members get the same MCP configuration
For contributors or if you're developing the MCP server locally:
# Clone and build
git clone https://github.com/LogicStamp/logicstamp-mcp.git
cd logicstamp-mcp
npm install
npm run buildOn macOS/Linux:
claude mcp add --scope user --transport stdio logicstamp -- node /absolute/path/to/logicstamp-mcp/dist/index.jsOn Windows:
claude mcp add --scope user --transport stdio logicstamp -- node C:\Users\YourName\path\to\logicstamp-mcp\dist\index.jsOr edit ~/.claude.json manually:
{
"mcpServers": {
"logicstamp": {
"type": "stdio",
"command": "node",
"args": ["/absolute/path/to/logicstamp-mcp/dist/index.js"]
}
}
}Global Install vs Local Development:
| Approach | Configuration | Use Case |
|---|---|---|
| Global Install (Recommended) | "command": "npx", "args": ["logicstamp-mcp"] |
Production use, team sharing |
| Local Development | "command": "node", "args": ["/absolute/path/to/dist/index.js"] |
Contributing, testing before publish |
Why prefer global install?
- ✅ Simpler - No absolute paths needed,
npxresolves automatically - ✅ Portable - Works on any machine with
npm install -g logicstamp-mcp - ✅ Auto-updates -
npm update -gupdates without config changes - ✅ Team-friendly - Same config works for everyone
- ✅ Cleaner - No need to specify
dist/index.jspath
When to use local development:
- You're contributing to the MCP server codebase
- Testing changes before publishing
- The package isn't published yet
- You need a specific local build version
Note: .claude.json is gitignored to protect user-specific paths. Use .claude.json.example as a template.
After installation, verify the server is configured:
-
Check MCP Server Status - Run the command from Finding MCP Settings in Claude CLI above:
claude mcp list
-
Verify Connection - You should see:
Checking MCP server health... logicstamp: npx logicstamp-mcp - ✓ Connected -
Test in Project - Navigate to a TypeScript project and start Claude:
cd /path/to/your/react-project claude -
Test LogicStamp - Ask Claude to analyze your project:
Can you analyze my React project using LogicStamp?
Quick Check: If claude mcp list shows logicstamp: ✓ Connected, you're all set! If you see ✗ Failed, check the Troubleshooting section below.
Start Claude Code in any TypeScript project:
cd /path/to/your/react-project
claudeAsk Claude to analyze your codebase:
You: "Use LogicStamp to analyze the components in src/components"
Claude: [Automatically uses logicstamp_refresh_snapshot and logicstamp_list_bundles]
The 7 LogicStamp tools will be available:
logicstamp_refresh_snapshot- Analyze project structurelogicstamp_list_bundles- List available componentslogicstamp_read_bundle- Read component contractslogicstamp_compare_snapshot- Detect changes after editslogicstamp_compare_modes- Generate token cost comparison across modeslogicstamp_read_logicstamp_docs- Read LogicStamp documentationlogicstamp_watch_status- Check if watch mode is active
Problem: Claude Code says "LogicStamp tools not available"
Solution:
# Check if server is configured
claude mcp list
# If not listed, add it
claude mcp add --scope user --transport stdio logicstamp -- npx logicstamp-mcp
# Restart Claude Code or start a new conversationProblem: claude mcp list shows logicstamp: ✗ Failed to connect
Solutions:
-
Check if the package is installed:
npm list -g logicstamp-mcp # or verify npx can find it npx logicstamp-mcp --help -
For local development, verify the path is correct:
# Check file exists ls /absolute/path/to/dist/index.js # On Windows dir C:\path\to\dist\index.js
-
Check build output:
cd /path/to/logicstamp-mcp npm run build # Should compile without errors
-
Try manual test:
node dist/index.js # Should wait for stdin (MCP server is ready) # Press Ctrl+C to exit
Problem: Tools return "Snapshot ID not found"
Solution:
Always call logicstamp_refresh_snapshot first:
You: "Create a snapshot of this project"
Claude: [Runs logicstamp_refresh_snapshot]
You: "Now list the components in src/"
Claude: [Uses the snapshot ID from previous call]
Problem: MCP server can't find the stamp CLI
Solution: Install LogicStamp Context CLI globally:
npm install -g logicstamp-context
# Verify installation
stamp --versionTo remove or change the configuration:
# Remove from user scope
claude mcp remove logicstamp
# Remove from project scope
cd /path/to/project
claude mcp remove logicstamp
# Check current configuration
claude mcp get logicstampIf you have LogicStamp configured in multiple scopes:
- User scope (global) takes precedence
- Project scope (
.mcp.json) overrides user scope in that project - Local scope (per-project in
~/.claude.json) overrides both
To see which scope is active:
claude mcp get logicstampTo see detailed MCP communication:
# Run Claude Code with MCP debug mode
claude --mcp-debug
# Or enable debug logging
export ANTHROPIC_LOG=debug
claude| Scope | Config File Location | Notes |
|---|---|---|
| User (Global) | ~/.claude.json (home directory) |
Available in all projects |
| Project | .mcp.json (project root) |
Can be committed to git |
| Local | ~/.claude.json (with project-specific config) |
Overrides both |
Important: .claude.json goes in your home directory for global setup, not project root.