Skip to content

Commit e0c91f5

Browse files
committed
Revert "Adding prompt tool with first 9 prompts for onboarding"
This reverts commit 063ad28.
1 parent 063ad28 commit e0c91f5

6 files changed

Lines changed: 2 additions & 511 deletions

File tree

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"bump": "node scripts/sync-version.js --bump",
2828
"bump:minor": "node scripts/sync-version.js --bump --minor",
2929
"bump:major": "node scripts/sync-version.js --bump --major",
30-
"build": "tsc && shx cp setup-claude-server.js uninstall-claude-server.js track-installation.js dist/ && shx chmod +x dist/*.js && shx mkdir -p dist/data && shx cp src/data/onboarding-prompts.json dist/data/",
30+
"build": "tsc && shx cp setup-claude-server.js uninstall-claude-server.js track-installation.js dist/ && shx chmod +x dist/*.js",
3131
"watch": "tsc --watch",
3232
"start": "node dist/index.js",
3333
"start:debug": "node --inspect-brk=9229 dist/index.js",

‎src/data/onboarding-prompts.json‎

Lines changed: 0 additions & 114 deletions
This file was deleted.

‎src/server.ts‎

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,10 @@ import {
4343
GetMoreSearchResultsArgsSchema,
4444
StopSearchArgsSchema,
4545
ListSearchesArgsSchema,
46-
GetPromptsArgsSchema,
4746
} from './tools/schemas.js';
4847
import {getConfig, setConfigValue} from './tools/config.js';
4948
import {getUsageStats} from './tools/usage.js';
5049
import {giveFeedbackToDesktopCommander} from './tools/feedback.js';
51-
import {getPrompts} from './tools/prompts.js';
5250
import {trackToolCall} from './utils/trackTools.js';
5351
import {usageTracker} from './utils/usageTracker.js';
5452
import {processDockerPrompt} from './utils/dockerPrompt.js';
@@ -678,36 +676,6 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
678676
${CMD_PREFIX_DESCRIPTION}`,
679677
inputSchema: zodToJsonSchema(GiveFeedbackArgsSchema),
680678
},
681-
{
682-
name: "get_prompts",
683-
description: `
684-
Browse and retrieve curated Desktop Commander prompts for various tasks and workflows.
685-
686-
IMPORTANT: When displaying prompt lists to users, do NOT show the internal prompt IDs (like 'onb_001').
687-
These IDs are for your reference only. Show users only the prompt titles and descriptions.
688-
The IDs will be provided in the response metadata for your use.
689-
690-
ACTIONS:
691-
- list_categories: Show all available prompt categories
692-
- list_prompts: List prompts (optionally filtered by category)
693-
- get_prompt: Retrieve and execute a specific prompt by ID
694-
695-
WORKFLOW:
696-
1. Use list_categories to see available categories
697-
2. Use list_prompts to browse prompts in a category
698-
3. Use get_prompt with promptId to retrieve and start using a prompt
699-
700-
EXAMPLES:
701-
- get_prompts(action='list_categories') - See all categories
702-
- get_prompts(action='list_prompts', category='onboarding') - See onboarding prompts
703-
- get_prompts(action='get_prompt', promptId='onb_001') - Get a specific prompt
704-
705-
The get_prompt action will automatically inject the prompt content and begin execution.
706-
Perfect for discovering proven workflows and getting started with Desktop Commander.
707-
708-
${CMD_PREFIX_DESCRIPTION}`,
709-
inputSchema: zodToJsonSchema(GetPromptsArgsSchema),
710-
},
711679
],
712680
};
713681
} catch (error) {
@@ -774,18 +742,6 @@ server.setRequestHandler(CallToolRequestSchema, async (request: CallToolRequest)
774742
}
775743
break;
776744

777-
case "get_prompts":
778-
try {
779-
result = await getPrompts(args || {});
780-
} catch (error) {
781-
capture('server_request_error', {message: `Error in get_prompts handler: ${error}`});
782-
result = {
783-
content: [{type: "text", text: `Error: Failed to retrieve prompts`}],
784-
isError: true,
785-
};
786-
}
787-
break;
788-
789745
case "give_feedback_to_desktop_commander":
790746
try {
791747
result = await giveFeedbackToDesktopCommander(args);

0 commit comments

Comments
 (0)