-
-
Notifications
You must be signed in to change notification settings - Fork 32
Restore optional MCP Context7 configuration hooks #168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting
| } | ||
|
|
||
| if let Some(tool) = tool_name { | ||
| if tool.starts_with("mcp_context7") { | ||
| render_mcp_context7_output(renderer, val)?; | ||
| } else if tool.starts_with("mcp_sequentialthinking") { | ||
| if tool.starts_with("mcp_sequentialthinking") { | ||
| render_mcp_sequential_output(renderer, val)?; | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Context7 MCP tool responses are dropped
The previous version had a render_mcp_context7_output branch that displayed messages, errors, and metadata for Context7 tools. This branch was removed, and render_tool_output now only special-cases sequential-thinking tools while the remainder of the function only prints stdout/stderr. Context7 MCP replies do not include those fields, so enabling the optional provider from vtcode.toml will now produce no visible output for successful lookups, making the integration effectively unusable. Consider restoring a renderer or at least serializing the payload so users can see the results.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@codex fix review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting
| if let Some(tool) = tool_name { | ||
| if tool.starts_with("mcp_context7") { | ||
| render_mcp_context7_output(renderer, val)?; | ||
| } else if tool.starts_with("mcp_sequentialthinking") { | ||
| if tool.starts_with("mcp_sequentialthinking") { | ||
| render_mcp_sequential_output(renderer, val)?; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Restore Context7 tool output rendering
The special-case handling for mcp_context7* tools was removed, so render_tool_output now only checks for mcp_sequentialthinking*. Context7 responses don’t populate stdout/stderr; they emit a JSON body with fields like status, messages, and errors. With the branch gone, the renderer prints nothing when the optional Context7 provider is enabled, which makes the tool appear to return no data. Reintroducing a renderer (or a generic JSON fallback) is necessary so Context7 results remain visible.
Useful? React with 👍 / 👎.
|
@codex fix comments |
|
Summary
Testing
|
Summary
Testing
https://chatgpt.com/codex/tasks/task_e_68e4e23002288323961c525ccb257bc9