{"id":50037652,"url":"https://github.com/jasonfinestone/runspec","last_synced_at":"2026-06-10T22:00:41.845Z","repository":{"id":358289626,"uuid":"1240719347","full_name":"JasonFinestone/runspec","owner":"JasonFinestone","description":"A language-agnostic, TOML-based interface specification for anything runnable — scripts, applications, and MCP tools — readable by humans and AI agents without conversion.","archived":false,"fork":false,"pushed_at":"2026-06-04T07:02:52.000Z","size":27528,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-04T07:25:00.938Z","etag":null,"topics":["agents","argparser","arguments","cli","mcp","mcp-server","tools"],"latest_commit_sha":null,"homepage":"https://jasonfinestone.github.io/runspec/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JasonFinestone.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"docs/agents.md","dco":null,"cla":null}},"created_at":"2026-05-16T13:36:39.000Z","updated_at":"2026-06-04T06:43:06.000Z","dependencies_parsed_at":"2026-05-22T02:02:03.926Z","dependency_job_id":null,"html_url":"https://github.com/JasonFinestone/runspec","commit_stats":null,"previous_names":["jasonfinestone/runspec"],"tags_count":117,"template":false,"template_full_name":null,"purl":"pkg:github/JasonFinestone/runspec","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasonFinestone%2Frunspec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasonFinestone%2Frunspec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasonFinestone%2Frunspec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasonFinestone%2Frunspec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JasonFinestone","download_url":"https://codeload.github.com/JasonFinestone/runspec/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasonFinestone%2Frunspec/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34172196,"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-06-10T02:00:07.152Z","response_time":89,"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":["agents","argparser","arguments","cli","mcp","mcp-server","tools"],"created_at":"2026-05-21T01:14:28.764Z","updated_at":"2026-06-10T22:00:41.776Z","avatar_url":"https://github.com/JasonFinestone.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# runspec\n\n\u003e A language-agnostic, TOML-based interface specification for anything runnable —\n\u003e scripts, applications, and MCP tools — readable by humans and AI agents without conversion.\n\n[![Python](https://img.shields.io/pypi/v/runspec?label=pip%20install%20runspec)](https://pypi.org/project/runspec)\n[![Node](https://img.shields.io/npm/v/runspec-node?label=npm%20install%20runspec-node)](https://www.npmjs.com/package/runspec-node)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\n[![CI](https://github.com/JasonFinestone/runspec/actions/workflows/python.yml/badge.svg)](https://github.com/JasonFinestone/runspec/actions)\n[![Docs](https://img.shields.io/badge/docs-mkdocs-blue)](https://JasonFinestone.github.io/runspec)\n\n---\n\n## The Problem\n\nArgument definitions are buried in code. `argparse` configs require reading Python.\nClick and Typer decorators are better but still code-first. When AI agents need to\ninvoke a script as a tool, the interface has to be re-described in a separate skills\nfile — duplicating what already exists.\n\n**The insight:** an interface definition *is* a skill description. If you know something\naccepts `--input-file`, `--model`, and `--output-format [json|csv]`, you already know\nhow to invoke it as an agent tool, render it as a form, or generate an implementation.\n\n## The Solution\n\nA single `runspec.toml` that lives inside your package directory alongside your code —\nthe single source of truth for documentation, validation, agent tool schemas,\nform rendering, and autonomy policy.\n\n## Quick Start\n\nPython:\n\n```bash\npip install runspec\n```\n\nNode:\n\n```bash\nnpm install runspec-node\n```\n\nAdd your runnable's interface to `mypkg/runspec.toml`:\n\n```toml\n[greet]\ndescription = \"Greet someone from the command line\"\nautonomy    = \"autonomous\"\n\n[greet.args]\nname  = {type = \"str\"}\nloud  = {default = false}\ntimes = {default = 1}\n```\n\nUse it in your runnable (Python):\n\n```python\nfrom runspec import parse\n\ndef main():\n    args = parse()\n    message = f\"Hello, {args.name}!\"\n    if args.loud:\n        message = message.upper()\n    for _ in range(args.times):\n        print(message)\n```\n\nOr in Node/TypeScript:\n\n```typescript\nimport { parse } from 'runspec-node';\n\nfunction main() {\n  const args = parse();\n  let message = `Hello, ${args.name}!`;\n  if (args.loud) message = message.toUpperCase();\n  for (let i = 0; i \u003c (args.times as number); i++) console.log(message);\n}\nmain();\n```\n\nMake it agent-discoverable:\n\n```bash\nrunspec local --format mcp\n```\n\nThat's it. Your runnable is now a typed, validated, agent-callable tool.\n\n---\n\n## Features\n\n- **Spec first** — write the interface before the implementation\n- **Zero boilerplate** — one import, one `parse()` call\n- **Rich return object** — every arg carries its full metadata alongside its value\n- **Inference over declaration** — type, required, and choice inferred from context\n- **Enforced priority stack** — CLI → env → config → default, automatically\n- **Autonomy control** — declare whether agents can run freely, need confirmation, or must ask\n- **Form rendering** — spec maps directly to MCP chat-native forms\n- **Agent discovery** — `runspec local` finds all runspec-aware tools in the environment\n- **Language agnostic** — same format for Python, Node, shell, or any language\n\n## Repository Structure\n\nThis is a mono-repo containing all official runspec language packs:\n\n| Package | Install | Status |\n|---|---|---|\n| `runspec` (Python) | `pip install runspec` | Active — 0.11.0 on PyPI |\n| `runspec-node` | `npm install runspec-node` | Active — 0.10.0 on npm |\n| `runspec-go` | `go get github.com/JasonFinestone/runspec/go` | Planned |\n| `runspec-chat` | `pip install \"runspec-chat[anthropic]\"` | Active — 0.4.0 on PyPI |\n\n## Documentation\n\n- [Documentation site](https://JasonFinestone.github.io/runspec) — full guides for CLI developers and agent integrators\n- [Format Specification](spec/SPEC.md) — canonical reference\n- [Changelog](CHANGELOG.md)\n- [Design Document](DESIGN.md)\n- [Contributing](CONTRIBUTING.md)\n\n## License\n\nMIT — see [LICENSE](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonfinestone%2Frunspec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasonfinestone%2Frunspec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonfinestone%2Frunspec/lists"}