Skip to content

Conversation

@gophergogo
Copy link
Collaborator

@gophergogo gophergogo commented Dec 31, 2025

issue #147

gophergogo added 6 commits December 30, 2025 23:31
Add sendNotification method to McpClient for sending fire-and-forget
notifications to the server. Uses dispatcher thread to ensure thread
safety when sending through connection manager.
Rewrite demonstrateFeatures to test all server capabilities:
- Custom request handlers: ping, echo, server/status, health
- Resources: config, log, metrics (list and verify)
- Tools: calculator (all 4 operations), system_info, database_query
- Prompts: greeting, code_review, data_analysis (with arguments)
- Notifications: log, heartbeat, progress
- Batch requests and stress testing

Add test result tracking with pass/fail counts and summary report.
Add helper functions for extracting Metadata fields from responses.
…147)

Both Tools and Prompts have "name" field but not "uri". Scan array
elements for distinguishing optional fields:
- Tool has "inputSchema" field
- Prompt has "arguments" field
If no distinguishing field found, default to Tool.
- listPrompts: Extract vector<Prompt> from ResponseResult variant
- getPrompt: Parse Metadata response containing description and messages
  JSON string, deserialize PromptMessage array from messages field
Serialize GetPromptResult to JSON and convert to Metadata for response.
Previously returned placeholder with only promptName and messageCount=0.
@gophergogo gophergogo merged commit 5f78ef4 into main Dec 31, 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants