本頁面由機器翻譯。閱讀英文原文。

Recipe

mastra

A server built by Mastra, on Kubernetes, rendered offline as plain manifests by the helm provider's Workload synthesis. The Workload becomes a Deployment running the image the Release supplies, and a ClusterIP Service fronting infra.port, which the server receives as PORT beside MASTRA_HOST set to 0.0.0.0. A readiness probe reads Mastra's /health route, so the Service sends no traffic until the server answers; provides is that Service's host, port, endpoint and protocol, and, where values.agent_id is set, the address of that agent's Agent2Agent card. The model wired into the `model` socket reaches the server as the variables Mastra reads for an openai/ model: its endpoint as OPENAI_BASE_URL, and the connection's credential as OPENAI_API_KEY through a secretKeyRef, so the key never renders into the manifest. Each tool wired into the `tools` socket reaches the server under variables named for the connection's alias, upper-cased with hyphens as underscores: its address as AGGREGA_TOOL_<ALIAS>_URL, and, where the connection carries a credential, that credential as AGGREGA_TOOL_<ALIAS>_CREDENTIAL through a secretKeyRef, with the header the tool publishes for it as AGGREGA_TOOL_<ALIAS>_CREDENTIAL_HEADER. A connection writing an `inject:` block also receives the names it dictates, as variables or as files mounted at the paths it names: a tools connection in place of its address and header variables, while what its attachments deliver stays, and the model connection beside the variables Mastra reads. So does the component's own block. A set values.agent_id reaches the server as MASTRA_AGENT_ID by default; an entry of the component's own block reading it alone replaces that name.

出處

官方由本目錄認可為官方發布者的簽署身分所簽署。
內容摘要
sha256:450dbf83f544fad351d9dc3bff446b10ccc2b730df4bbd61da404c3ab791d5b8
發布時間
2026-11-10T10:25: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:ee06c0394b0469ea1983f7a842002effd11d5c74c60991d081c064243fb6ea42

此版本的參照

oci://hub.aggrega.ai/recipe/helm/mastra:1.0.0
目標
—
實作
core/ai-agent/mastra:1.0.0

提供

此配方為使用端連接的確定性指標範本。

名稱範本
host{{ .context.rendered_name }}-default
port{{ .infra.port }}
endpointhttp://{{ .context.rendered_name }}-default:{{ .infra.port }}
protocolhttp
agent_card_url{{ with optional .values "agent_id" "" }}http://{{ $.context.rendered_name }}-default:{{ $.infra.port }}/api/.well-known/{{ . }}/agent-card.json{{ end }}

Workload

Workload · form: stateless · replicas: 1 · containers: main

Locals

未宣告任何 locals。

值對應

未宣告任何值對應。

關係

與其他已發布實體之間具型別的邊。沒有已發布目標的參照,會渲染為中斷的邊,而不是連結。

使用

  • 實作實作契約相容

    core/ai-agent/mastra:1.0.0

    所有必要的輸出都已滿足,且每個提供的輸出都在契約中列名。

被使用於

目錄中沒有任何項目相依於此實體。

Recipe 概念參考

Aggrega 目錄:元件、功能、配方,以及負責渲染它們的外掛程式的開放索引。

以共用的 Aggrega 設計系統建置。

隱私權