Enables getting AI second opinions from ChatGPT by asking questions about saved contexts, providing alternative perspectives on code, suggestions, and conversations
MCP Toolz
mcp-name: io.github.taylorleese/mcp-toolz
Save contexts and todos across Claude Code sessions, get feedback from ChatGPT, Claude, Gemini, and DeepSeek.
Features
š MCP Server: Works NOW with Claude Code - full tool integration ready
Session Continuity: Never lose context when restarting Claude Code - restore "what was I working on last session"
Project Organization: Contexts and todos automatically organized by project directory
Session Tracking: Every Claude Code session gets a unique ID - track your work over time
AI Feedback: Get feedback from ChatGPT (OpenAI), Claude (Anthropic), Gemini (Google), and DeepSeek on your code and decisions
Context Types: Save conversations, code snippets, architectural suggestions, or error traces
Persistent Todos: Save and restore your todo list across sessions - never forget where you left off
Full-Text Search: Find anything by content, tags, project, or session
CLI + MCP: Use via Claude Code MCP tools or standalone CLI commands
Quick Start
Installation
From PyPI (Recommended)
From Source (Development)
Configuration
MCP Server Setup (Recommended)
The primary way to use mcp-toolz is via the MCP server in Claude Code:
Add to Claude Code settings (add this JSON to your Claude Code MCP settings):
If installed via pip:
If installed from source:
Configure API keys - Add your API keys to the
envsection (pip) or.envfile (source)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.
MCP Server Tools
The MCP server works NOW with Claude Code and provides these tools:
Context Tools:
context_save- Save a new context (automatically includes session info)context_search- Search by query or tagscontext_get- Get by IDcontext_list- List recentcontext_delete- Delete by ID
AI Feedback Tools:
ask_chatgpt- Get ChatGPT's analysis of a context (supports custom questions)ask_claude- Get Claude's analysis of a context (supports custom questions)ask_gemini- Get Gemini's analysis of a context (supports custom questions)ask_deepseek- Get DeepSeek's analysis of 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
Session Tracking: When saving contexts through MCP tools, they are automatically tagged with:
Current project directory (
project_path)Session ID (unique per Claude Code session)
Session timestamp (when the session started)
Future: Once ChatGPT Desktop adds MCP support, you'll be able to use these same tools there too.
Usage Examples
Here are practical examples of how to use mcp-toolz in Claude Code:
Example 1: Get Multiple AI Perspectives on Architecture Decisions
Prompt:
What happens:
Claude Code uses
context_saveto save your architectural decisionThen uses
ask_chatgptto get ChatGPT's perspectiveYou can compare multiple AI perspectives to inform your decision
Follow-up prompts:
"Ask Claude the same question for comparison"
"Ask Gemini for another perspective"
"What does DeepSeek think about this?"
"Search my contexts tagged with 'architecture'"
Example 2: Session Continuity - Never Lose Your Place
Prompt (end of work session):
What happens:
Claude Code uses
todo_saveto snapshot your current work stateTodos are saved with project path and timestamp
Next day prompt:
What happens:
Claude Code uses
todo_restoreto get your last snapshotShows you exactly where you left off
You can jump right back into work
Example 3: Debug with Multiple AI Perspectives
Prompt:
What happens:
Claude Code uses
context_saveto record the errorUses
ask_chatgptto get OpenAI's debugging approachUses
ask_claudeto get Anthropic's perspectiveUses
ask_geminifor Google's analysisYou can compare different debugging strategies from multiple AI models
Follow-up prompts:
"Search for other contexts tagged with 'react' bugs"
"Show me contexts from my last session"
Example 4: Track Performance Optimization Ideas
Prompt:
What happens:
Claude Code uses
context_savewith type "suggestion"Context is searchable and tied to current project
Available across all future sessions
Later prompt:
What happens:
Claude Code uses
context_searchwith your queryReturns all matching contexts across sessions
You can review past optimization ideas
Example 5: Cross-Session Knowledge Sharing
Prompt (in Project A):
Prompt (later in Project B):
What happens:
Claude Code uses
context_searchto find your OAuth implementationRetrieves the context across projects
You reuse your own knowledge without starting from scratch
Sharing Contexts Between Agents
mcp-toolz makes it easy to share contexts and todos across multiple Claude Code sessions or agents.
MCP Resources (Passive Discovery)
Claude Code can automatically discover and read contexts/todos via MCP resources:
Context Resources:
mcp-toolz://contexts/project/recent- Recent contexts for current projectmcp-toolz://contexts/project/sessions- List of recent Claude Code sessions for current projectmcp-toolz://contexts/session/{session_id}- All contexts from a specific session
Todo Resources:
mcp-toolz://todos/recent- Last 20 todo snapshots (all projects)mcp-toolz://todos/active- Active todos for current working directory
Session Tracking: Each Claude Code session automatically gets a unique session ID. All contexts saved during that session are tagged with:
session_id- UUID of the Claude Code sessionsession_timestamp- When the session startedproject_path- Directory where the context was created
This makes it easy to restore context from previous sessions: "Show me what I was working on in my last session"
Resources are read-only views into the shared database. Claude Code can discover them automatically without explicit tool calls.
Shared Database Setup
By default, mcp-toolz stores all data in ~/.mcp-toolz/contexts.db, which is automatically shared across all projects on the same machine. No additional configuration needed!
For advanced use cases (syncing across multiple machines via Dropbox, iCloud, etc.):
Choose a synced location for the database:
Update or MCP config to point to the synced database:
Or in your MCP config:
Restart Claude Code - it now uses the synced database location
How It Works
Contexts: Organized by
project_path(each directory gets its own contexts)Session Tracking: Contexts tagged with session ID and timestamp for easy restoration
Todos: Organized by
project_path(each directory gets its own snapshots)Single SQLite DB: All data stored in one database, filtered by project and session
Automatic Updates: Changes made in one session are immediately visible to others
Use Cases
Multiple machines: Keep contexts in sync across laptop and desktop
Session continuity: Pick up where you left off after restarting Claude Code
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 Multiple AI Perspectives
When evaluating an implementation, compare insights from different AI models:
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
The
./mcp-toolzwrapper automatically unsets shell environment variables to use.env
"No module named context_manager"
Use
./mcp-toolzhelper script (recommended)Or set
PYTHONPATH=srcbefore running Python directly
Commands not found
Activate venv:
source venv/bin/activateMake script executable:
chmod +x mcp-toolz
Todos not restoring
Check you're in the same project directory
Use
./mcp-toolz todo listto see all snapshotsRestore specific snapshot:
./mcp-toolz todo restore <snapshot-id>
Project Structure
Development
Setup for Contributors
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