Skip to content

Commit ae00ce4

Browse files
committed
remove completion capability (potential sdk fix incoming)
1 parent d397787 commit ae00ce4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/app/src/server/mcp-server.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,15 @@ export const createServerFactory = (_webServerInstance: WebServer, sharedApiClie
683683
},
684684
});
685685

686+
// Remove the completions capability that was auto-added by prompt registration
687+
// The MCP SDK automatically adds this when prompts are registered, but we don't want it
688+
// @ts-ignore - accessing private property to remove unwanted capability
689+
if (server.server._capabilities?.completions) {
690+
// @ts-ignore
691+
delete server.server._capabilities.completions;
692+
logger.debug('Removed auto-added completions capability');
693+
}
694+
686695
if (!skipGradio) {
687696
void applyToolStates();
688697

0 commit comments

Comments
 (0)