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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@agent-dispatch/adapter-aws-agentcore

v0.1.5

Published

AWS Bedrock AgentCore backend adapter for AgentDispatch.

Readme

@agent-dispatch/adapter-aws-agentcore

npm CI license

  • provider: "aws"
  • capability: "agent-runtime"
  • taskType: "agent.run" through InvokeAgentRuntime
  • taskType: "command.run" through InvokeAgentRuntimeCommand
  • target modes session and runtime

AWS AgentCore runtime adapter for AgentDispatch. This is the first production adapter: it lets a lead agent call one MCP tool, spawn an AWS-hosted cloud subagent, poll durable status, and continue interaction through returned runtime metadata.

Supported capabilities

  • Provider: aws
  • Capability: agent-runtime
  • Task types: agent.run, command.run
  • Target modes:
    • session — invoke a configured AgentCore runtime ARN and create/use an isolated runtime session.
    • runtime — create an AgentCore runtime from a prebuilt ECR image, run the task, and clean up by default.
  • Runtime protocols: a2a, mcp, ag-ui, http

How it maps to AgentCore

AgentDispatch request | AWS AgentCore behavior --- | --- agent.run | Invokes the runtime with a structured agent instruction payload. command.run | Invokes the runtime with a command payload for worker-style tasks. target.mode = "session" | Uses an existing runtimeArn from adapter config or target details. target.mode = "runtime" | Creates runtime resources from ecrImageUri and executionRoleArn. protocol = "a2a" | Configures runtime protocol hints and maps the first agent message to JSON-RPC message/send. get_task_logs | Reads provider-neutral event mappings from AgentCore streaming chunks.

Configuration

Use standard AWS credentials outside MCP, for example AWS SDK default credentials, SSO, environment variables, or role-based credentials.

{
  "accounts": {
    "dev-aws": {
      "provider": "aws",
      "region": "us-west-2",
      "credentialSource": "aws-sdk-default"
    }
  },
  "adapters": {
    "aws-agentcore": {
      "region": "us-west-2",
      "runtimeArn": "arn:aws:bedrock-agentcore:us-west-2:123456789012:runtime/my-runtime",
      "protocol": "a2a"
    }
  }
}

Runtime provisioning mode:

{
  "adapters": {
    "aws-agentcore": {
      "region": "us-west-2",
      "ecrImageUri": "123456789012.dkr.ecr.us-west-2.amazonaws.com/agentdispatch-worker:latest",
      "executionRoleArn": "arn:aws:iam::123456789012:role/AgentDispatchAgentCoreRole",
      "protocol": "a2a"
    }
  }
}

Spawn from MCP

{
  "provider": "aws",
  "account_profile": "dev-aws",
  "capability": "agent-runtime",
  "task_type": "agent.run",
  "target": {
    "mode": "session",
    "protocol": "a2a"
  },
  "input": {
    "instruction": "Review this pull request and produce a risk report.",
    "model": {
      "id": "anthropic.claude-3-5-sonnet-20241022-v2:0"
    },
    "tools": [
      {
        "name": "repo_search",
        "description": "Search indexed repository files."
      }
    ]
  }
}

The response includes cloud_agent details such as protocol, provider, runtime session ID, runtime ARN, AgentCore invocation URL, A2A Agent Card URL, and the required session header. A lead agent can use that data to continue with A2A where supported by the runtime.

Continue With A2A

Use sendAwsAgentCoreA2AMessage when you want the lead agent or application code to continue the same AgentCore runtime session after spawn_cloud_agent returns:

import { sendAwsAgentCoreA2AMessage } from "@agent-dispatch/adapter-aws-agentcore";

const followUp = await sendAwsAgentCoreA2AMessage(task.cloudAgent!, {
  text: "Continue the investigation and focus on IAM findings."
});

console.log(followUp.text);

The helper uses the AWS SDK default credential chain. It reads agentRuntimeArn, runtimeSessionId, qualifier, content type, and accept headers from cloudAgent.invocation, sends a JSON-RPC message/send payload through InvokeAgentRuntime, and returns normalized text plus metadata.

Worker image

For a ready reference runtime, use @agent-dispatch/worker-agentcore. It exposes health, Agent Card discovery, and A2A JSON-RPC message/send endpoints suitable for AgentCore runtime experiments.

Development

npm install
npm run typecheck
npm test
npm run build

See the release workflow for npm Trusted Publisher setup, provenance publishing, and upstream package order.