Skip to content

feat(cli): add status command with API key display and web URL#316

Merged
Dumbris merged 1 commit intomainfrom
027-status-command
Mar 3, 2026
Merged

feat(cli): add status command with API key display and web URL#316
Dumbris merged 1 commit intomainfrom
027-status-command

Conversation

@Dumbris
Copy link
Contributor

@Dumbris Dumbris commented Mar 3, 2026

Summary

  • Add mcpproxy status CLI command providing unified view of proxy state
  • Show masked API key, Web UI URL, server counts, and uptime
  • Support --show-key, --web-url, --reset-key flags
  • Dual-mode operation: live data via socket when daemon running, config-only when not
  • Docusaurus documentation at docs/cli/status-command.md

Test plan

  • 16 unit tests pass with -race detection
  • golangci-lint - 0 issues
  • mcpproxy status - config-only mode verified
  • mcpproxy status --show-key - full key display
  • mcpproxy status --web-url - URL-only output for piping
  • mcpproxy status -o json - valid JSON output
  • CI build passes

Add `mcpproxy status` command providing unified view of proxy state
including masked API key, Web UI URL, and key reset capability.

## Changes
- Add status_cmd.go with daemon/config dual-mode operation
- Add --show-key, --web-url, --reset-key flags
- Add GetStatus() method to cliclient
- Add status-command.md documentation for Docusaurus site
- Register status command in sidebars.js
- 16 unit tests with race detection, zero linter issues

## Testing
- go test -race ./cmd/mcpproxy/ - all pass
- golangci-lint - 0 issues
- Manual verification of all flag combinations
@cloudflare-workers-and-pages
Copy link

Deploying mcpproxy-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: d57a1c8
Status: ✅  Deploy successful!
Preview URL: https://6fceb460.mcpproxy-docs.pages.dev
Branch Preview URL: https://027-status-command.mcpproxy-docs.pages.dev

View logs

@github-actions
Copy link

github-actions bot commented Mar 3, 2026

📦 Build Artifacts

Workflow Run: View Run
Branch: 027-status-command

Available Artifacts

  • archive-darwin-amd64 (24 MB)
  • archive-darwin-arm64 (21 MB)
  • archive-linux-amd64 (13 MB)
  • archive-linux-arm64 (11 MB)
  • archive-windows-amd64 (23 MB)
  • archive-windows-arm64 (21 MB)
  • frontend-dist-pr (0 MB)
  • installer-dmg-darwin-amd64 (26 MB)
  • installer-dmg-darwin-arm64 (24 MB)

How to Download

Option 1: GitHub Web UI (easiest)

  1. Go to the workflow run page linked above
  2. Scroll to the bottom "Artifacts" section
  3. Click on the artifact you want to download

Option 2: GitHub CLI

gh run download 22612533540 --repo smart-mcp-proxy/mcpproxy-go

Note: Artifacts expire in 14 days.

@Dumbris Dumbris merged commit 30cb722 into main Mar 3, 2026
40 checks passed
@Dumbris Dumbris deleted the 027-status-command branch March 3, 2026 08:21
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.

2 participants