dgenio avatar

ChainWeaver

dgenio/chainweaver

Converts repetitive agent tool chains into deterministic flows that skip the LLM calls between steps. You wrap Python functions as Pydantic-validated Tools, wire them into Flow objects with explicit input mappings, then execute the entire sequence without model round-trips. The FlowExecutor runs schema-validated steps in order and logs structured traces. Useful when your agent keeps executing the same search-extract-validate-format pattern and you want to compile it once instead of burning tokens and latency on per-step routing. The benchmark report claims zero data corruption versus 61-96% for naive chaining, though that's the consequence, not the reason to use it. Ships with YAML serialization, a flow registry, and a ChainAnalyzer that surfaces repeated tool paths from your agent logs.

GitHub stars
6
tools
6
transport
STDIO
last updated
Jun 8, 2026

Tools

6 tools

Public tool metadata for what this MCP can expose to an agent.

passthroughIdentity — return the context unchanged.

Identity — return the context unchanged.

No parameter schema in public metadata yet.

json_pluckExtract one value by RFC-6901 JSON pointer.

Extract one value by RFC-6901 JSON pointer.

No parameter schema in public metadata yet.

json_setSet one value by RFC-6901 JSON pointer; returns a new dict.

Set one value by RFC-6901 JSON pointer; returns a new dict.

No parameter schema in public metadata yet.

assert_equalRaise ContribError when two context keys differ.

Raise ContribError when two context keys differ.

No parameter schema in public metadata yet.

map_listApply a registered sub-flow to each element of a list.

Apply a registered sub-flow to each element of a list.

No parameter schema in public metadata yet.

filter_listDrop elements whose predicate sub-flow returns falsy.

Drop elements whose predicate sub-flow returns falsy.

No parameter schema in public metadata yet.

Sponsors

Readme

ChainWeaver

Find where your agent no longer needs to reason. Review the evidence. Turn the accepted path into a governed deterministic capability.

PyPI CI Python License Open in Colab Read the Weaver Stack overview on Towards AI


View the full README on GitHub

Details

Repository
github.com/dgenio/chainweaver
Category
AI & LLM Tools
Package
chainweaver
Transport
STDIO
Registry
MCP registry, active

Related AI & LLM Tools MCP servers

View all
1es617 avatarDbgprobe Mcp Serveres617/dbgprobe-mcp-serverLet AI agents interact with debug probes — connect, flash, read/write memory, and reset.6stars
2continuum-ai-corp avatarOrcaRoutercontinuum-ai-corp/orcarouter-mcp-serverBrowse 160+ LLM models and live pricing — no API key needed for catalog. Add key to route chat.6stars
3vouchlyai avatarPincervouchlyai/pincer-mcpSecure grip for your agent's secrets - security-hardened MCP gateway with proxy token architecture6stars
4ksimback avatarHermes Atlas Mcpksimback/hermes-atlas-mcpSearch and fetch 100+ Hermes Agent tools, skills, plugins, and integrations from hermesatlas.com.6stars
5nk3750 avatarJitapink3750/jitapiTurn any OpenAPI spec into an executable agent interface using graphs and semantic search.6stars
6agentcentral-to avatarAgent Centralagentcentral-to/agent-central-mcpHosted Amazon Seller Central and Amazon Ads MCP server for Claude, ChatGPT, Cursor, and agents.6stars