This commit is contained in:
Saoud Rizwan
2024-12-11 14:12:11 -08:00
parent d05033909b
commit f5ace866e8
4 changed files with 9 additions and 6 deletions

View File

@@ -4,7 +4,7 @@
- Add support for Model Context Protocol (MCP), enabling Cline to use custom tools like web-search tool or GitHub tool - Add support for Model Context Protocol (MCP), enabling Cline to use custom tools like web-search tool or GitHub tool
- Add MCP server management tab accessible via the server icon in the menu bar - Add MCP server management tab accessible via the server icon in the menu bar
- Add ability for Cline to dynamically create new MCP servers based on user requests (e.g., "add a tool that fetches Jira tickets") - Add ability for Cline to dynamically create new MCP servers based on user requests (e.g., "add a tool that pulls the latest npm docs")
## [2.1.6] ## [2.1.6]

View File

@@ -470,7 +470,9 @@ export class McpHub {
): Promise<McpToolCallResponse> { ): Promise<McpToolCallResponse> {
const connection = this.connections.find((conn) => conn.server.name === serverName) const connection = this.connections.find((conn) => conn.server.name === serverName)
if (!connection) { if (!connection) {
throw new Error(`No connection found for server: ${serverName}`) throw new Error(
`No connection found for server: ${serverName}. Please make sure to use MCP servers available under 'Connected MCP Servers'.`,
)
} }
return await connection.client.request( return await connection.client.request(
{ {

View File

@@ -40,7 +40,7 @@ const Announcement = ({ version, hideAnnouncement }: AnnouncementProps) => {
</VSCodeLink> </VSCodeLink>
</p> </p>
<p style={{ margin: "5px 0px" }}> <p style={{ margin: "5px 0px" }}>
You can add and configure MCP servers by clicking the{" "} You can add and configure MCP servers by clicking the new{" "}
<span className="codicon codicon-server" style={{ fontSize: "10px" }}></span> icon in the menu bar. <span className="codicon codicon-server" style={{ fontSize: "10px" }}></span> icon in the menu bar.
</p> </p>
<p style={{ margin: "5px 0px" }}> <p style={{ margin: "5px 0px" }}>
@@ -57,8 +57,9 @@ const Announcement = ({ version, hideAnnouncement }: AnnouncementProps) => {
with others too.{" "} with others too.{" "}
</p> </p>
<p style={{ margin: "5px 0px" }}> <p style={{ margin: "5px 0px" }}>
Try it yourself by asking Cline to "add a tool that pulls the latest npm docs", or
<VSCodeLink href="https://x.com/sdrzn/status/1850880547825823989" style={{ display: "inline" }}> <VSCodeLink href="https://x.com/sdrzn/status/1850880547825823989" style={{ display: "inline" }}>
See a demo of MCP in action here! see a demo of MCP in action here.
</VSCodeLink> </VSCodeLink>
</p> </p>
{/*<ul style={{ margin: "0 0 8px", paddingLeft: "12px" }}> {/*<ul style={{ margin: "0 0 8px", paddingLeft: "12px" }}>

View File

@@ -118,8 +118,8 @@ const McpView = ({ onDone }: McpViewProps) => {
<VSCodeLink href="https://github.com/modelcontextprotocol/servers" style={{ display: "inline" }}> <VSCodeLink href="https://github.com/modelcontextprotocol/servers" style={{ display: "inline" }}>
community-made servers community-made servers
</VSCodeLink>{" "} </VSCodeLink>{" "}
or ask Cline to create new tools specific to your workflow (e.g., "add a tool that pulls GitHub or ask Cline to create new tools specific to your workflow (e.g., "add a tool that pulls the latest
issues"). npm docs").
</div> </div>
{/* Server List */} {/* Server List */}