devspace-memory-bridge
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
devspace-memory-bridge
A non-invasive MCP bridge that makes DevSpace search tools memory-aware.
devspace-memory-bridge sits in front of a normal DevSpace server and augments selected search/list tool responses with structural context from codebase-memory-mcp. The model still calls ordinary DevSpace-style tools such as grep, glob, and ls; the bridge enriches the response locally before it reaches the client.
ChatGPT / MCP client
-> devspace-memory-bridge
-> upstream DevSpace
-> codebase-memory-mcp CLIWhy this exists
Some coding agents support hooks that can automatically inject codebase context when the agent searches files. Other MCP clients do not expose that kind of hook surface. This project explores a practical middle ground: intercept only the DevSpace search/list tools at the local boundary, call the real DevSpace tool, call codebase-memory-mcp, and return one combined tool result.
The goal is not to replace DevSpace or codebase-memory-mcp. The goal is to connect them without patching either upstream project.
Related MCP server: Menhir
What it does
Implemented:
Records
workspaceId -> rootfromopen_workspaceresults.Passes unknown and non-memory tools through unchanged.
Augments
grep/grep_fileswithsearch_graphcontext.Augments
glob/find_fileswithsearch_graphcontext.Augments
ls/list_directorywith lightweight architecture context.Transforms JSON-RPC JSON responses.
Transforms request-scoped MCP SSE responses from
POST /mcp.Streams standalone
GET /mcpSSE responses through unchanged.Fails open by default: if memory lookup fails, the original DevSpace result is returned.
Intentionally not implemented yet:
bashcommand interception.read,edit, orwriteaugmentation.A full DevSpace replacement.
A general-purpose MCP middleware framework.
Not yet validated end-to-end:
ChatGPT Apps OAuth/resource-server registration through the bridge.
Long-lived production deployment behind a public HTTPS tunnel.
Tool behavior
The bridge treats upstream DevSpace as the source of truth. A normal request flow is:
1. Client calls grep(pattern="TurnController")
2. Bridge forwards the call to upstream DevSpace
3. DevSpace returns normal grep results
4. Bridge extracts symbol hints from the search pattern
5. Bridge calls codebase-memory-mcp search_graph
6. Bridge appends "Codebase Memory Context" to the tool result
7. Client receives what still looks like a grep resultIf step 5 fails, step 6 is skipped and the original DevSpace response is returned.
Requirements
Node.js 22 or newer.
A running DevSpace server.
codebase-memory-mcpavailable as a CLI command, or a compatible wrapper command.Upstream DevSpace should run with dedicated search/list tools enabled:
DEVSPACE_TOOL_MODE=full node /path/to/devspace/dist/cli.js serveQuick start
Start upstream DevSpace:
DEVSPACE_TOOL_MODE=full node /home/heppo/DEV/devspace/dist/cli.js serveStart the bridge:
cd /home/heppo/DEV/devspace-memory-bridge
DEVSPACE_UPSTREAM_URL=http://127.0.0.1:7676 \
DEVSPACE_MEMORY_BRIDGE_PORT=7777 \
DEVSPACE_MEMORY_COMMAND=codebase-memory-mcp \
node src/index.jsPoint the MCP client at the bridge instead of upstream DevSpace.
Configuration
Variable | Default | Purpose |
|
| Real DevSpace server URL. |
|
| Bridge bind host. |
|
| Bridge bind port. |
|
| CLI command used for memory lookups. |
|
| Tools to augment. |
|
| Return normal DevSpace results if memory lookup fails. |
|
| Max appended memory context length. |
Tests
npm test
npm run checkCurrent test coverage focuses on the bridge logic rather than a live ChatGPT/DevSpace OAuth round trip:
memory context formatting
symbol hint extraction
JSON-RPC tool response transformation
fail-open behavior
non-memory tool pass-through
request-scoped SSE transformation
Security model
This bridge sits in front of a local coding workspace. Treat it as sensitive infrastructure.
Bind to localhost by default.
Put authentication and HTTPS at the outer boundary if exposed remotely.
Do not expose it directly to the public internet.
Keep fail-open enabled unless you explicitly want memory failures to break tool calls.
Review upstream DevSpace permissions and allowed roots before use.
Design rules
Do not patch DevSpace upstream.
Do not patch
codebase-memory-mcpupstream.Treat DevSpace as the source of truth for filesystem operations.
Only append memory context after the upstream DevSpace call succeeds.
Unknown tools must pass through unchanged.
Memory failures must not break local coding tools.
Status
Prototype. The core transformation behavior is implemented and tested, but production ChatGPT Apps registration through the bridge still needs end-to-end validation.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Cross-tool persistent memory and context for AI assistants over MCP.
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
Shared memory for coding agents. Stop re-explaining your codebase every session.
Team memory for AI coding agents and code reviews, reviewed by humans and served over MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI coding agents to retrieve and manage code context with hybrid search, project memory, and observability via MCP tools.30MIT
- AlicenseNot gradedqualityBmaintenanceProvides coding agents with governed semantic memory and code-graph context via MCP, enabling code-linked recall, blast-radius impact analysis, and lifecycle-aware memory management.3Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to locally search, query, and understand codebases with token-efficient context, dependency graphs, history, architecture diagrams, and metrics through MCP.15 npm3MIT
- AlicenseNot gradedqualityAmaintenanceExposes search, locate, expand, and find_related tools over MCP so AI coding agents in Claude Code, Cursor, Copilot, and other clients can retrieve the best code chunks (path, lines, snippet) by meaning instead of grep or glob. This hybrid code search lets agents find the right files in fewer steps, using up to 50% fewer tokens.1,418 npm12MIT