Repository navigation
feat(transports): an app declares how agents reach it (CLI, MCP, HTTP) - #45
Closed
ahmad-ajmal wants to merge 1 commit into
Closed
ahmad-ajmal wants to merge 1 commit into
ahmad-ajmal wants to merge 1 commit into
Conversation
…ose by that order manifest.json may carry `transports`, an ordered list of cli, mcp and http. The first is the app's primary channel and the rest are fallbacks; without it the order is cli, mcp, http. Entries are kinds, never addresses. The gate checks it, the builder may edit it, toolkit-sync keeps it, `scaffold --transport` puts one first, and inspect reports it. Identity gains optional `transports` and `mcpUrl` (published by adapters in a later change). Arriving by CLI at an app that asks for another transport first says so. Skills, AGENTS.md and the README say how to choose, and how to operate over plain HTTP when there is no CLI. Spec: spec/v0_2/transports.md.
This was referenced Nov 30, 2026
Collaborator
Author
|
Replaced by #56, with the same code. The branch is kept. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An app can now say how agents should reach it: CLI, MCP or HTTP, in order. CLI stays first unless someone asks otherwise. This is the first of a series. It adds the declaration and the rule for choosing; the MCP endpoint itself is the next PR.
What changes
manifest.jsonmay carry"transports": ["cli", "mcp", "http"]. The first is the app's primary channel and the rest are fallbacks. Absent means that order. Entries are kinds only, never addresses, so a declaration can't send a credential to another host.a2appruns, MCP if the harness already has the app's server connected, HTTP if they can send requests. With no CLI and both others available, MCP wins, because the harness then holds the token. A refusal (401, 403, 428, guard error) is the app's answer on every transport.transportsandmcpUrl.mcpUrlis used only as a path on the origin already reached.agent-app validatechecks the key. It is app-owned and the builder may edit it, sotoolkit-synckeeps it and it isn't hash drift.scaffold --transport cli|mcp|httpputs one first (defaultcli).agent-app inspectreports the order./agent-appand the README follow.Spec:
spec/v0_2/transports.md. The schema changes are optional fields, so a 0.2 app without them still conforms.Existing apps
Nothing changes for an app with no
transports, or with an adapter that predates it: agents use the CLI, then HTTP. No adapter publishes the new identity fields until the next PR.Tests
framework/cli/test/transports.test.mjs: good and bad declarations (addresses included), the order,mcpUrlvalues that point elsewhere, scaffold, gate, drift,toolkit-sync, and arriving by CLI end to end.manifest-mergeandinstalltests updated for the new key.pnpm -r build,typecheckandtestpass on Windows, Node 24. Conformance 87/87. The PocketBase e2e is skipped withoutPOCKETBASE_BIN, and is not touched here.