-
Notifications
You must be signed in to change notification settings - Fork 39
IDE Setup
-
Update your
claude_desktop_config.json:macOS/Linux:
~/.claude/claude_desktop_config.json
Windows:%APPDATA%\Claude\claude_desktop_config.json{ "mcpServers": { "sigmap": { "command": "node", "args": ["/path/to/sigmap/gen-context.js", "--mcp"], "cwd": "/path/to/your/project" } } } -
Restart Claude Code
-
Use MCP tools in chat:
-
explain_file— Show imports/exports/callers -
search_signatures— Find symbols across codebase -
query_context— Get dynamic context for your question -
list_modules— Browse all indexed files
-
Copy context file to project:
sigmap ask "your query"
# Manually attach .context/query-context.md in Claude Codecd your-project
sigmap ask "feature you're working on"Create .github/copilot-instructions.md:
# Code Context
Use the attached code signatures to understand the codebase:
{{insert .context/context.md here}}@instructions help me implement login feature
Copilot uses the context to provide better suggestions.
Same as Cursor. Update claude_desktop_config.json with MCP server config.
sigmapPoint to context file when starting:
aider --read-only .context/context.mdOr copy contents to agent's context manually.
Regenerate when context stales:
sigmap --watch# Ollama example
ollama pull mistral
ollama servesigmap ask "your query"# Using ollama CLI
cat .context/query-context.md | ollama run mistralOr use an API:
curl http://localhost:11434/api/generate \
-d '{
"model": "mistral",
"prompt": "Context file content here...",
"stream": false
}'No native SigMap extension yet, but you can:
- Use REST Client + MCP
- Copy
.context/query-context.mdto editor - Use terminal to run
sigmap ask
# In IDE terminal
sigmap ask "question"
# Copy output to editorAdd custom tool in IDE settings:
Name: SigMap Query
Program: sigmap
Arguments: ask "$SELECTED_TEXT$"
Working directory: $ProjectFileDir$
Then: Right-click → External Tools → SigMap Query
Generate context once, then reference:
sigmap
# Open in split
:vsplit .context/query-context.mdOr use as pre-prompt for external LLM:
" .vimrc / init.vim
nnoremap <leader>sc :!sigmap ask<Space>-
Regenerate on major changes
sigmap --watch # Auto-regenerate -
Use specific queries
- ✓ "auth flow for login"
- ✗ "code"
-
Validate coverage
sigmap validate --query "your question" -
Score answers
sigmap judge --response answer.txt --context .context/query-context.md
Check config file syntax:
cat ~/.claude/claude_desktop_config.jsonRestart Claude Code completely.
rm .context/context.md
sigmap # RegenerateEnsure cwd in config points to project root where gen-context.config.json lives.