Skip to content

Implement micro mcp test command#2857

Merged
asim merged 4 commits intomasterfrom
copilot/implement-docs-recommendations
Feb 13, 2026
Merged

Implement micro mcp test command#2857
asim merged 4 commits intomasterfrom
copilot/implement-docs-recommendations

Conversation

Copy link
Contributor

Copilot AI commented Feb 13, 2026

The micro mcp test command was documented in help text and examples but returned a "not yet implemented" placeholder.

Changes

  • cmd/micro/mcp/mcp.go: Implemented testAction to:

    • Parse tool names (service.endpoint or service.Handler.Method formats)
    • Discover services from registry
    • Make RPC calls using bytes codec for raw JSON payloads
    • Pretty-print responses with proper error handling
  • cmd/micro/mcp/mcp_test.go: Added unit tests for tool name parsing

Usage

# Test with empty input
micro mcp test greeter.Greeter.Hello

# Test with JSON payload
micro mcp test greeter.Greeter.Hello '{"name":"World"}'

Output shows service/endpoint details, validates JSON input, and displays formatted responses or error messages.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • 224.0.0.251
    • Triggering command: REDACTED, pid is -1 (packet block)

If you need me to access, download, or install something from one of these locations, you can either:


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits February 13, 2026 14:12
Co-authored-by: asim <17530+asim@users.noreply.github.com>
Co-authored-by: asim <17530+asim@users.noreply.github.com>
Co-authored-by: asim <17530+asim@users.noreply.github.com>
Copilot AI changed the title [WIP] Implement missing documentation recommendations Implement micro mcp test command Feb 13, 2026
Copilot AI requested a review from asim February 13, 2026 14:17
@asim asim marked this pull request as ready for review February 13, 2026 14:19
@asim asim merged commit 5e1042e into master Feb 13, 2026
2 checks passed
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