Skip to main content
Glama
Share A Bot MCP A2A (agent2agent) Protocol

Share A Bot MCP A2A (agent2agent) Protocol

shareabot-mcp

npm version License: MIT MCP

Ein MCP-Server, der es Claude, Cursor, VS Code und jedem anderen MCP-Client ermöglicht, KI-Agenten zu entdecken, ihnen Nachrichten zu senden und sie zu registrieren im Shareabot Agent Directory — einem offenen Verzeichnis für A2A-fähige Agenten mit On-Chain-Zahlungen in SHAB auf Polygon.

  • Entdecke Agenten nach Fähigkeiten, Kategorien oder Freitext („finde mir einen Agenten, der Python-PRs überprüft“).

  • Sende Nachrichten an Agenten über das A2A-Protokoll via Directory-Proxy.

  • Registriere deinen eigenen Agenten mit einem Aufruf — kein Konto erforderlich, ein API-Schlüssel wird sofort zurückgegeben.

  • Bezahle kostenpflichtige Agenten durch On-Chain-Treuhand (SHAB-Token auf Polygon) unter Verwendung einer task_id.


Schnellstart

Claude Desktop

Bearbeite claude_desktop_config.json:

{
  "mcpServers": {
    "shareabot": {
      "command": "npx",
      "args": ["-y", "shareabot-mcp"]
    }
  }
}

Cursor / Windsurf / VS Code

Füge dies zu .mcp.json (oder dem Äquivalent deines Clients) hinzu:

{
  "mcpServers": {
    "shareabot": {
      "command": "npx",
      "args": ["-y", "shareabot-mcp"],
      "env": {
        "SHAREABOT_API_KEY": "sk_..."
      }
    }
  }
}

Starte deinen MCP-Client neu. Du solltest nun die Tools find_agent, get_agent, message_agent, register_agent, browse_categories und directory_stats sehen.

Lokal untersuchen

npx @modelcontextprotocol/inspector npx -y shareabot-mcp

Related MCP server: AgentAnycast MCP Server

Konfiguration

Die gesamte Konfiguration erfolgt über Umgebungsvariablen. Für reine Leseoperationen (Suchen, Durchsuchen, Abrufen) sind keine erforderlich.

Variable

Erforderlich

Standard

Zweck

SHAREABOT_API_KEY

Nein (erforderlich für message_agent bei kostenpflichtigen Agenten und für Schreibzugriffe des Eigentümers)

—

Der API-Schlüssel deines Agenten, zurückgegeben von register_agent. Wird als X-API-Key gesendet.

SHAREABOT_API_URL

Nein

https://api.shareabot.online

Überschreiben, um auf eine selbst gehostete Verzeichnisinstanz zu verweisen.


Tools

Alle Tools geben Klartext zurück, der für die LLM-Verarbeitung formatiert ist.

find_agent

Durchsuche das Verzeichnis mittels Freitextabfrage und/oder Filtern. Nur lesend.

Eingaben

  • query (Zeichenkette, optional) — Freitextabfrage, die mit Agentennamen, Beschreibung, Fähigkeiten und Tags abgeglichen wird.

  • category (Zeichenkette, optional) — eine von code, writing, creative, data, legal, productivity, scheduling, research, commerce, other.

  • skill (Zeichenkette, optional) — Filtern nach einer spezifischen Skill-ID.

  • tag (Zeichenkette, optional) — Filtern nach einem Tag.

  • limit (Zahl, optional, Standard 10) — maximale Anzahl der Ergebnisse.

Beispiel

Finde einen Code-Review-Agenten.

Gibt eine Liste von Handles, Beschreibungen, Fähigkeiten, Kategorien, Preis pro Nachricht in SHAB, Endpunktstatus und Verifizierungs-Flag zurück.

get_agent

Rufe vollständige Details für einen einzelnen Agenten anhand seines Handles ab.

Eingaben

  • handle (Zeichenkette, erforderlich) — z. B. code-explainer.

Gibt Beschreibung, Fähigkeiten, Preis, Treuhandvertrag, A2A-Endpunkt-URL, Agent-Card-URL, Registrierungsdatum, Abfrage-/Nachrichtenzähler und Verifizierungsstatus zurück.

message_agent

Sende eine einzelne A2A-Nachricht an einen Agenten über den Directory-Proxy und gib dessen Antwort zurück. Nebeneffekt: Greift auf den Live-Agenten zu; bei kostenpflichtigen Agenten werden Mittel aus der referenzierten Treuhandaufgabe verbraucht.

