Common issues and solutions for fedramp-docs-mcp.
Error: EACCES: permission denied
Solution:
# Fix npm permissions (recommended)
mkdir -p ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
# Then install
npm install -g fedramp-docs-mcpError: npm ERR! code ERESOLVE
Solution:
npm install -g fedramp-docs-mcp --legacy-peer-depsError: npx: command not found
Solution: Ensure Node.js is installed correctly:
# Check Node.js installation
node --version
npm --version
# Reinstall if needed (using nvm)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
nvm install 20
nvm use 20Error: fatal: unable to access 'https://github.com/FedRAMP/docs.git/'
Causes & Solutions:
-
Network issue:
# Test connectivity curl -I https://github.com # Check proxy settings echo $HTTP_PROXY echo $HTTPS_PROXY
-
Firewall blocking:
- Ensure outbound HTTPS (port 443) is allowed to github.com
-
Corporate proxy:
git config --global http.proxy http://proxy.company.com:8080
Expected behavior: First run clones the FedRAMP/docs repository (~50MB), which may take 1-2 minutes on slower connections.
Solution: Use a pre-cloned repository:
# Clone manually
git clone https://github.com/FedRAMP/docs.git ~/.cache/fedramp-docs
# Verify
ls ~/.cache/fedramp-docsCause: Repository clone failed or path is incorrect.
Solution:
# Check if cache exists
ls -la ~/.cache/fedramp-docs
# If empty or missing, delete and re-run
rm -rf ~/.cache/fedramp-docs
npx fedramp-docs-mcpCause: Server may not be properly initialized.
Solution:
- Run
health_checkfirst to initialize - Verify server is running (check MCP client logs)
- Restart the MCP client application
Cause: Index may be corrupted or query syntax issue.
Solutions:
# Force reindex
rm -rf ~/.cache/fedramp-docs
npx fedramp-docs-mcpQuery tips:
- Use simple keywords, not complex regex
- Try broader searches first
- Check spelling of FedRAMP-specific terms
Error: JavaScript heap out of memory
Solution:
# Increase Node.js memory limit
NODE_OPTIONS="--max-old-space-size=4096" npx fedramp-docs-mcp-
Check config file location:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
-
Validate JSON syntax:
# macOS cat ~/Library/Application\ Support/Claude/claude_desktop_config.json | jq .
-
Check for typos in the server name and command
-
Restart Claude Desktop completely (quit from menu bar)
Check logs:
- Claude Desktop: View > Developer > Developer Tools > Console
- Cursor: Help > Toggle Developer Tools > Console
Common causes:
- Node.js not in PATH
- Missing dependencies
- Corrupted cache
Error: MCP server failed to respond
Solution:
# Test server directly
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | npx fedramp-docs-mcpIf this fails, check:
- Node.js version (18+ required)
- npm installation
- Network connectivity for first-run clone
Cause: MCP uses stdio, not HTTP.
Solution: Run with -it flags:
docker run -it fedramp-docs-mcp # Not just 'docker run'Solution:
# Create volume with correct permissions
docker volume create fedramp-cache
# Or run with user mapping
docker run -it --user $(id -u):$(id -g) fedramp-docs-mcpSolution:
# Ensure network access for git clone
docker run -it --network=bridge fedramp-docs-mcpSolution: Force an update:
# Option 1: Use the update_repository tool
# Ask your AI: "Call update_repository from fedramp-docs"
# Option 2: Manual update
cd ~/.cache/fedramp-docs
git pull origin mainCause: FedRAMP/docs repository may have changed structure.
Solution:
- Run
list_frmr_documentsto see what's available - Check the FedRAMP/docs repo for changes
- Report issues on GitHub if documents are missing
Enable verbose logging:
# Full debug output
DEBUG=* npx fedramp-docs-mcp
# FedRAMP-specific debug
DEBUG=fedramp:* npx fedramp-docs-mcpIf these solutions don't resolve your issue:
-
Check existing issues: GitHub Issues
-
Open a new issue with:
- Node.js version (
node --version) - npm version (
npm --version) - Operating system
- Error message (full text)
- Steps to reproduce
- Node.js version (
-
Include debug output:
DEBUG=* npx fedramp-docs-mcp 2>&1 | head -100