File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1239,7 +1239,7 @@ export type RegisteredPrompt = {
12391239 enabled : boolean ;
12401240 enable ( ) : void ;
12411241 disable ( ) : void ;
1242- update < Args extends StandardSchemaWithJSON > ( updates : {
1242+ update < Args extends StandardSchemaWithJSON | undefined = undefined > ( updates : {
12431243 name ?: string | null ;
12441244 title ?: string ;
12451245 description ?: string ;
Original file line number Diff line number Diff line change 55 * no-argsSchema and with-argsSchema overloads of registerPrompt.
66 */
77import type { GetPromptResult , ServerContext } from '@modelcontextprotocol/core' ;
8+ import { describe , it } from 'vitest' ;
89import * as z from 'zod/v4' ;
910
1011import { McpServer } from '../../src/server/mcp.js' ;
@@ -32,3 +33,10 @@ function registerPrompt_withArgs() {
3233 ( args : { code : string } , ctx : ServerContext ) => result
3334 ) ;
3435}
36+
37+ describe ( 'registerPrompt types' , ( ) => {
38+ it ( 'compiles' , ( ) => {
39+ // The functions above are compile-time type assertions; this suite
40+ // exists so vitest detects the file as containing tests.
41+ } ) ;
42+ } ) ;
You can’t perform that action at this time.
0 commit comments