@@ -43,12 +43,10 @@ import {
4343 GetMoreSearchResultsArgsSchema ,
4444 StopSearchArgsSchema ,
4545 ListSearchesArgsSchema ,
46- GetPromptsArgsSchema ,
4746} from './tools/schemas.js' ;
4847import { getConfig , setConfigValue } from './tools/config.js' ;
4948import { getUsageStats } from './tools/usage.js' ;
5049import { giveFeedbackToDesktopCommander } from './tools/feedback.js' ;
51- import { getPrompts } from './tools/prompts.js' ;
5250import { trackToolCall } from './utils/trackTools.js' ;
5351import { usageTracker } from './utils/usageTracker.js' ;
5452import { 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