{"id":51429301,"url":"https://github.com/ynishi/mlua-swarm","last_synced_at":"2026-07-05T03:00:59.096Z","repository":{"id":369332018,"uuid":"1289177989","full_name":"ynishi/mlua-swarm","owner":"ynishi","description":"Long-running swarm engine that compiles flow.ir Blueprints and dispatches agent steps to workers (in-process Lua / Rust fn / child process / interactive Operator). HTTP + WS server + MCP adapter.","archived":false,"fork":false,"pushed_at":"2026-07-04T18:39:31.000Z","size":368,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-04T19:14:26.716Z","etag":null,"topics":["blueprint","flow-ir","lua","mcp","rust","swarm"],"latest_commit_sha":null,"homepage":"https://github.com/ynishi/mlua-swarm","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ynishi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-07-04T12:23:40.000Z","updated_at":"2026-07-04T18:37:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ynishi/mlua-swarm","commit_stats":null,"previous_names":["ynishi/mlua-swarm"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ynishi/mlua-swarm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ynishi%2Fmlua-swarm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ynishi%2Fmlua-swarm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ynishi%2Fmlua-swarm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ynishi%2Fmlua-swarm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ynishi","download_url":"https://codeload.github.com/ynishi/mlua-swarm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ynishi%2Fmlua-swarm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35141966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-05T02:00:06.290Z","response_time":100,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blueprint","flow-ir","lua","mcp","rust","swarm"],"created_at":"2026-07-05T03:00:58.136Z","updated_at":"2026-07-05T03:00:59.068Z","avatar_url":"https://github.com/ynishi.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mlua-swarm\n\nA long-running swarm engine host that compiles `flow.ir` Blueprints and\ndispatches their agent steps to workers. A Blueprint declares a `flow`\n(step / seq / branch / loop / fanout / try / assign nodes) plus the\n`agents` it references; the engine resolves each agent to a backend\n(in-process Lua, a Rust function, a child process, or an interactive\nOperator) and drives the flow while recording task state.\n\n## Install\n\n```bash\ncargo install mlua-swarm-cli\n```\n\nThis installs the `mse` binary with two subcommands:\n\n```bash\nmse serve   # HTTP + WS server (tasks, Blueprint store, WS Operator sessions)\nmse mcp     # MCP adapter over stdio, for AI agents (Claude Code etc.)\n```\n\nOne-shot Blueprint execution is available through the `swarm_run` MCP tool\n(exposed by `mse mcp`), which runs through the canonical\n`TaskApplication.handle` / `TaskLaunchService::launch` path.\n\nMCP client config:\n\n```json\n{ \"command\": \"mse\", \"args\": [\"mcp\"] }\n```\n\n#### Docker (no Rust toolchain required)\n\nAlso listed on the [MCP Registry](https://registry.modelcontextprotocol.io)\nas `io.github.ynishi/mlua-swarm`:\n\n```json\n{\n  \"mcpServers\": {\n    \"mlua-swarm\": {\n      \"command\": \"docker\",\n      \"args\": [\n        \"run\", \"-i\", \"--rm\",\n        \"ghcr.io/ynishi/mse:latest\",\n        \"mcp\"\n      ]\n    }\n  }\n}\n```\n\n## Documentation\n\nDocumentation is served from the code itself:\n\n- **API / architecture** — rustdoc on [docs.rs](https://docs.rs/mlua-swarm)\n  (the crate root doc is the architecture overview).\n- **Guides / samples / schema** — bundled MCP resources under `mse://`,\n  served by `mse mcp` and always version-matched to the binary:\n  `mse://guides/getting-started`, `mse://guides/blueprint-authoring`,\n  `mse://guides/mcp-tool-reference`, `mse://blueprints/samples/*`, and\n  the live Blueprint JSON Schema at `mse://api/blueprint-schema`\n  (also available as the `bp_schema` tool).\n\n## Workspace crates\n\n| crate | role |\n|---|---|\n| `mlua-swarm` | engine core (workspace root package) |\n| `mlua-swarm-schema` | Blueprint schema types |\n| `mlua-swarm-server` | HTTP + WS server library |\n| `mlua-swarm-cli` | the `mse` binary |\n\n## License\n\nLicensed under either of [Apache License 2.0](LICENSE-APACHE) or\n[MIT License](LICENSE-MIT) at your option.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fynishi%2Fmlua-swarm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fynishi%2Fmlua-swarm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fynishi%2Fmlua-swarm/lists"}