feat: add mcp client instruction support

This commit is contained in:
Kalvin Chau 2025-01-22 09:17:59 -08:00
commit 443c0829ed

View file

@ -304,6 +304,12 @@ export const InitializeResultSchema = ResultSchema.extend({
protocolVersion: z.string(),
capabilities: ServerCapabilitiesSchema,
serverInfo: ImplementationSchema,
/**
* Instructions describing how to use the server and its features.
*
* This can be used by clients to improve the LLM's understanding of available tools, resources, etc. It can be thought of like a "hint" to the model. For example, this information MAY be added to the system prompt.
*/
instructions: z.optional(z.string()),
});
/**