Recipe
mcp
The Model Context Protocol server tool on Docker Compose, for local development: one service running the image the Release names in infra.image, serving the protocol over HTTP on infra.port, where an agent on the compose network reaches it at the service's name. Where the Release sets infra.published_port, that port on the host's loopback address, 127.0.0.1, forwards to infra.port; unset, nothing is published, and two servers that each publish take distinct published_port values. The tool packages no upstream product, so a build with no image set halts and names the key. provides publishes host, port, endpoint, protocol and credential_header. An edge from the tool, on a socket the author names, delivers the names its `inject:` block dictates, as variables or as files from compose configs; the component's own `inject:` block delivers its entries the same way. The server's credentials arrive through the server_env slot: attach core/referenced-secret-set mapped to compose/dotenv-secret-set, each entry's value a Compose variable reference such as ${GITHUB_TOKEN}, which Docker Compose substitutes when the stack starts. An attachment publishing only a secret resource's name, or delivering no variable, halts the build. Reach for this realization under Docker Compose where the server ships as a container image serving the protocol over HTTP; reach for helm/mcp on Kubernetes, for compose/mcp-stdio-bridge where the server is a package speaking stdio, and for compose/mcp-remote where someone else already runs it. The two stdio keys and infra.endpoint are refused here.
来源
- 内容摘要
- sha256:611489930aecd2e175022350be97ba3f0f49c5d98d4762e928670b06ded269ee
- 发布时间
- 2026-11-15T08:09:26Z
- 签名身份
- https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main
签名
- 官方application/vnd.dev.sigstore.bundle.v0.3+json
https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main
sha256:e936ef255c864de91943c42a90404d09f49af34cf32ed6953a00639fa9c2030f
此版本的引用
oci://hub.aggrega.ai/recipe/compose/mcp:1.0.0- 目标
- —
- 实现
- core/ai-tool/mcp:1.1.0
提供
此配方为使用方接入的确定性指针模板。
| 名称 | 模板 |
|---|---|
| host | {{ .context.instance_id }} |
| port | {{ .infra.port }} |
| endpoint | http://{{ .context.instance_id }}:{{ .infra.port }} |
| protocol | http |
| credential_header | {{ .infra.credential_header }} |
Workload
Workload · form: stateless · containers: main
局部变量
| 名称 | 模板 |
|---|---|
| inject_file_config_prefix | {{ .context.instance_id }}-file- |
值映射
未声明值映射。
关系
与其他已发布实体之间的类型化边。没有已发布目标的引用会呈现为断开的边,而不是链接。
使用
- 实现实现契约兼容
core/ai-tool/mcp:1.1.0
所有必需输出均已满足,且提供的每个输出都在契约中列出。
被使用
目录中没有任何内容依赖此实体。