Skip to content

Conversation

shenyv1
Copy link

@shenyv1 shenyv1 commented Jul 11, 2025

Implements 【腾讯犀牛鸟计划】tRPC-MCP-Go Completion功能 #19
This pull request partially addresses Issue #19.
Main changes:
• Add support for the completion/complete method, enabling intelligent completion suggestions for prompt arguments (ref/prompt type).
• Extend the core client (client.go) to support the CompletionComplete method.
• Enhance manager_prompt.go and mcp_prompts.go to handle completion requests and define related data structures.
• Add RegisterPromptWithCompletion to the server, allowing registration of prompts with completion handlers.
• Add comprehensive unit tests in completion_prompt_test.go to cover normal, error, and fallback scenarios for prompt completion.
• Provide full client and server examples (examples/completion_example/) demonstrating how to use the completion feature in real applications.
• Minor updates to lifecycle, utils, and server integration to support the new feature.
Note:
This PR implements intelligent completion for prompt arguments only. Resource URI completion is not included in this update.
Next Steps:
The resource URI completion functionality will be delivered in a follow-up PR, completing the full scope of Issue #19.

@shenyv1 shenyv1 changed the title Feature: Implement MCP Completion (prompt argument only), add tests and examples feat: Implement MCP Completion (prompt argument only), add tests and examples Jul 14, 2025
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.

1 participant