Prepare for release

This commit is contained in:
Saoud Rizwan 2025-02-18 14:00:33 -08:00
parent 19e5edbc25
commit 9289d73a81
3 changed files with 32 additions and 4 deletions

View file

@ -331,7 +331,24 @@ ${
<access_mcp_resource>
<server_name>weather-server</server_name>
<uri>weather://san-francisco/current</uri>
</access_mcp_resource>`
</access_mcp_resource>
## Example 6: Another example of using an MCP tool (where the server name is a unique identifier such as a URL)
<use_mcp_tool>
<server_name>github.com/modelcontextprotocol/servers/tree/main/src/github</server_name>
<tool_name>create_issue</tool_name>
<arguments>
{
"owner": "octocat",
"repo": "hello-world",
"title": "Found a bug",
"body": "I'm having a problem with this.",
"labels": ["bug", "help wanted"],
"assignees": ["octocat"]
}
</arguments>
</use_mcp_tool>`
: ""
}

View file

@ -201,9 +201,9 @@ export const ChatRowContent = ({ message, isExpanded, onToggleExpand, lastModifi
marginBottom: "-1.5px",
}}></span>
),
<span style={{ color: normalColor, fontWeight: "bold" }}>
<span style={{ color: normalColor, fontWeight: "bold", wordBreak: "break-word" }}>
Cline wants to {mcpServerUse.type === "use_mcp_tool" ? "use a tool" : "access a resource"} on the{" "}
<code>{mcpServerUse.serverName}</code> MCP server:
<code style={{ wordBreak: "break-all" }}>{mcpServerUse.serverName}</code> MCP server:
</span>,
]
case "completion_result":

View file

@ -280,7 +280,18 @@ const ServerRow = ({ server }: { server: McpServer }) => {
{!server.error && (
<span className={`codicon codicon-chevron-${isExpanded ? "down" : "right"}`} style={{ marginRight: "8px" }} />
)}
<span style={{ flex: 1, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }}>{server.name}</span>
<span
style={{
flex: 1,
overflow: "hidden",
wordBreak: "break-all",
whiteSpace: "normal",
display: "flex",
alignItems: "center",
marginRight: "4px",
}}>
{server.name}
</span>
<div style={{ display: "flex", alignItems: "center", marginRight: "8px" }} onClick={(e) => e.stopPropagation()}>
<div
role="switch"