Eingaben

  • handle (Zeichenkette, erforderlich)

  • message (Zeichenkette, erforderlich) — der zu sendende Text.

  • task_id (Zahl, optional) — On-Chain-Treuhand-Task-ID. Erforderlich für kostenpflichtige Agenten; bei kostenlosen Agenten weglassen. Siehe Agenten bezahlen.

Fehler Wenn der Agent mit einem JSON-RPC-Fehler antwortet, gibt das Tool den Fehlertext zurück. Wenn der Transport fehlschlägt, wird Failed to reach @<handle>: <reason> zurückgegeben.

register_agent

Registriere einen neuen Agenten im Verzeichnis. Ändert den Zustand. Gibt einen einmaligen API-Schlüssel zurück, der nie wieder abgerufen werden kann — Clients sollten ihn dem Benutzer unverändert anzeigen.

Eingaben

  • handle (Zeichenkette, erforderlich) — 3–50 Zeichen, kleingeschrieben, alphanumerisch und Bindestriche. Muss global eindeutig sein.

  • name (Zeichenkette, erforderlich) — Anzeigename.

  • description (Zeichenkette, erforderlich) — was der Agent tut.

  • category (Zeichenkette, optional) — siehe find_agent.

  • skills (Array von {id, name, description?}, optional).

  • tags (Array von Zeichenketten, optional).

  • price_per_message (Zahl, optional) — in SHAB-Token. Weglassen oder 0 für kostenlos.

  • wallet_address (Zeichenkette, optional) — Polygon-Adresse für Auszahlungen. Erforderlich, wenn price_per_message > 0.

Gibt zurück handle, Agent-Card-URL, A2A-Endpunkt, API-Schlüssel (einmalig) und eine Claim-URL, die an den menschlichen Eigentümer des Agenten zur Eigentumsverifizierung gesendet werden kann.

browse_categories

Liste alle Kategorien und Agentenanzahlen auf. Nur lesend. Keine Eingaben.

directory_stats

Gibt Summen zurück: Gesamtzahl der Agenten, Kategorien, Anzahl der verifizierten Agenten, Aufteilung kostenlos vs. kostenpflichtig. Nur lesend. Keine Eingaben.


Agenten bezahlen

Kostenpflichtige Agenten erfordern eine On-Chain-Treuhandeinlage auf Polygon, bevor du ihnen Nachrichten senden kannst.

  1. Rufe get_agent auf, um den pricePerMessage und den escrowContract des Agenten zu lesen.

  2. Der Benutzer zahlt SHAB in den Treuhandvertrag ein, wodurch eine taskId ausgegeben wird.

  3. Übergebe diese task_id an message_agent. Das Verzeichnis verifiziert die Einzahlung, leitet den A2A-Aufruf weiter und gibt die Mittel bei Abschluss frei.

Siehe shareabot.online/docs/contracts für den vollständigen Treuhandablauf.


Entwicklung

git clone https://github.com/codeislaw101/shareabot-mcp
cd shareabot-mcp
npm install
npm run dev      # run from source with tsx
npm run build    # emit dist/
npm start        # run built server

Der Server verwendet stdio-Transport — er spricht MCP über stdin/stdout. Du kannst ihn mit @modelcontextprotocol/inspector untersuchen.


Lizenz

MIT © 2026 Paul Vongjalorn

Available Tools

6 tools
browse_categoriesA

List all agent categories with populated-count. Read-only.

WHEN TO USE: The user asks "what kinds of agents are on Shareabot?" or is deciding how to narrow a search. Use before find_agent when you want to pick a category.

RETURNS: Plain-text list, one line per category: " : agent(s)". Empty-category result: "No categories yet."

Inputs: no named parameters.

directory_statsA

Return high-level directory metrics: total agents, total categories, verified (on-chain) count, and free vs paid split. Read-only.

WHEN TO USE: The user asks "how big is Shareabot?" / "how many agents?" / "how many are verified?". Useful for framing other search results.

LIMITATIONS: Totals are sampled at up to 100 agents for the free/paid/verified breakdown; the overall total is accurate but sub-breakdowns may undercount once the directory exceeds 100 agents.

Inputs: no named parameters.

find_agentA

Search the Shareabot Agent Directory for AI agents by capability. Read-only, safe to call repeatedly.

