跳到正文
FunCoding

forall-mcp

Forall (∀) is a coding harness from Astrio that helps developers build correct software by generating spec-driven code alongside machine-checkable proofs.

Star
492
许可证
Apache-2.0
最近提交
2026年11月24日

Forall (∀) is Astrio’s coding agent for building provably correct software.

Forall CLI

License: Apache-2.0 Discord Follow on X

Why Forall exists

Review has always been the bottleneck in software. It is now the failure point, because code is produced faster than anyone can check it. Tests sample a handful of inputs. Types constrain shape. Neither tells you whether the code does what it was supposed to do.

Formal verification answers that question, as far as your specification states it, and it never failed on capability. Provers have been checking real programs for years. What kept them out of ordinary engineering was adoption cost. Writing the specifications, contracts and invariants a prover needs was more tedious than writing the code itself. That is precisely the work language models are now good at. The barrier was labour, and labour just got cheap.

Evidence can therefore become a build artifact rather than something reconstructed by hand long after the code is done. Regulated work already depends on it. Standards such as IEC 62304 and DO-178C require traceability from each requirement to the verification that discharges it. Mission-critical code should carry that evidence the way a paper carries its references, attached to the specific claim it supports.

A green mark that lies is worse than no mark. A proof is only as strong as the contract it discharges, and property testing only samples. Those differences matter, so Forall reports four levels of evidence instead of a pass and a fail, grading every requirement by the strongest evidence a machine actually produced, never by what was claimed.

Two ways to use Forall

1. Build the Forall CLI

The terminal agent is derived from OpenAI Codex. It can edit your repository, author specs and contracts, and run local verification.

On Linux, install the build dependencies and Bubblewrap for sandboxed commands before building. See the platform prerequisites.

git clone https://github.com/astrio-labs/forall.git
cd forall/agent
cargo build --locked -p forall-cli --bin forall
export PATH="$PWD/target/debug:$PATH"

In the Git project you want to work on, run forall init and then forall. Choose Bring your own API key to use your model provider. Run forall check to check the project locally. See the build and proof-tool prerequisites.

2. MCP verify-only

Stay on Cursor, Claude Code, or any MCP client — add hosted verification via MCP. Do not install the CLI.

  1. Create an API key at forall.astrio.app/dashboard
  2. Add to your MCP client:
{
  "mcpServers": {
    "forall": {
      "command": "npx",
      "args": ["-y", "@astrio/forall-mcp"],
      "env": {
        "FORALL_API_KEY": "forall_..."
      }
    }
  }
}

Your coding agent edits the workspace from verify reports. See docs/getting-started.md and docs/hosted-mcp.md.

Supported programming languages

Forall grades every requirement by the strongest evidence a machine actually produced for it. Not every rung is reachable in every language, because the rung depends on the tool behind it:

Spec trackedProperty testedContractedProved
TypeScript✓✓✓✓
Python✓✓✓✗
Rust✓✗✓✓
Java✓✗✓✓
C✓✗✓✓
  • Spec tracked — a requirement cites this code.
  • Property tested — a generator ran over many inputs and found no counterexample. Statistical evidence, honestly ranked below a proof.
  • Contracted — a machine-checkable contract is written against the code, but nothing has confirmed it yet.
  • Proved — a prover discharged that contract's obligations.

We are expanding to more languages, and to filling in more of this table for the languages already listed, based on demand.

Connect

Join our Discord and X communities.

License

This repository is licensed under the Apache-2.0 License.

同类 MCP Server

官方

Git

Read, search and manipulate Git repositories: status, diff, log, commit, branch and more

MOmodelcontextprotocol/servers92k近 7 天新增 200 个 star

精选

headroom

压缩工具输出、日志和文件,减少 20%-95% token,答案不变。

HEheadroomlabs-ai/headroom81k近 7 天新增 538 个 star

精选

Codebase Memory

把代码库索引成知识图谱,查询代码结构时少读文件、省 token。

DEDeusData/codebase-memory-mcp49k近 7 天新增 309 个 star

精选

GitHub

管理仓库、Issue、Pull Request 和 Actions。

GIgithub/github-mcp-server35k近 7 天新增 181 个 star

精选

serena

基于语言服务器的语义检索与编辑,按符号查找和修改代码。

ORoraios/serena32k近 7 天新增 209 个 star

Compiler Explorer

Compile code with thousands of compilers, inspect the assembly, and share godbolt.org links

COcompiler-explorer/compiler-explorer19k近 7 天新增 7 个 star