Enables getting AI second opinions from ChatGPT by asking questions about saved contexts, providing alternative perspectives on code, suggestions, and conversations
MCP Tools
MCP server for Claude Code providing context management, todo persistence, and AI second opinions. Share contexts and todos across sessions, get feedback from ChatGPT or Claude, and access everything via MCP tools.
Features
π MCP Server: Works NOW with Claude Code - full tool integration for contexts and todos
Context Management: Save code, suggestions, errors, and conversations with AI second opinions
AI Second Opinions: Get feedback from both ChatGPT (OpenAI) and Claude (Anthropic)
Todo Persistence: Never lose your todos when restarting - save and restore across sessions
Project-Based: Automatic project path detection and organization
Full-Text Search: Find contexts and todos by content, tags, or metadata
CLI Available: Use standalone CLI tools in addition to MCP server
Quick Start
Installation
Important: Don't set API keys in your shell environment - they will override .env
. If set, run unset OPENAI_API_KEY
or unset ANTHROPIC_API_KEY
.
MCP Server Setup (Recommended)
The primary way to use mcp-tools is via the MCP server in Claude Code:
Add to Claude Code settings (add this JSON to your Claude Code MCP settings):
Update the paths in the config above with your actual installation path
Restart Claude Code to load the MCP server
Use MCP tools in Claude Code:
"Save this context about authentication"
"Ask ChatGPT about the last context I saved"
"Show my active todos"
"Search contexts tagged with 'bug'"
All MCP tools are automatically available - see MCP Server Tools below.
CLI Usage (Alternative)
Command Reference
Context Commands
Context Types:
suggestion
- Architecture decisions, implementation planscode
- Code snippets, implementationsconversation
- Discussions, Q&A sessionserror
- Error messages, stack traces, debugging
Todo Commands
Todo Status: pending
, in_progress
, completed
Get Help
Common Workflows
Get a Second Opinion
When Claude Code suggests an implementation, get another AI's perspective:
The AI's response appears immediately in your console. You can also ask specific questions or get Claude's perspective:
Debug with Two Perspectives
Session Continuity
Share Across Claude Code Sessions
Environment Variables
Troubleshooting
"Error 401: Invalid API key"
Verify API keys are set in
.env
(OPENAI_API_KEY and/or ANTHROPIC_API_KEY)Check billing is enabled on your OpenAI/Anthropic account
Run
unset OPENAI_API_KEY
orunset ANTHROPIC_API_KEY
to clear shell environment variables
"No module named context_manager"
Use
./mcp-tools
helper script (recommended)Or set
PYTHONPATH=src
before running Python directly
Commands not found
Activate venv:
source venv/bin/activate
Make script executable:
chmod +x mcp-tools
Todos not restoring
Check you're in the same project directory
Use
./mcp-tools todo list
to see all snapshotsRestore specific snapshot:
./mcp-tools todo restore <snapshot-id>
Project Structure
MCP Server Tools
The MCP server works NOW with Claude Code and provides these tools:
Context Tools:
context_search
- Search by query or tagscontext_get
- Get by IDcontext_list
- List recentcontext_delete
- Delete by ID
AI Opinion Tools:
ask_chatgpt
- Ask ChatGPT about a context (supports custom questions)ask_claude
- Ask Claude about a context (supports custom questions)
Todo Tools:
todo_search
- Search snapshotstodo_get
- Get by IDtodo_list
- List recenttodo_save
- Save snapshottodo_restore
- Get active/specific snapshottodo_delete
- Delete by ID
Future: Once ChatGPT Desktop adds MCP support, you'll be able to use these same tools there too.
Development
Running Tests
Code Quality
Tips
Use descriptive titles - Makes searching easier later
Add relevant tags - Helps organize and find contexts
Be specific in content - More detail = better AI responses
Compare AI opinions - Get both ChatGPT and Claude perspectives on important decisions
Review AI suggestions - They're helpful opinions, not rules
Save todos regularly - Build habit of saving at end of sessions
License
MIT
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Provides context management and todo persistence with AI second opinions from ChatGPT and Claude. Enables saving code snippets, conversations, and todos across sessions with full-text search capabilities.