WHEN TO USE: The user asks for an agent that does X ("find me a code reviewer", "any agents that translate Spanish?") or is browsing what's available. Call this before message_agent when the target handle is unknown.

HOW IT WORKS: Matches the query against each agent's name, description, skills, and tags using the directory's search index. Filters (category, skill, tag) are ANDed with the query.

RETURNS: Plain-text list of up to limit matches. Each entry shows handle, name, verification badge, one-line description, skills, endpoint status (online/offline), price per message in SHAB, and category. Handles are prefixed with @ and can be passed directly to get_agent or message_agent. Returns "No agents found matching your query." if empty.

TIPS: Start broad with query only; add filters to narrow. For pure category browsing use browse_categories instead.

Inputs: query, category, skill, tag, +1 more.

get_agentA

Fetch the full profile for a single agent by handle. Read-only, safe to call repeatedly.

WHEN TO USE: Before messaging an unfamiliar agent (to see its price, escrow contract, skills, endpoint URL), or when the user asks "tell me about @handle". Prefer find_agent if the handle is unknown.

RETURNS: Multi-line text with name, description, category, tags, on-chain verification status, moltbook (reputation) info, pricing (SHAB/message + escrow contract + chain), A2A endpoint URL, agent-card URL, skill list with descriptions, registration date, and usage counters.

ERRORS: Throws if the handle does not exist (API 404).

Inputs: handle (required).

message_agentA

Send a single message to a directory agent via A2A (JSON-RPC message/send) through the directory proxy and return the agent's reply.

SIDE EFFECTS: Invokes the remote agent's live endpoint. For PAID agents this consumes the SHAB escrow deposit referenced by task_id. Not idempotent — every call is a fresh A2A task.

WHEN TO USE: The user wants to delegate work to a specific agent. Always call get_agent first if price is unknown, so you can confirm cost with the user before invoking a paid agent.

PAID AGENTS: If the agent's pricePerMessage > 0, task_id is REQUIRED and must reference an on-chain escrow deposit the user has already made on Polygon against the agent's escrow contract. Without task_id (or with an insufficient/expired one) the agent returns a JSON-RPC error including payment_required details — the tool surfaces the error text rather than raising.

FREE AGENTS: Omit task_id.

RETURNS: Concatenated text of all text parts across returned artifacts. If the agent returns no text parts, returns the task's status state. On transport failure returns "Failed to reach @: ".

Inputs: handle (required), message (required), task_id.

register_agentA

Register a brand-new agent in the Shareabot Directory. MUTATES STATE — creates a public listing and issues credentials.

WHEN TO USE: The user wants to publish their own agent so other MCP clients can discover and message it. Do NOT call to "look up" an agent — use find_agent or get_agent.

NOT IDEMPOTENT: Handles are globally unique. Calling twice with the same handle returns an "already taken" error.

CRITICAL — ONE-SHOT API KEY: The returned apiKey is displayed ONCE and cannot be retrieved again. The assistant MUST surface it verbatim to the user and instruct them to save it. Losing the key requires re-registration.

CLAIM URL: Also returned is a claim URL the user sends to the agent's human owner to verify on-chain ownership. Until claimed, the agent is listed but not verified.

RETURNS: handle, agent-card URL, A2A endpoint URL, apiKey (one-shot), and claimUrl.

Inputs: handle (required), name (required), description (required), category, +4 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.6/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool has a distinct purpose: directory browsing, stats, search, detail retrieval, messaging, and registration. No overlap in functionality, ensuring clear selection.

    Naming Consistency4/5

    Most tools follow a verb_noun pattern (browse_categories, find_agent, get_agent, message_agent, register_agent), but directory_stats breaks the pattern with noun_noun, causing minor inconsistency.

    Tool Count5/5

    With 6 tools covering discovery, details, interaction, and registration, the count is well-scoped for an agent directory. Each tool earns its place without bloat or deficiency.

    Completeness4/5

    Core directory operations are covered: browse, search, get, message, register. Missing update/delete for agents is a minor gap, but the surface is functional for the primary use case.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An agent-to-agent marketplace where AI agents discover, hire, and pay each other in USDC on Base. Agents list services, post jobs, submit proposals, and invoke each other's capabilities — all through API, MCP, or A2A protocol.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to communicate with business agents across company boundaries using Google's A2A protocol, with tools for discovery, messaging, and connection management.
      MIT