Module: web-host
Interfaces
ServeAppReadyLine
Plain Node entry bundled into generated executables; do not add Effect or compiler imports (#564).
Properties
app
readonlyapp:string
tool
readonlytool:string
url
readonlyurl:string
WebCommandOptions
Plain Node entry bundled into generated executables; do not import Effect or compiler modules (#564).
Properties
argv
readonlyargv: readonlystring[]
manifestPath
readonlymanifestPath:string
name?
readonlyoptionalname?:string
pageScript
readonlypageScript:string
pluginRoot
readonlypluginRoot:string
signal
readonlysignal:AbortSignal
writeErr
readonlywriteErr: (text) =>void
Parameters
text
string
Returns
void
writeOut
readonlywriteOut: (text) =>void
Parameters
text
string
Returns
void
WebManifest
Properties
apps
readonlyapps: readonlyWebManifestApp[]
open
readonlyopen:"browser"|"never"
WebManifestApp
Properties
allow
readonlyallow: readonly ("call-tool"|"download-file"|"open-external-link"|"request-display-mode")[]
app
readonlyapp:string
input?
readonlyoptionalinput?:Readonly<Record<string,unknown>>
name
readonlyname:string
resourceUri
readonlyresourceUri:string
server
readonlyserver:string
The configured server name; its launch is the executables.mcpServers[] row of that name.
tool?
readonlyoptionaltool?:string
Variables
formatServeAppReadyLine
constformatServeAppReadyLine: ({ app, tool, url }) =>string
The stdout line agent-bundle serve-app prints once the host is listening.
Parameters
{ app, tool, url }
Returns
string
parseServeAppReadyLine
constparseServeAppReadyLine: (line) =>ServeAppReadyLine|undefined
The ready line's fields, or undefined for any other line of output.
Parameters
line
string
Returns
ServeAppReadyLine | undefined
parseWebManifest
constparseWebManifest: (value) =>WebManifest
Parameters
value
unknown
Returns
readWebManifest
constreadWebManifest: (manifestPath) =>Promise<WebManifest|undefined>
Parameters
manifestPath
string
Returns
Promise<WebManifest | undefined>
runWebCommand
construnWebCommand: (options,runtime?) =>Promise<number>
Parameters
options
runtime?
WebCommandRuntime
Returns
Promise<number>
WEB_HOST_TOKEN_HEADER
constWEB_HOST_TOKEN_HEADER:"x-agent-bundle-web-host"="x-agent-bundle-web-host"
Shared header for a standalone host's per-launch credential.