Alpha v1.0.0-alpha.5

The API runtime built for MCP

Deploy. Configure. Ship.

Shape the API once. MCP, REST, docs, OpenAPI, and OpenTelemetry come with it.

~/acme-api
$ charter dev

Charter v1.0.0-alpha.5 (dev)
✓ REST      http://localhost:3000/v1
✓ OpenAPI   http://localhost:3000/openapi.json
✓ Docs      http://localhost:3000/docs
✓ LLMs      http://localhost:3000/llms.txt
✓ MCP       http://localhost:3000/mcp
✓ MCP API   http://localhost:3000/v1/mcp
✓ Worker    queues: default, imports, webhooks

Seeded a control-plane admin (shown once):
  email     [email protected]
  password  xXxExamplePass01
  api key   crt_example

curl \
  -H "authorization: Bearer crt_example" \
  http://localhost:3000/registry/resources

listening on http://127.0.0.1:3000
starting embedded queue worker
queue.worker: started

MCP to build, MCP to serve.

Shape the schema over Admin MCP. Agents then call those resources over Resource MCP, under the same roles as REST.

Admin MCP, then Resource MCP
# Admin MCP  tools/call create_resource
{ "name": "properties", "description": "Real estate property listings" }

# Resource MCP  tools/call get_record
{ "table": "properties", "id": "a712dcba-…" }

Keep the definition in git when you want.

Export to charter.toml for portability and GitOps. Apply it when the file should become the live API. Skip it when MCP, the CLI, or HTTP is enough.

charter.toml
[[resources]]
name = "properties"
description = "Real estate property listings"

[[resources.fields]]
field = "title"
required = true
searchable = true
validations = [{ rule = "minLength", value = 3 }]

[[resources.fields]]
field = "price"
required = true
sortable = true

# … more fields and resources

[[permissions]]
resourceName = "properties"
role = "agent"
action = "update"
fields = ["title", "price", "status"]
filters = [{ field = "listed_by", operator = "eq", claim = "id" }]

Roles and permissions.

Give a role one action on one resource, with field and row limits. REST and MCP enforce it on every request.

charter.toml
[[permissions]]
resourceName = "properties"
role = "agent"
action = "update"
fields = ["title", "price", "status"]
filters = [{ field = "listed_by", operator = "eq", claim = "id" }]

Once the runtime is up

Deploy the runtime. Shape the API.

Configure over MCP, the CLI, or HTTP. Put the definition in charter.toml when you want it in version control. The same binary runs charter dev locally and charter serve in production.

then run charter dev