Exposes Orchard Core AI agent profiles via the Agent-to-Agent (A2A) 1.0 protocol. Covers agent card discovery, multi-agent routing, authentication options, and troubleshooting A2A connectivity.
Ships in crestapps-orchardcore. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The A2A Host feature makes every AI profile of type Agent discoverable and callable by external A2A clients, including another Orchard Core site running the A2A Client feature (orchardcore-ai-a2a-client).
CrestApps.OrchardCore.AI.A2A.Host, in the CrestApps.OrchardCore.AI.A2A package (install it in the web/startup project). It depends only on CrestApps.OrchardCore.AI.Type is Agent are exposed. Their Name identifies the agent and their Description becomes the card and skill description.supportedInterfaces (protocol binding JSON-RPC). The deprecated top-level url is no longer emitted./a2a endpoint is protected by the A2AHostPolicy policy.OpenId.None only for local development.{
"steps": [
{
"name": "Feature",
"enable": [
"CrestApps.OrchardCore.AI",
"CrestApps.OrchardCore.AI.A2A.Host"
],
"disable": []
}
]
}
Create an AI profile with Profile type set to Agent in the admin, or import one. Bind deployments by technical name; see orchardcore-ai for the full profile contract.
{
"steps": [
{
"name": "AIProfile",
"profiles": [
{
"Name": "research-agent",
"DisplayText": "Research Agent",
"Description": "Researches topics and returns sourced summaries.",
"Type": "Agent",
"ChatDeploymentName": "research-chat",
"Properties": {
"AIProfileMetadata": {
"SystemMessage": "You are a research assistant.",
"Temperature": 0.2,
"MaxTokens": 4096
},
"AgentMetadata": {
"Availability": "OnDemand"
}
}
}
]
}
]
}
| Endpoint | Purpose |
|---|---|
GET /.well-known/agent-card.json | Discovery. A JSON array of cards in multi-agent mode, one combined card in skill mode. |
/a2a | A2A JSON-RPC endpoint. |
/a2a?agent={agentName} | Targets one agent in multi-agent mode. |
Messages are routed by the agent query parameter first, then by an agentName entry in the message metadata, and otherwise to the first agent profile. The host supports streaming; task subscription and push notifications are not supported.
| Mode | Setting | Card shape |
|---|---|---|
| Multi-agent (default) | ExposeAgentsAsSkill: false | One card per agent; each supportedInterfaces entry points to /a2a?agent={agentName} |
| Skill | ExposeAgentsAsSkill: true | One card whose skills are the agents; clients route with agentName metadata |
A multi-agent card looks like this (trimmed):
[
{
"name": "Research Agent",
"description": "Researches topics and returns sourced summaries.",
"supportedInterfaces": [
{ "url": "https://example.com/a2a?agent=research-agent", "protocolBinding": "JSONRPC" }
],
"capabilities": { "streaming": true }
}
]
{
"OrchardCore": {
"CrestApps": {
"AI": {
"A2AHost": {
"AuthenticationType": "ApiKey",
"ApiKey": "{{A2AHostApiKey}}",
"RequireAccessPermission": true,
"ExposeAgentsAsSkill": false
}
}
}
}
}
| Setting | Default | Description |
|---|---|---|
AuthenticationType | OpenId | OpenId, ApiKey, or None |
ApiKey | Key required in ApiKey mode | |
RequireAccessPermission | true | Authenticated callers also need AccessA2AHost |
ExposeAgentsAsSkill | false | Combine all agents into one card |
The older OrchardCore:CrestApps:A2AHost section is still read first for backward compatibility; prefer OrchardCore:CrestApps:AI:A2AHost. Configuration changes need an app restart.
| Mode | Advertised security scheme | Client sends |
|---|---|---|
OpenId | openId, with {host}/.well-known/openid-configuration | Authorization: Bearer <token> from the Orchard Core OpenID server (Api scheme) |
ApiKey | apiKey in the Authorization header | Authorization: Bearer <key> or Authorization: ApiKey <key> |
None | none | nothing |
AccessA2AHost is security critical and is not granted to any role by default; grant it to the role or OpenID application that calls the host.
Completions run for A2A requests are labelled with the A2A usage category, so they appear under that category in AI Usage Analytics (orchardcore-ai-usage-analytics).
url. Clients must read the endpoint from supportedInterfaces. The CrestApps A2A client already does./a2a?agent={agentName}.OrchardCore:CrestApps:A2AHost to OrchardCore:CrestApps:AI:A2AHost.| Symptom | Check |
|---|---|
| The card array is empty | No AI profile has type Agent. |
| A client reports a missing endpoint | It still reads url; update it to A2A 1.0 supportedInterfaces. |
401 or 403 on /a2a | Credentials do not match AuthenticationType, or the caller lacks AccessA2AHost. |
| Card URLs miss the tenant prefix | Card URLs are built from the request scheme and host. Verify the advertised interface URL on prefixed tenants and behind reverse proxies. |
| The wrong agent answers | Send ?agent={name} (multi-agent) or agentName metadata (skill mode); otherwise the first agent answers. |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/crestapps-orchardcore:orchardcore-ai-a2a-hostfrom crestapps-orchardcore
npx claudepluginhub crestapps/crestapps.agentskills --plugin crestapps-orchardcore137 skills in this plugin
/orchardcore-accountsSkill for the CrestApps Orchard Core Accounts module (CrestApps.OrchardCore.Accounts) with its Account Members, Account Team, Account E-mail Domains and Account Locations features. Covers the Account type and AccountPart, the account picker and search, IAccountChildTypeRule, account page sections (AccountPageTabs, AddPageSection, Notes), members and IAccountMemberService, account invitations, the account owner and team picked from staff, e-mail domains, locations with a billing location, the account's billing profile and party members, the Accounts recipe and deployment steps, and the admin menu. Use this skill when requests mention accounts, the businesses or households records belong to, an account page tab, members, invitations, owners, domains or locations. Strong matches include AccountPart, AccountPageTabs, IAccountMemberService, IAccountInvitationService, AccountInvitation, AccountTeamPart, AccountEmailDomainsPart, IAccountEmailDomains, AccountLocationsPart and ManageAccountMembers./orchardcore-accounts-b2bSkill for the CrestApps Orchard Core Accounts B2B module (CrestApps.OrchardCore.Accounts.B2B), business selling on an Account content item. Covers B2BAccountPart and B2BAccount, buyers as account members and ship-to addresses as account locations, terms (deposit, net days, credit limit) through the account-terms tender billed to the account, the account's billing profile, purchase order numbers, quotes, price lists through IBuyerPriceProvider, order limits, approvals and budgets, OCI punchout, the account/business page and API, the PriceLists recipe and deployment steps, the B2BAccounts report source, and the move from the removed Companies module. Use this skill when requests mention B2B, wholesale or business buyers, net terms, purchase orders, price lists, order approvals or punchout. Strong matches include B2BAccountPart, B2BAccount, AccountTerms, AccountTermsTenderProvider, B2BAccountBillingProfileSource, IB2BAccountStore, PriceList, B2BPriceProvider, B2BApprovalService and ManageB2BAccounts.Other plugins' skills for the same job