A2a Jsonrpc Transport logo

A2a Jsonrpc Transport

Organization
OrcaQubits
a2a-jsonrpc-transport

Implement the A2A JSON-RPC 2.0 transport layer — request/response format, method routing, batch requests, and HTTP details. Use when building custom A2A transport handling or debugging protocol-level issues.

Overview

PublisherOrcaQubits
Repositoryagentic-commerce-skills-plugins
Skill namea2a-jsonrpc-transport
Stars
40
Forks
17
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by OrcaQubits on GitHub. Read the source before you install it.

Installation

Install the A2a Jsonrpc Transport AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/OrcaQubits/agentic-commerce-skills-plugins/tree/main/a2a-multi-agent/skills/a2a-jsonrpc-transport
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/OrcaQubits/agentic-commerce-skills-plugins.git /tmp/agentic-commerce-skills-plugins
mkdir -p .claude/skills
cp -r /tmp/agentic-commerce-skills-plugins/a2a-multi-agent/skills/a2a-jsonrpc-transport .claude/skills/a2a-jsonrpc-transport
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable A2a Jsonrpc Transport in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads A2a Jsonrpc Transport on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so A2a Jsonrpc Transport is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

A2A JSON-RPC 2.0 Transport

Before writing code

Fetch live docs:

  1. Fetch https://a2a-protocol.org/latest/specification/ for the transport layer section
  2. Web-search site:github.com a2aproject A2A JSON-RPC transport for transport protocol details
  3. Fetch https://www.jsonrpc.org/specification for the JSON-RPC 2.0 base specification
  4. Fetch SDK docs for transport-level classes and middleware

Conceptual Architecture

Why JSON-RPC 2.0

A2A uses JSON-RPC 2.0 as its transport protocol because:

  • Simple — Lightweight request/response format
  • Standard — Well-established protocol with broad tooling support
  • Language-agnostic — Works with any language that handles JSON over HTTP
  • Extensible — Custom methods without changing the protocol

Request Format

Every A2A request is a JSON-RPC 2.0 request:

json
{
  "jsonrpc": "2.0",
  "method": "message/send",
  "id": "unique-request-id",
  "params": { ... }
}
  • jsonrpc — Always "2.0"
  • method — The A2A method name (e.g., message/send, tasks/get)
  • id — Client-generated unique ID for matching responses
  • params — Method-specific parameters (object)

Response Format

Success:

json
{
  "jsonrpc": "2.0",
  "id": "unique-request-id",
  "result": { ... }
}

Error:

json
{
  "jsonrpc": "2.0",
  "id": "unique-request-id",
  "error": {
    "code": -32600,
    "message": "Invalid Request",
    "data": { ... }
  }
}

HTTP Details

  • Method: All A2A requests use HTTP POST
  • URL: The agent's endpoint URL (from the Agent Card)
  • Content-Type: application/json for regular requests
  • Response Content-Type: application/json for message/send, text/event-stream for message/stream
  • HTTP Status: Typically 200 OK — errors are in the JSON-RPC response body, not HTTP status codes

A2A Methods

MethodDirectionPurpose
message/sendClient → ServerSend message, get synchronous response
message/streamClient → ServerSend message, get SSE stream
tasks/getClient → ServerRetrieve task by ID
tasks/cancelClient → ServerCancel a task
tasks/resubscribeClient → ServerRe-subscribe to task's SSE stream
tasks/pushNotificationConfig/setClient → ServerRegister push notification
tasks/pushNotificationConfig/getClient → ServerGet notification config
tasks/pushNotificationConfig/listClient → ServerList notification configs
tasks/pushNotificationConfig/deleteClient → ServerDelete notification config
agent/authenticatedExtendedCardClient → ServerGet extended Agent Card

Method Routing

The server must route incoming requests by the method field:

  1. Parse the JSON body
  2. Validate JSON-RPC 2.0 structure
  3. Extract the method field
  4. Route to the appropriate handler
  5. Return the handler's result wrapped in a JSON-RPC response

Request IDs

  • Client generates unique IDs for each request
  • Server echoes the same ID in the response
  • Use UUIDs or monotonically increasing integers
  • IDs enable matching responses to requests in async scenarios

Idempotency

A2A doesn't mandate built-in idempotency, but best practice is:

  • Use unique request IDs for deduplication
  • Design handlers to be idempotent where possible
  • For message/send, sending the same message twice should be handled gracefully

Best Practices

  • Use the SDK's built-in JSON-RPC handling rather than implementing from scratch
  • Validate the jsonrpc field is exactly "2.0"
  • Return proper JSON-RPC errors for malformed requests (not HTTP error codes)
  • Log request/response pairs with IDs for debugging
  • Set appropriate HTTP timeouts (longer for message/stream)
  • Use Content-Type: application/json for all non-streaming requests
  • Handle unknown methods gracefully with -32601
  • Don't rely on HTTP status codes for error handling — always check the JSON-RPC response body

Fetch the specification for any additional transport requirements, header conventions, and method parameter schemas before implementing.

Frequently asked questions

What does the A2a Jsonrpc Transport AI skill do?

Implement the A2A JSON-RPC 2.0 transport layer — request/response format, method routing, batch requests, and HTTP details. Use when building custom A2A transport handling or debugging protocol-level issues.

Why use A2a Jsonrpc Transport on TypingMind?

Because you install it once and use it with any model. A2a Jsonrpc Transport is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install A2a Jsonrpc Transport in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/OrcaQubits/agentic-commerce-skills-plugins/tree/main/a2a-multi-agent/skills/a2a-jsonrpc-transport. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use A2a Jsonrpc Transport?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with A2a Jsonrpc Transport?

As many as you like. As long as a model supports skills, you can use A2a Jsonrpc Transport with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the A2a Jsonrpc Transport AI skill free?

Yes. It is published on GitHub by OrcaQubits under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