MCPcopy Create free account
hub / github.com/deepnote/deepnote / getPrompt

Function getPrompt

packages/mcp/src/prompts.ts:90–107  ·  view source on GitHub ↗
(name: PromptName, args: Record<string, string> | undefined)

Source from the content-addressed store, hash-verified

88}
89
90export function getPrompt(name: PromptName, args: Record<string, string> | undefined): GetPromptResult {
91 switch (name) {
92 case 'debug_execution':
93 return getDebugExecutionPrompt(args)
94 case 'create_notebook':
95 return getCreateNotebookPrompt(args)
96 case 'convert_and_enhance':
97 return getConvertAndEnhancePrompt(args)
98 case 'fix_and_document':
99 return getFixAndDocumentPrompt(args)
100 case 'block_types_reference':
101 return getBlockTypesReferencePrompt()
102 case 'best_practices':
103 return getBestPracticesPrompt()
104 default:
105 return assertNever(name)
106 }
107}
108
109function getDebugExecutionPrompt(args: Record<string, string> | undefined): GetPromptResult {
110 const notebookPath = args?.notebook_path || 'notebook.deepnote'

Callers 2

prompts.test.tsFile · 0.90
createServerFunction · 0.90

Calls 7

getDebugExecutionPromptFunction · 0.85
getCreateNotebookPromptFunction · 0.85
getFixAndDocumentPromptFunction · 0.85
getBestPracticesPromptFunction · 0.85
assertNeverFunction · 0.70

Tested by

no test coverage detected