Skip to content

AppContext

Describes@ebitex/mcp 1.xSee the changelog:@ebitex/mcp

AppContext = object

What every app is handed.

baseUrl: string

Origin only. Each app appends its own route prefix.


env: Record<string, string | undefined>

The environment the server was launched with, so an app reads its own variables.


optional fetchImpl?: typeof fetch

Substituted by tests. Defaults to the global fetch.


readOnly: boolean

An operator’s declaration that this session must not write, whatever its keys could do.


serverVersion: string

Reported by an app that tells an agent which build it is talking to.