npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

simple-a2a-agent

v2.0.0

Published

A tool to quickly spin up simple Agent-to-Agent (A2A) servers

Readme

Simple A2A Agent

A tool to quickly spin up simple Agent-to-Agent (A2A) servers.

Features

  • Run A2A servers from CLI parameters or a JSON config file
  • Autodetect available port (if not configured)
  • Select LLM model and model parameters to use (through VoltAgent)
  • Add MCP tools to the agent (through VoltAgent)

WARNING: Experimental

This project was done for educational purposes only, it is not production ready. Use at your own risks.

Installation

Install Globally (Recommended for CLI)

After building the project (see below), you can install the CLI globally:

npm install -g simple-a2a-agent

This will make the simple-a2a-agent command available anywhere:

simple-a2a-agent --config samples/sample-config.json

Use with npx (No Install Required)

If you have published the package or want to use it directly from your local build, you can run:

npx simple-a2a-agent --config samples/sample-config.json

Or, if running from source before publishing, use:

npx tsx src/cli.ts --config samples/sample-config.json

Usage

Without config file

Export the required environment variables (depending on your model provider):

export OPENAI_API_KEY=sk-your-key

Run an agent (the description is the system prompt) :

npx simple-a2a-agent \
    --name "Cool agent" \
    --description "Reply with a cool description and emojis" \
    --llm-provider openai \
    --llm-model gpt-4o-mini

With config file

npx simple-a2a-agent --config samples/sample-config.json

or even shorter :

npx simple-a2a-agent -c samples/mcp-sample-config.json

Testing it works properly

curl http://localhost:5232/.well-known/agent-card.json | jq

Config file

{
  "agent": {
    "name": "Joke Agent",
    "description": "An agent that tells jokes and brings laughter to users.",
    "provider": { "organization": "ExampleOrg" },
    "version": "1.0.0",
    "skills": [
      {
        "id": "joke_telling",
        "name": "Joke Telling",
        "description": "Tells random jokes, puns, and humorous anecdotes on request.",
        "tags": ["joke", "humor", "fun"],
        "examples": [
          "Tell me a joke.",
          "Do you know any puns?",
          "Make me laugh!"
        ]
      }
    ]
  },
  "server": {
  },
  "llm": {
    "provider": {
      "type": "openai"
    },
    "model": "gpt-4o-mini"
  }
}

Adding MCP tools

{
    // ...
    "mcpServers": {
        "filesystem": {
        "type": "stdio",
        "command": "npx",
        "args": [
            "-y",
            "@modelcontextprotocol/server-filesystem",
            "/Users/neyric/Desktop"
        ],
        "env": { "NODE_ENV": "production" }
        }
    }
}

Cf https://voltagent.dev/docs/agents/mcp/

Improvements / TODO

  • [ ] Remove option for config file (use first argument)
  • [ ] Add an example for Anthropic Claude
  • [ ] Split the agentCard description from the system prompt
  • [x] Use a future official A2A typescript SDK (for the time being, we imported files from https://github.com/google/A2A)
  • [ ] Support for additional A2A features (streaming, input/output modes, ...)
  • [ ] Upgrade VoltAgent dependencies