Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions daprdocs/content/en/reference/cli/cli-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ The Dapr CLI allows you to setup Dapr on your local dev machine or on a Kubernet
Distributed Application Runtime

Usage:
dapr [flags]
dapr [command]

Available Commands:
Expand All @@ -35,19 +36,23 @@ Available Commands:
invoke Invoke a method on a given Dapr application. Supported platforms: Self-hosted
list List all Dapr instances. Supported platforms: Kubernetes and self-hosted
logs Get Dapr sidecar logs for an application. Supported platforms: Kubernetes
mcpservers List all Dapr MCPServer resources. Supported platforms: Kubernetes and self-hosted
mtls Check if mTLS is enabled. Supported platforms: Kubernetes
publish Publish a pub-sub event. Supported platforms: Self-hosted
run Run Dapr and (optionally) your application side by side. Supported platforms: Self-hosted
scheduler Scheduler management commands. Use -k to target a Kubernetes Dapr cluster.
status Show the health status of Dapr services. Supported platforms: Kubernetes
stop Stop Dapr instances and their associated apps. Supported platforms: Self-hosted
uninstall Uninstall Dapr runtime. Supported platforms: Kubernetes and self-hosted
upgrade Upgrades a Dapr control plane installation in a cluster. Supported platforms: Kubernetes
upgrade Upgrades or downgrades a Dapr control plane installation in a cluster. Supported platforms: Kubernetes
version Print the Dapr runtime and CLI version
workflow Workflow management commands. Use -k to target a Kubernetes Dapr cluster.

Flags:
-h, --help help for dapr
--log-as-json Log output in JSON format
-v, --version version for dapr
-h, --help help for dapr
--log-as-json Log output in JSON format
--runtime-path string The path to the dapr runtime installation directory
-v, --version version for dapr

Use "dapr [command] --help" for more information about a command.
```
Expand All @@ -66,14 +71,17 @@ You can learn more about each Dapr command from the links below.
- [`dapr invoke`]({{% ref dapr-invoke.md %}})
- [`dapr list`]({{% ref dapr-list.md %}})
- [`dapr logs`]({{% ref dapr-logs.md %}})
- [`dapr mcpservers`]({{% ref dapr-mcpservers.md %}})
- [`dapr mtls`]({{% ref dapr-mtls %}})
- [`dapr publish`]({{% ref dapr-publish.md %}})
- [`dapr run`]({{% ref dapr-run.md %}})
- [`dapr scheduler`]({{% ref dapr-scheduler.md %}})
- [`dapr status`]({{% ref dapr-status.md %}})
- [`dapr stop`]({{% ref dapr-stop.md %}})
- [`dapr uninstall`]({{% ref dapr-uninstall.md %}})
- [`dapr upgrade`]({{% ref dapr-upgrade.md %}})
- [`dapr version`]({{% ref dapr-version.md %}})
- [`dapr workflow`]({{% ref dapr-workflow.md %}})

### Environment Variables

Expand Down
63 changes: 63 additions & 0 deletions daprdocs/content/en/reference/cli/dapr-mcpservers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
type: docs
title: "mcpservers CLI command reference"
linkTitle: "mcpservers"
description: "Detailed information on the mcpservers CLI command"
---

### Description

List all Dapr MCPServer resources.

### Supported platforms

- [Kubernetes]({{% ref kubernetes %}})
- [Self-Hosted]({{% ref self-hosted %}})

### Usage

```bash
dapr mcpservers [flags]
```

### Flags

| Name | Environment Variable | Default | Description
| --- | --- | --- | --- |
| `--all-namespaces`, `-A` | | `false` | If true, list all Dapr MCPServer resources in all namespaces (Kubernetes mode only) |
| `--help`, `-h` | | | Print this help message |
| `--kubernetes`, `-k` | | `false` | List Dapr MCPServer resources from a Kubernetes cluster |
| `--name`, `-n` | | | The MCPServer name to be printed (optional) |
| `--namespace` | | | List MCPServer resources in a specific Kubernetes namespace |
| `--output`, `-o` | | `list` | Output format (options: json or yaml or list) |
| `--resources-path` | | `$HOME/.dapr/components` | Self-hosted only: directory to scan for MCPServer YAML resources |

### Examples

```bash
# List all Dapr MCPServer resources in self-hosted mode (reads from ~/.dapr/components/ by default)
dapr mcpservers

# List MCPServer resources from a custom resources directory in self-hosted mode
dapr mcpservers --resources-path ./resources

# Print a specific MCPServer resource in self-hosted mode
dapr mcpservers -n my-mcp-server

# List all Dapr MCPServer resources in Kubernetes mode
dapr mcpservers -k

# List MCPServer resources in a specific namespace
dapr mcpservers -k --namespace default

# List MCPServer resources across all namespaces
dapr mcpservers -k --all-namespaces

# Output as JSON
dapr mcpservers -o json
```

### Related links

- [MCPServer resource specification]({{% ref mcpserver-schema.md %}})
- [How to: Expose an MCP server with Dapr]({{% ref howto-use-mcpserver.md %}})
Loading