AI Agent News/stories/coral-open-source-gateway-where-agents-write-and-save-their-own-tools.md

MCP

Coral: open-source gateway where agents write and save their own tools

Coral is an open-source, self-hosted gateway that sits between AI agents and the enterprise systems they use, and it is shown on Hacker News as a Show HN project. Agents call tools by writing short TypeScript programs, and Coral checks each call against a policy before adding credentials and forwarding it.

Source: github.com/withcoral/coral

Coral is an open-source, self-hosted gateway between agents and the systems they work on. Agents call tools by writing short TypeScript programs, and Coral checks each call against a workspace policy before it adds credentials and forwards the call. Policies can set Allow, Ask or Block for each tool, and a run can pause until a person approves a call.

Programs that work can be saved as custom tools, which agents call again in one step, and workspace owners can share them with the team. The project says custom tools can hold rules that plain MCP tool permissions cannot, such as changing one field only on stale tickets. Coral is written in Rust and runs as a desktop app on macOS, Windows and Linux, or as a shared server deployed with Docker Compose or Kubernetes.

In its own benchmarks of 34 tasks on GitHub, Linear and Slack using Opus 5.5, Coral reports that custom tools cut tokens by 37%, cost by 31% and time by 29%. The code is licensed under Apache 2.0, and a separate Enterprise edition is listed as coming soon.

Why it matters if you build agents

If your agents touch internal systems, Coral enforces permissions on each call rather than only controlling which tools an agent can see. Saved programs can replace steps an agent would otherwise rebuild each run, though the efficiency figures are the project's own. Each run also leaves a structured trace that the project suggests can be used for post-training a model.

Get stories like this every weekday

One short email with the day's agent tooling news.

Subscribe