feat: add dapr mcpservers cli cmd#1628
Open
sicoyle wants to merge 6 commits into
Open
Conversation
Signed-off-by: Samantha Coyle <sam@diagrid.io>
There was a problem hiding this comment.
Pull request overview
Adds a new Kubernetes-mode CLI command (dapr mcpservers -k) to list Dapr MCPServer CRD resources, aligning output/flags with existing components and configurations listing patterns.
Changes:
- Introduces Kubernetes client helpers to list/print MCPServer resources with table and JSON/YAML output.
- Adds a new
dapr mcpserversCobra command with--name,--namespace,--all-namespaces, and-oflags. - Adds unit tests for listing/filtering behavior and endpoint-derived fields (transport/URL).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
pkg/kubernetes/mcpservers.go |
Implements listing, filtering, table output, and JSON/YAML detail output for MCPServers. |
pkg/kubernetes/mcpservers_test.go |
Adds tests for write path, transport detection, and URL derivation. |
cmd/mcpservers.go |
Adds the new dapr mcpservers CLI command and flags wiring. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
7 tasks
4 tasks
JoshVanL
requested changes
May 5, 2026
Signed-off-by: Samantha Coyle <sam@diagrid.io>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Summary
dapr mcpservers -kcommand to list MCPServer CRD resources in Kubernetes--name,--namespace,--all-namespaces, and-o json/yamlflagsdapr components -kanddapr configurations -kThis will fail until my upstream PR here is merged with the clientset changes required for this:
dapr/dapr#9742
Issue reference
We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.
Please reference the issue this PR will close: #[issue number]
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list: