Skip to content

feat: add ChatGPT Desktop MCP adapter`#575

Open
nareshkarthigeyan wants to merge 2 commits into
buildingjoshbetter:mainfrom
nareshkarthigeyan:main
Open

feat: add ChatGPT Desktop MCP adapter`#575
nareshkarthigeyan wants to merge 2 commits into
buildingjoshbetter:mainfrom
nareshkarthigeyan:main

Conversation

@nareshkarthigeyan

Copy link
Copy Markdown

What this adds

Adds a ChatGPTAdapter that wires TrueMemory into the ChatGPT Desktop app by writing a local MCP config file to the platform-specific path:

  • macOS: ~/Library/Application Support/com.openai.chat/mcp.json
  • Linux: ~/.config/com.openai.chat/mcp.json
  • Windows: %APPDATA%\com.openai.chat\mcp.json

This follows the same pattern as the existing Claude Desktop adapter — detect the platform, write the config, done.

Changes

  • truememory/hooks/chatgpt.pyChatGPTAdapter implementation
  • truememory/hooks/registry.py — registered under CLI id "chatgpt", setup help updated to claude,chatgpt,codex
  • tests/test_chatgpt_adapter.py — full test coverage: import, registry lookup, env URL detection, HTTPS validation, manifest writing, custom labels, no-op hooks, verification, uninstall, no system prompt path
  • docs/setup-chatgpt.md — setup guide
  • README.md, docs/compatibility.md, docs/architecture.md, docs/cli.md, docs/migration.md, docs/env-vars.md — updated for ChatGPT support

Status & known limitations

The adapter is fully implemented and tested on the TrueMemory side. However, ChatGPT Desktop's MCP support is currently unreliable — local config injection works, but ChatGPT does not consistently honour the MCP server during sessions. This is a ChatGPT-side limitation, not a TrueMemory one.

Marking as ready for review so it can be merged and sit behind the existing client support matrix. Will update once OpenAI stabilises their MCP implementation.

Testing

truememory-ingest chatgpt

Verified config is written correctly to the platform path. Unit tests pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant