# Coral 让 Agent 编写 TypeScript 程序调用工具并按策略放行

- 原标题：Show HN: Coral – Open-source gateway where agents write their own tools
- 类型：项目 · 能力
- 来源：GitHub
- 发布时间：2026-04-04
- 首次精选：2026-11-22 09:38
- 分级：值得看
- 是否付费：免费（公开仓库）
- 预估学习时长：未知
- 学习层级：进阶
- 主题：[agent-permissions-sandboxing](<https://oplearnx.com/md/topics/agent-permissions-sandboxing.md>)（第 7 位）、[agents-tool-use](<https://oplearnx.com/md/topics/agents-tool-use.md>)（第 22 位）
- 原文链接：[https://github.com/withcoral/coral](<https://github.com/withcoral/coral>)
- 本站页面：[https://oplearnx.com/resources/pk\_e33a181365f2](<https://oplearnx.com/resources/pk_e33a181365f2>)

## 摘要

Coral 是开源可自托管的网关，部署在 Agent 与它操作的企业系统之间。Agent 通过编写简短的 TypeScript 程序调用工具，并把可用的代码保存为自定义工具复用；Coral 在注入凭证并转发请求前按策略校验每次调用，为 Agent 分配精确权限，从而以更少 token 完成操作。适合需要让 Agent 接入敏感企业系统并控制权限的开发者阅读。

## 热度

- 档位：有热度
- 7 天新增 star：+4
- 30 天新增 star：暂无数据
- Hacker News：[52 分 · 24 条评论](<https://news.ycombinator.com/item?id=50517803>)
- 社区讨论：1 帖

## 项目信息

- 语言：Rust
- 许可：Apache-2.0
- 最近提交：2026-11-28
- Star：5029
- Fork：230

## 上手方式

```bash
    claude mcp add --scope user --transport http coral <your-mcp-url>   # Claude Code
    codex mcp add coral --url <your-mcp-url>                            # Codex
```

摘自 [README](<https://github.com/withcoral/coral/blob/main/README.md>)

## 推荐信源

- [Hacker News](<https://news.ycombinator.com/item?id=50517803>)（2026-11-16）

---
来源：LearnMap · 学径（https://oplearnx.com）
