Skip to content
Back to projects08 / Agent tooling / typed actions

ActionMesh

ActionMesh is a framework-agnostic TypeScript registry that keeps an operation’s schema, implementation and failure contract in one place while transports stay thin.

ActionMesh visual system artwork
ACTIONMESH / system view
StackTypeScript · Zod
StatusPublic · v0.2.1
Year2026
LicenseMIT
01 / OVERVIEW

The problem

A useful capability is often reimplemented as a backend route, agent tool, MCP handler and CLI script. Those copies gradually disagree on validation, errors, retries and behavior.

02 / APPROACH

How I approached it

  1. 01Define the operation once with a typed input contract, optional output contract and one run function.
  2. 02Keep machine-readable failure codes and retryability beside the action itself.
  3. 03Make MCP-style, HTTP and CLI surfaces thin translation adapters.
  4. 04Stay framework-agnostic so the action layer can sit inside an existing application rather than replace it.
03 / WHAT SHIPPED

Key features

  • Typed defineAction contracts
  • Zod input validation
  • Optional output validation
  • Machine-readable errors
  • Explicit retry semantics
  • MCP-style tool adapter
  • Node HTTP handler
  • CLI invocation helper
05 / SYSTEM MAP

Architecture

Core
TypeScript
Contracts
Zod schemas
Execution
Single action registry
Surfaces
Agent · MCP-style · HTTP · CLI
Failures
Typed codes + retryability
License
MIT
06 / PRINCIPLES

What ACTIONMESH is built to preserve.

  • One implementation per capability
  • Adapters translate; they do not own business logic
  • Invalid input never reaches the action body
  • Retry behavior should be explicit rather than inferred from prose
07 / FAQ

Useful answers, without the hunt.

Is ActionMesh another agent framework?

No. It intentionally does not own the model loop, UI, database or queue. It is a small shared-action layer designed to fit inside those systems.

Is its MCP support the official protocol transport?

The current v0.2.0 includes an MCP-style listTools/callTool adapter. An official @modelcontextprotocol/sdk transport is on the roadmap and is not claimed as shipped yet.

What surfaces does ActionMesh support today?

The current project includes the core action registry plus MCP-style tool, Node HTTP and CLI invocation adapters around the same action contracts.

NEXT BUILD / 09

Yashkhou Verify

Open-source verification infrastructure for AI-generated artifacts, agent-written code and safer reversible actions.

Keep exploring
Yashkhou Verify visual system artwork