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
- هوية التوقيع
- 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. |
عقد الإخراج
قيم يطرحها هذا Component للمستهلكين عبر طوبولوجيا 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
مقابس التبعية التي يتصل عبرها هذا Component. يجب أن يلبّي هدف كل اتصال موصَّل عبر مقبس محدِّد التسميات الخاص به، ويمكن أن يحمل كل اتصال إرفاقًا في الخانات التي يعلنها المقبس. والخانة المطلوبة مستحقة على كل اتصال يوصله Aggregate أو Release عبر المقبس.
model
- المحدِّد
- component.aggrega.ai/category in (ai-model, gateway), model.aggrega.ai/api=openai
- Inject
- env, file
الخانات التي يجوز لكل اتصال عبر هذا المقبس ملؤها
| الخانة | المحدِّد | مطلوب | Inject | حساس | الوصف |
|---|---|---|---|---|---|
| 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
- Inject
- env, file
الخانات التي يجوز لكل اتصال عبر هذا المقبس ملؤها
| الخانة | المحدِّد | مطلوب | Inject | حساس | الوصف |
|---|---|---|---|---|---|
| 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 بهذا Component. يقيّد محدِّد الخانة أي Feature يجوز له ملأها، وتسمّي قائمة inject الخاصة بها كيف يجوز تسليم مواد Feature. يجب ربط الخانة المطلوبة في كل مثيل، بإرفاق على المثيل أو على نطاق أعلى منه، وتُعلن الخانة الحساسة بأنها تتعامل مع مواد سرية. ويجوز أيضًا أن يُرفق Feature تحت اسم لا تعلنه أي خانة.
لم تُعلن أي خانات إرفاق.
قائمة سماح self-inject
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»
ينطبق على
ينطبق على
ينطبق على
ينطبق على
ينطبق على
ينطبق على
ينطبق على
ينفّذ
ينفّذ