feat(adapter): add Codex MCP gateway bridge#372
Open
WHUTcjh-2024 wants to merge 2 commits into
Open
Conversation
Signed-off-by: chenjunhong <570372819@qq.com>
Collaborator
|
Thank you for submitting this PR and participating in Tencent Rhino-bird Open-source Training Program! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description | 描述
Add a focused STDIO MCP adapter that exposes the existing TDAI Gateway to
Codex and other MCP clients. The adapter remains a transport boundary; storage,
ranking, capture, and pipeline behavior stay in the existing memory engine.
Adapter capabilities
memory-tencentdb-mcpnpm command.2025-11-25) and negotiate2025-06-18,2025-03-26, and2024-11-05clients.tool schemas, runtime rejection of extra arguments, notifications, parse
errors, and MCP tool-error semantics.
and session flush.
preserves base paths, validates object responses, and rejects ambiguous or
credential-bearing URLs.
startup diagnostics to STDERR.
Recall compatibility
The Gateway now returns
prepend_contextandappend_system_contextseparately so MCP hosts do not flatten dynamic and stable prompt content. The
legacy
contextfield keeps its original meaning for existing clients.Documentation
The adapter guide includes architecture, security boundaries, all five tools,
environment variables, and a Codex
config.tomlexample verified against theofficial
mcp_servers.<id>configuration reference.Related Issue | 关联 Issue
Closes #235
Change Type | 修改类型
Self-test Checklist | 自测清单
Additional Notes | 其他说明
Validation
validation, parse errors, tool errors, timeout/network failures, real local
HTTP routing, Bearer authentication, and response-shape validation.
npm run build: passed; generated executable MCP bundle is about 14.4 KB.npm pack --dry-run --json: passed and includes the MCP binary and guide.git diff --check: passed.The current Gateway scopes memory by
session_key. This adapter does not claimuser_idas a tenant-isolation boundary because the core storage path does notyet enforce that scope.