Skip to content

Conversation

@tzolov
Copy link
Collaborator

@tzolov tzolov commented Aug 24, 2025

  • Add McpMeta class to wrap metadata from MCP requests, notifications, and results
  • Support McpMeta parameter injection in all method callback types (tools, resources, prompts, completions)
  • Exclude McpMeta parameters from parameter count limits and JSON schema generation
  • Enable context-aware MCP operations with client-provided metadata (user identity, preferences, session info)
  • Add comprehensive test coverage for McpMeta functionality across all callback types
  • Update documentation with usage examples for tools, resources, prompts, and completions

This enhancement allows MCP methods to access contextual information from clients, enabling personalized and context-aware responses based on metadata such as user roles, preferences, session data, or any other client-provided context.

- Add McpMeta class to wrap metadata from MCP requests, notifications, and results - Support McpMeta parameter injection in all method callback types (tools, resources, prompts, completions) - Exclude McpMeta parameters from parameter count limits and JSON schema generation - Enable context-aware MCP operations with client-provided metadata (user identity, preferences, session info) - Add comprehensive test coverage for McpMeta functionality across all callback types - Update documentation with usage examples for tools, resources, prompts, and completions This enhancement allows MCP methods to access contextual information from clients, enabling personalized and context-aware responses based on metadata such as user roles, preferences, session data, or any other client-provided context. Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
@tzolov tzolov added this to the 0.2.0 milestone Aug 24, 2025
@tzolov tzolov merged commit e26aec8 into spring-ai-community:main Aug 24, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant