From 9289d73a81cb4514acc84f0365232a07ffac8a87 Mon Sep 17 00:00:00 2001 From: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com> Date: Tue, 18 Feb 2025 14:00:33 -0800 Subject: [PATCH] Prepare for release --- src/core/prompts/system.ts | 19 ++++++++++++++++++- webview-ui/src/components/chat/ChatRow.tsx | 4 ++-- webview-ui/src/components/mcp/McpView.tsx | 13 ++++++++++++- 3 files changed, 32 insertions(+), 4 deletions(-) diff --git a/src/core/prompts/system.ts b/src/core/prompts/system.ts index a9a13f1e90..65e6e7b8eb 100644 --- a/src/core/prompts/system.ts +++ b/src/core/prompts/system.ts @@ -331,7 +331,24 @@ ${ weather-server weather://san-francisco/current -` + + +## Example 6: Another example of using an MCP tool (where the server name is a unique identifier such as a URL) + + +github.com/modelcontextprotocol/servers/tree/main/src/github +create_issue + +{ + "owner": "octocat", + "repo": "hello-world", + "title": "Found a bug", + "body": "I'm having a problem with this.", + "labels": ["bug", "help wanted"], + "assignees": ["octocat"] +} + +` : "" } diff --git a/webview-ui/src/components/chat/ChatRow.tsx b/webview-ui/src/components/chat/ChatRow.tsx index 889ba0efb7..c5e13d39ec 100644 --- a/webview-ui/src/components/chat/ChatRow.tsx +++ b/webview-ui/src/components/chat/ChatRow.tsx @@ -201,9 +201,9 @@ export const ChatRowContent = ({ message, isExpanded, onToggleExpand, lastModifi marginBottom: "-1.5px", }}> ), - + Cline wants to {mcpServerUse.type === "use_mcp_tool" ? "use a tool" : "access a resource"} on the{" "} - {mcpServerUse.serverName} MCP server: + {mcpServerUse.serverName} MCP server: , ] case "completion_result": diff --git a/webview-ui/src/components/mcp/McpView.tsx b/webview-ui/src/components/mcp/McpView.tsx index 511ac2de3c..6cc31f2956 100644 --- a/webview-ui/src/components/mcp/McpView.tsx +++ b/webview-ui/src/components/mcp/McpView.tsx @@ -280,7 +280,18 @@ const ServerRow = ({ server }: { server: McpServer }) => { {!server.error && ( )} - {server.name} + + {server.name} +
e.stopPropagation()}>