Fsm
БесплатноНе проверенDeterministic hierarchical statechart engine with a tamper-evident journal and exact decimal arithmetic. Zero dependencies. Usable as a Rust library, a CLI, or
Описание
Deterministic hierarchical statechart engine with a tamper-evident journal and exact decimal arithmetic. Zero dependencies. Usable as a Rust library, a CLI, or an MCP server for LLM-driven workflows.
README
fsm is a deterministic, auditable statechart engine that gives LLMs a workflow substrate: the model translates intent into machines, the engine guarantees the semantics — one event, one transition, a tamper-evident journal, and errors that teach the fix.
60-second demo
cargo install --path crates/fsm-cli --locked
fsm validate examples/expense_approval.json
fsm machine add examples/expense_approval.json
fsm instance new expense_approval --request-id demo
fsm instance send inst-demo submit --payload '{"amount":"10.00"}' --request-id demo-submit
fsm instance history inst-demo
Install
cargo install --path crates/fsm-cli --locked
Embedding it
fsm is three crates. Depend on the one you need — the CLI binary is not a
library:
| Crate | Use it for |
|---|---|
fsm-core |
the pure engine: parse, compile, analyse, step, and poll caller-timed deadlines. No I/O, no clock. |
fsm-store |
the durable journal-backed store, if you want ours rather than yours. |
fsm-cli |
the fsm binary and MCP server. Not a supported library dependency. |
fsm-core = { git = "https://github.com/koraytaylan/fsm", tag = "<release-tag>" }
Replace <release-tag> with an exact annotated tag from the repository's
Releases page; never substitute a branch.
See docs/EMBEDDING.md for the library loop, the Store
concurrency contract with measured latencies, and the guarantees an embedder
should know; docs/API-POLICY.md for semver and formats.
MCP setup
Claude Code:
claude mcp add fsm -- fsm serve
Claude Desktop mcpServers JSON:
{"mcpServers":{"fsm":{"command":"fsm","args":["serve"]}}}
Guarantees
| Guarantee | What it means |
|---|---|
| total order | journal records are a single sequence |
| one-event-one-transition | at most one transition fires per send |
| deterministic regions | parallel regions share one document-ordered global winner; no broadcast |
| explicit deadlines | caller-supplied time plus an explicit poll applies at most one due deadline |
| pure core | fsm-core has no I/O, clock, or HashMap |
| no floats | no f32/f64 in the engine |
| explicit rounding | decimal scale and mode are always stated |
| deterministic choice | document order plus innermost-first |
| atomic transitions | core operations are pure; the shell mutates logical instance state only for Applied and journals other state-dependent outcomes |
| content-addressed definitions | machine_id is a hash of the spec |
| deterministic identifiers | ids derive from content and the injected clock |
| exact idempotency | the same request_id never applies twice; reusing it for different content is refused, not replayed |
| tamper-evident history | hash-chained, fsynced records |
| time as data | the clock is injected; event stamps and deadline polls are explicit inputs |
| bounded computation | a shared eval budget per create, event, deadline poll, or enabled-event scan; accepted definitions fit it by construction |
| platform independence | no OS-specific semantics in core |
| crash safety | torn tails are classified and repaired |
| auditable implementation | zero dependencies, no unsafe |
Honest non-claims: this is a single-node single-writer engine. There is no HA/replication or autonomous real-time scheduler; a deadline fires only when a caller polls. The throughput ceiling is a feature.
See docs/SPEC.md, docs/EXAMPLES.md, docs/EMBEDDING.md, docs/API-POLICY.md, and docs/RELEASE.md.
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Установка Fsm
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/koraytaylan/fsmFAQ
Fsm MCP бесплатный?
Да, Fsm MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Fsm?
Нет, Fsm работает без API-ключей и переменных окружения.
Fsm — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Fsm в Claude Desktop, Claude Code или Cursor?
Открой Fsm на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzMCP-Agent
A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
автор: lastmile-aiSpring AI MCP Client
Provides auto-configuration for MCP client functionality in Spring Boot applications.
mcp.natoma.ai
A Hosted MCP Platform to discover, install, manage and deploy MCP servers by [Natoma Labs](https://www.natoma.ai)
MCPHub
Website to list high quality MCP servers and reviews by real users. Also provide online chatbot for popular LLM models with MCP server support.
MCP Servers Rating and User Reviews
Website to rate MCP servers, write authentic user reviews, and [search engine for agent & mcp](http://www.deepnlp.org/search/agent)
mkinf
An Open Source registry of hosted MCP Servers to accelerate AI agent workflows.
Compare Fsm with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
