edict

Edict MCP Server

Edict gives AI agents a JSON AST programming workflow through MCP tools for checking, repairing, compiling, and running code. It combines type and effect checks with Z3 contract verification, WebAssembly execution, and portable skill packaging.

Server facts

edict MCP Server

Project

Author
Sowiedu
License
Not specified

Tech

Runtime / language
Not specified
Transports
stdio
Remote available
No
Authentication
Not specified

Activity

GitHub stars
13
Last commit
Data as of

Overview

Edict treats JSON ASTs as the program format, letting AI agents construct code without a textual language parser. Agents can retrieve a schema and examples, validate an AST’s structure, then check names, types, declared effects, and contracts. Contract checks use Z3 and can return counterexamples when verification fails. Structured errors support a repair cycle: edict_explain supplies repair context, while edict_patch changes selected nodes and checks the result again. For programs assembled incrementally, edict_compose joins fragments according to their declared provisions and requirements. Lint warnings provide a separate, non-blocking review of code quality.

Once checked, programs can be compiled into WebAssembly and executed with edict_run. Host adapters mediate access to capabilities such as files and networking, while optional limits control execution time, memory, and the sandbox directory. Debug instrumentation reports crash locations and call stacks; recorded host responses support deterministic replay. Other tools derive tests from verified contracts or counterexamples, package programs as portable skills, and verify package checksums before execution. Deployment tooling can return a WebAssembly binary with metadata or generate a Cloudflare Worker bundle, and edict_invoke sends HTTP requests to a deployed service.

edict setup notes

  • edict records stdio only; confirm a network transport upstream before planning remote access.
  • edict has no recorded license; confirm reuse terms in its repository.

Related MCP servers