Roo-Code/src/core
Roo Code 1a418f7452 fix: re-add lightweight MCP servers section to system prompt for OpenAI compatibility
OpenAI models (e.g., GPT-5.2) fail to call MCP tools because they need
explicit system prompt context about available MCP servers and the
mcp--serverName--toolName naming convention. Claude and Gemini models
handle this from native tool definitions alone, but OpenAI models do not.

This commit adds a lightweight MCP SERVERS section to the system prompt
that includes:
- The mcp--serverName--toolName naming convention explanation
- A list of connected servers and their tool names
- Server-specific instructions (from the MCP protocol instructions field)

This does NOT duplicate tool schemas or descriptions (already provided
via native tool definitions), keeping the prompt compact.

Closes #11317
2026-02-09 01:50:33 +00:00
..
assistant-message feat: add disabledTools setting to globally disable native tools (#11277) 2026-02-06 15:51:18 -08:00
auto-approval refactor: replace fetch_instructions with skill tool and built-in skills (#11084) 2026-01-29 12:47:36 -07:00
checkpoints Add some functionality to @roo-code/core for the cli (#10584) 2026-01-09 13:05:15 -08:00
condense fix: transform tool blocks to text before condensing (EXT-624) (#10975) 2026-02-02 22:31:09 -05:00
config fix: auto-migrate v1 condensing prompt and handle invalid providers on import (#10931) 2026-01-23 22:32:04 -05:00
context/context-management Move @roo-code/cloud to the Roo-Code repo (#7503) 2025-08-28 11:18:45 -07:00
context-management feat(condense v2.1): add smart code folding (#10942) 2026-01-27 18:47:24 -05:00
context-tracking feat(condense v2.1): add smart code folding (#10942) 2026-01-27 18:47:24 -05:00
diff refactor: remove legacy XML tool calling code (getToolDescription) (#10929) 2026-01-23 19:13:55 -05:00
environment chore: remove dead toolFormat code from getEnvironmentDetails (#11207) 2026-02-05 12:28:34 -08:00
ignore Follow symlinks in rooignore checks (#7405) 2025-08-26 10:12:20 -04:00
mentions refactor(read_file): Codex-inspired read_file refactor EXT-617 (#10981) 2026-01-29 15:16:32 -07:00
message-manager feat: lossless terminal output with on-demand retrieval (#10944) 2026-01-27 22:12:19 -07:00
message-queue Move message queue to the extension host (#7604) 2025-09-02 19:12:18 -07:00
prompts fix: re-add lightweight MCP servers section to system prompt for OpenAI compatibility 2026-02-09 01:50:33 +00:00
protect Mark code-workspace files as protected (#7403) 2025-08-26 00:09:14 -04:00
task fix: prevent parent task state loss during orchestrator delegation (#11281) 2026-02-07 15:24:54 -07:00
task-persistence fix: prevent parent task state loss during orchestrator delegation (#11281) 2026-02-07 15:24:54 -07:00
tools feat: add disabledTools setting to globally disable native tools (#11277) 2026-02-06 15:51:18 -08:00
webview feat: add lock toggle to pin API config across all modes in workspace (#11295) 2026-02-07 20:31:22 -07:00