8000 add support for mcp server instructions by qingyuan1109 · Pull Request #3260 · RooVetGit/Roo-Code · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

add support for mcp server instructions #3260

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

Open
wants to merge 2 commits into
base: main
8000 Choose a base branch
from

Conversation

qingyuan1109
Copy link
@qingyuan1109 qingyuan1109 commented May 7, 2025

Context

Add support for MCP Server Instructions.
Roo Code can get and display the MCP Server's instructions and add it into the prompts.

Implementation

  • When connecting to the mcp server, use the method getInstructions provided by the official sdk to obtain the instructions of the mcp server and save them in the array connections of McpHub
  • Display the instructions in McpView.tsx
  • When splicing prompts, add the instructions to the mcp-servers segment

Screenshots

before after

|
截图_选择区域_20250507154118
|
截图_选择区域_20250507150341
|

How to Test

  • Add a MCP Server that has set instructions
  • Check whether the instructions is displayed correctly on the mcp panel
  • Check if the mcp-servers segment of the system prompt contains instructions

Get in Touch

qingyuan1109@gmail.com


Important

Adds support for fetching, displaying, and including MCP server instructions in prompts and UI.

  • Behavior:
    • Fetches MCP server instructions using client.getInstructions() in McpHub.ts and stores them in McpServer.
    • Displays instructions in McpView.tsx under each server's details.
    • Includes instructions in the MCP servers section of prompts in mcp-servers.ts.
  • Models:
    • Adds instructions field to McpServer type in mcp.ts.
  • UI:
    • Updates ServerRow in McpView.tsx to show instructions if available.

This description was created by Ellipsis for daa5715. You can customize this summary. It will automatically update as commits are pushed.

Copy link
changeset-bot bot commented May 7, 2025

⚠️ No Changeset found

Latest commit: 621d47a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. enhancement New feature or request labels May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request size:S This PR changes 10-29 lines, ignoring generated files.
Projects
Status: New
Development

Successfully merging this pull request may close these issues.

1 participant
0