MCP Marketplace server installation prompt adjustment (#1901)

* MCP server isntallation prompt adjustment

* changeset
This commit is contained in:
canvrno 2025-02-24 12:37:17 -08:00 committed by GitHub
parent 45b13dd775
commit 0f1240063c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 4 deletions

View file

@ -0,0 +1,5 @@
---
"claude-dev": patch
---
Adjustment to MCP server installation prompt

View file

@ -32,6 +32,7 @@ import { ChatSettings, DEFAULT_CHAT_SETTINGS } from "../../shared/ChatSettings"
import { DIFF_VIEW_URI_SCHEME } from "../../integrations/editor/DiffViewProvider"
import { searchCommits } from "../../utils/git"
import { ChatContent } from "../../shared/ChatContent"
import { getShell } from "../../utils/shell"
/*
https://github.com/microsoft/vscode-webview-ui-toolkit-samples/blob/main/default/weather-webview/src/providers/WeatherViewProvider.ts
@ -1245,10 +1246,15 @@ export class ClineProvider implements vscode.WebviewViewProvider {
mcpDownloadDetails: mcpDetails,
})
// Create task with context from README
const task = `Set up the MCP server from ${mcpDetails.githubUrl}.
Use "${mcpDetails.mcpId}" as the server name in cline_mcp_settings.json.
Once installed, demonstrate the server's capabilities by using one of its tools.
// Create task with context from README and added guidelines for MCP server installation
const task = `Set up the MCP server from ${mcpDetails.githubUrl} while adhering to these MCP server installation rules:
- Use "${mcpDetails.mcpId}" as the server name in cline_mcp_settings.json.
- Use commands aligned with the user's shell and operating system best practices. The user's shell is: ${getShell()}.
- Create the directory for the new MCP server before starting installation.
- Follow the MCP servers README exactlyonly deviate if it clearly conflicts with the user's OS, in which case proceed thoughtfully.
- Ensure any steps requiring the use of pip, npm, or any other package manager, are followed as required.
- After running each command, read its output carefully and adjust subsequent steps as needed based on that information.
- Once installed, demonstrate the server's capabilities by using one of its tools.
Here is the project's README to help you get started:\n\n${mcpDetails.readmeContent}\n${mcpDetails.llmsInstallationContent}`
// Initialize task and show chat view