Skip to content

Conversation

Copy link

Copilot AI commented Feb 5, 2026

What does this PR do?

Adds opencode a2a CLI command for managing the A2A (Agent2Agent) protocol server, completing the command suite alongside acp and mcp.

Implementation:

  • New command file src/cli/cmd/a2a.ts with three actions:
    • start (default): Launch A2A server with network options
    • info: Display protocol version and endpoint documentation
    • status: Show active endpoints and server configuration
  • Registered in main CLI (src/index.ts) between ACP and MCP commands
  • Protocol version (0.3.0) extracted to types.ts constant, used across card generation and CLI output

Usage:

opencode a2a              # Start server
opencode a2a info         # Show protocol details
opencode a2a status       # Display endpoints

Follows established patterns from ACP command (stdio/connection handling) and MCP command (subcommand structure).

How did you verify your code works?

  • Unit tests verify command structure and exports
  • Documentation updated with CLI usage examples
  • Command appears in opencode --help output automatically via yargs registration
Original prompt

I want to expose all opencode capabilities throught Agent2Agent (A2A) Protocol


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 6 commits February 5, 2026 09:40
Co-authored-by: jgranesa <47306065+jgranesa@users.noreply.github.com>
Co-authored-by: jgranesa <47306065+jgranesa@users.noreply.github.com>
Co-authored-by: jgranesa <47306065+jgranesa@users.noreply.github.com>
Co-authored-by: jgranesa <47306065+jgranesa@users.noreply.github.com>
Co-authored-by: jgranesa <47306065+jgranesa@users.noreply.github.com>
Co-authored-by: jgranesa <47306065+jgranesa@users.noreply.github.com>
Copilot AI changed the title [WIP] Expose all opencode capabilities through A2A Protocol Expose OpenCode capabilities through Agent2Agent (A2A) Protocol Feb 5, 2026
Copilot AI requested a review from jgranesa February 5, 2026 09:48
@github-actions
Copy link

Hey! Your PR title Expose OpenCode capabilities through Agent2Agent (A2A) Protocol doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

Copilot AI and others added 3 commits February 10, 2026 17:58
Co-authored-by: jgranesa <47306065+jgranesa@users.noreply.github.com>
Co-authored-by: jgranesa <47306065+jgranesa@users.noreply.github.com>
Co-authored-by: jgranesa <47306065+jgranesa@users.noreply.github.com>
Copilot AI changed the title Expose OpenCode capabilities through Agent2Agent (A2A) Protocol Add CLI command for A2A protocol server management Feb 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants