Component
core/ai-agent/mastra
An agent built on Mastra, run in-cluster as an application image the Release supplies: the server `mastra build` produces. The catalog pins no image; the build halts naming `infra.image` until a Release sets it. It runs on `infra.port`, 4111 by default, delivered as Mastra's PORT, with MASTRA_HOST set to every interface. It serves routes under `/api`, such as `/api/agents/<id>/generate` and `/api/v1/responses`, and `/health`, read by the Kubernetes readiness check. They answer any caller unless the application configures authentication, so attaching core/public-ingress or core/http-route halts the build until `infra.routes_authenticated` affirms it does. The address is published as host, port, endpoint and protocol. Mastra serves every registered agent over Agent2Agent; where `values.agent_id` names one, agent_card_url publishes its card's address, for core/ai-tool/agent-invocation to delegate to. The `model` socket takes a model or gateway serving the OpenAI API and delivers its endpoint as OPENAI_BASE_URL and the connection's credential, by reference, as OPENAI_API_KEY, which Mastra reads for an `openai/` model the agent's code names. Each tool wired to the optional `tools` socket, such as an HTTP Model Context Protocol server, reaches the application as AGGREGA_TOOL_<ALIAS>_URL, beside any credential its connection carries. An `inject:` block on any connection, or on the component itself, delivers names the application reads, as variables or files, a tools connection's in place of the tool's address and header. A set `values.agent_id` reaches the application as MASTRA_AGENT_ID by default; an entry of the component's own block reading it alone replaces that name.
출처
- 콘텐츠 다이제스트
- sha256:93b16249ddb0617c788732c73f6fd9c7b22ecd52fd7b06f26005eee3a5bfffbf
- 게시일
- 2026-11-10T10:08:29Z
- 서명 ID
- 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:cec7f746c812c295494644c0e206893d082f03860beb320435c689f72f3d4045
이 버전의 참조
oci://hub.aggrega.ai/component/core/ai-agent/mastra:1.0.0개발자 매개변수
개발자가 Aggregate에서 설정하는 값입니다.
BaseComponents#/schemas/BaseAgentParameter 확장
| 이름 | 타입 | 기본값 | 필수 | 설명 |
|---|---|---|---|---|
| agent_id | string | — | 아니요 | The identifier of an agent the application registers with Mastra, as Mastra's agent routes take it, for example weather-agent. Where set, the component publishes the address of that agent's Agent2Agent card as agent_card_url; unset, it publishes agent_card_url empty. |
운영자 사이징
운영자가 환경별로 조정하는 인프라 사이징입니다.
| 이름 | 타입 | 기본값 | 필수 | 설명 |
|---|---|---|---|---|
| image | string | — | 아니요 | Container image running the server `mastra build` produces from the application. |
| port | integer (min 1024, max 65535) | 4111 | 아니요 | Port the server listens on, delivered to it as PORT, and the port the component publishes. A port set in the application's own server configuration takes precedence over PORT. |
| routes_authenticated | boolean | false | 아니요 | Operator affirmation that the application authenticates every request its routes take. While false, its default, a core/public-ingress or core/http-route attachment on this component halts the build, because Mastra's routes otherwise answer any caller. An attachment is matched by those two Feature names, so one of a Feature that extends either under another name is not refused, though it may publish the routes as well. It changes nothing this component renders. |
출력 계약
이 컴포넌트가 uses 토폴로지를 통해 소비자에게 게시하는 값입니다.
| 이름 | 타입 | 기본값 | 필수 | 설명 |
|---|---|---|---|---|
| host | string | — | 예 | DNS name a caller reaches the server at: the Service's name on Kubernetes, the service's name on the compose network. A caller that composes its own address dials this name; one that does not reads `endpoint` instead. |
| port | integer | — | 예 | TCP port the server is reached on, following infra.port. |
| endpoint | string | — | 예 | Base URL of the server, with the host and the port already composed. Mastra's routes sit under /api below it, and /health at its root. |
| protocol | string | — | 아니요 | URL scheme to reach `host` and `port` over, for a caller composing its own address rather than reading `endpoint`. |
| agent_card_url | string | — | 아니요 | The URL the Agent2Agent card of the agent values.agent_id names is read at, /api/.well-known/<agent_id>/agent-card.json on the server's address, which describes that agent and the address a caller sends requests to. Empty while values.agent_id is unset. |
uses 소켓
이 컴포넌트가 연결에 사용하는 의존성 소켓입니다. 소켓을 통해 배선되는 모든 연결의 대상은 해당 소켓의 레이블 셀렉터를 충족해야 하며, 각 연결은 소켓이 선언한 슬롯에 첨부를 전달할 수 있습니다. 필수 슬롯은 Aggregate 또는 Release가 해당 소켓을 통해 배선하는 각 연결이 채워야 합니다.
model
- 셀렉터
- component.aggrega.ai/category in (ai-model, gateway), model.aggrega.ai/api=openai
- 주입
- env, file
이 소켓을 통한 각 연결이 채울 수 있는 슬롯
| 슬롯 | 셀렉터 | 필수 | 주입 | 민감 | 설명 |
|---|---|---|---|---|---|
| credential | feature.aggrega.ai/kind=secret | 아니요 | env | 예 | Optional credential the agent presents to the model this connection reaches. When attached, the Recipe delivers it to the application as OPENAI_API_KEY (a Kubernetes secretKeyRef on helm, the inject pipe on compose); unattached, the application runs without an injected key. |
tools
- 셀렉터
- component.aggrega.ai/category=ai-tool, tool.aggrega.ai/transport=http
- 주입
- env, file
이 소켓을 통한 각 연결이 채울 수 있는 슬롯
| 슬롯 | 셀렉터 | 필수 | 주입 | 민감 | 설명 |
|---|---|---|---|---|---|
| credential | feature.aggrega.ai/kind=secret | 아니요 | env | 예 | Optional credential the agent presents to the tool this connection reaches, under the request header the tool publishes as credential_header: as Bearer <credential> under Authorization, and as the whole value of any other header. When attached, the Recipe delivers it as AGGREGA_TOOL_<ALIAS>_CREDENTIAL (a Kubernetes secretKeyRef on helm, the inject pipe on compose), on a connection writing an inject block too, and, on one writing none, the header as AGGREGA_TOOL_<ALIAS>_CREDENTIAL_HEADER where the tool publishes one. |
| endpoint | feature.aggrega.ai/kind=secret | 아니요 | env | 예 | Optional whole address of the tool this connection reaches, the part carrying its key included, for a server that reads its key from its own address. When attached, the Recipe delivers it as AGGREGA_TOOL_<ALIAS>_URL in place of the endpoint the tool publishes: a Kubernetes secretKeyRef on helm, so the key reaches no rendered file, and the inject pipe on compose, written as delivered. |
첨부 슬롯
Feature가 이 컴포넌트에 첨부되는 이름 있는 바인딩 지점입니다. 슬롯의 셀렉터는 어떤 Feature가 슬롯을 채울 수 있는지를 제한하고, 슬롯의 inject 목록은 Feature의 자료를 어떻게 전달할 수 있는지를 지정합니다. 필수 슬롯은 인스턴스의 첨부 또는 그 위 범위의 첨부를 통해 모든 인스턴스에서 바인딩되어야 하며, 민감 슬롯은 비밀 자료를 처리하도록 선언됩니다. Feature는 어떤 슬롯도 선언하지 않은 이름으로 첨부될 수도 있습니다.
선언된 첨부 슬롯이 없습니다.
자체 주입 허용 목록
env, file
관계
게시된 다른 엔터티와 주고받는 타입 지정 에지입니다. 게시된 대상이 없는 참조는 링크가 아닌 끊어진 에지로 표시됩니다.
사용함
- 사용소켓 «model» 사용
component.aggrega.ai/category in (ai-model, gateway), model.aggrega.ai/api=openai
첨부 슬롯: credential
core/ai-model/docker-model-runner v1.0.0 →core/ai-model/litellm v1.0.0 →core/ai-model/nvidia-api v1.0.0 →core/ai-model/nvidia-nim v1.0.0 →core/ai-model/ollama v1.0.0 →core/ai-model/openai v1.0.0 →core/ai-model/openai-compatible v1.0.0 →core/ai-model/openai-embedding v1.0.0 →core/ai-model/tei v1.0.0 →core/ai-model/tgi v1.0.0 →core/ai-model/vllm v1.0.0 →core/gateway/agentgateway v1.0.0 →core/gateway/apisix v1.0.0 →core/gateway/envoy-gateway v1.0.0 →core/gateway/higress v1.0.0 →core/gateway/kong v1.0.0 →core/gateway/kong-enterprise v1.0.0 →core/gateway/litellm v1.0.0 →core/gateway/traefik-hub v1.0.0 → - 사용소켓 «tools» 사용
component.aggrega.ai/category=ai-tool, tool.aggrega.ai/transport=http
첨부 슬롯: credential, endpoint
- $ref스키마 확장 (values)
BaseComponents#/schemas/BaseAgentParameter
사용됨
소켓 «runner» 사용
소켓 «api» 사용
소켓 «runner» 사용
소켓 «api» 사용
소켓 «services» 사용
소켓 «api» 사용
소켓 «services» 사용
소켓 «services» 사용
소켓 «sandbox» 사용
소켓 «plugin_daemon» 사용
소켓 «ssrf_proxy» 사용
소켓 «sandbox» 사용
소켓 «plugin_daemon» 사용
소켓 «ssrf_proxy» 사용
소켓 «api» 사용
소켓 «ssrf_proxy» 사용
소켓 «api» 사용
소켓 «api» 사용
소켓 «sandbox» 사용
소켓 «plugin_daemon» 사용
소켓 «ssrf_proxy» 사용
소켓 «sandbox» 사용
소켓 «plugin_daemon» 사용
소켓 «ssrf_proxy» 사용
소켓 «target_agent» 사용
소켓 «upstream» 사용
소켓 «forward_target» 사용
소켓 «scrape_target» 사용
소켓 «store» 사용
적용 대상
적용 대상
적용 대상
적용 대상
적용 대상
적용 대상
적용 대상
구현
구현