SEP-1319: Decouple Request Payloads, Remove passthrough iteration, Typecheck fixes (#1086)

This commit is contained in:
Konstantin Konstantinov 2025-11-07 18:50:20 +02:00 • committed by GitHub
commit f59996ae66
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2840 additions and 951 deletions

View file

@ -703,7 +703,7 @@ async function getPrompt(name: string, args: Record<string, unknown>): Promise<v
const promptResult = await client.request(promptRequest, GetPromptResultSchema);
console.log('Prompt template:');
promptResult.messages.forEach((msg, index) => {
console.log(` [${index + 1}] ${msg.role}: ${msg.content.text}`);
console.log(` [${index + 1}] ${msg.role}: ${msg.content.type === 'text' ? msg.content.text : JSON.stringify(msg.content)}`);
});
} catch (error) {
console.log(`Error getting prompt ${name}: ${error}`);

View file

@ -177,8 +177,7 @@ mcpServer.registerTool(
startTime: {
type: 'string',
title: 'Start Time',
description: 'Event start time (HH:MM)',
pattern: '^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$'
description: 'Event start time (HH:MM)'
},
duration: {
type: 'integer',
@ -268,8 +267,7 @@ mcpServer.registerTool(
zipCode: {
type: 'string',
title: 'ZIP/Postal Code',
description: '5-digit ZIP code',
pattern: '^[0-9]{5}$'
description: '5-digit ZIP code'
},
phone: {
type: 'string',