-
Notifications
You must be signed in to change notification settings - Fork 42
pull tool annotations onto CR for visibility #116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Caution
Changes requested ❌
Reviewed everything up to 25d8c50 in 2 minutes and 7 seconds. Click for details.
- Reviewed
367lines of code in10files - Skipped
0files when reviewing. - Skipped posting
4draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. acp/internal/mcpmanager/mcpmanager.go:159
- Draft comment:
Avoid using fmt.Printf for error reporting; use a structured logger (or controller-runtime's logging) for better log integration. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
2. acp/internal/mcpmanager/mcpmanager.go:169
- Draft comment:
Consider using the manager's logging facility instead of fmt.Printf for cleanup errors in the error branches when closing the client. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
3. acp/internal/mcpmanager/mcpmanager_test.go:472
- Draft comment:
Consider expanding unit tests to simulate error cases in ConnectServer (e.g., secret resolution failures) to improve coverage of error paths. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
4. acp/config/samples/mcp_github.yaml:1
- Draft comment:
There's a trailing whitespace after the apiVersion value on line 1. Please remove the extra space to keep the YAML clean. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 10% vs. threshold = 50% While trailing whitespace is generally undesirable, it's an extremely minor issue. Most modern editors automatically strip trailing whitespace. This kind of nitpick doesn't require human attention and could be better handled by automated formatting tools or pre-commit hooks. It doesn't affect functionality or readability. The trailing whitespace could cause issues with some YAML parsers or diff tools. It's a valid style consistency concern. While technically correct, this is too minor of an issue to warrant a PR comment. If whitespace is important, it should be enforced through automation rather than manual review. Delete this comment as it's too trivial and would be better handled by automated tooling.
Workflow ID: wflow_tjZ1N0jD16JNNi7v
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
| } | ||
|
|
||
| // Create annotations based on tool properties | ||
| annotations := &acp.MCPToolAnnotations{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Potential nil pointer dereference: tool.Annotations is used without checking if it's nil. Consider adding a nil check before accessing its fields.
Important
Add annotations to MCP tools for metadata about behavior, update CRD, deepcopy functions, and tests, and update dependencies.
MCPToolAnnotationsstruct inmcpserver_types.goto provide metadata about tool behavior.MCPToolstruct to includeAnnotationsfield inmcpserver_types.go.acp.humanlayer.dev_mcpservers.yamlto include annotations properties.DeepCopyfunctions forMCPToolAnnotationsinzz_generated.deepcopy.go.DeepCopyIntoforMCPToolto handleAnnotationsinzz_generated.deepcopy.go.mcpserver_controller_test.go.MockMCPClientinmcpmanager_test.goto handle annotations.go.modandgo.sumto usegithub.com/mark3labs/mcp-go v0.29.0and other dependency updates.This description was created by
for 25d8c50. You can customize this summary. It will automatically update as commits are pushed.