InteractionBrokerOptions
Defined in: packages/mcp-query/src/core/interactions.ts:57
Properties
Section titled “Properties”manualSampling?
Section titled “manualSampling?”
optionalmanualSampling?:boolean
Defined in: packages/mcp-query/src/core/interactions.ts:65
Human-as-model sampling (MCP Inspector style): instead of an LLM, a person authors
the response in the approval UI. Sampling is still advertised; the request-phase
decision must carry editedResult. Takes precedence over model.
model?
Section titled “model?”
optionalmodel?: (req) =>Promise<unknown>
Defined in: packages/mcp-query/src/core/interactions.ts:59
Runs the actual LLM for sampling, e.g. chromeBuiltinAISampling(). Omit ⇒ sampling not offered.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”Promise<unknown>
optionalnow?: () =>number
Defined in: packages/mcp-query/src/core/interactions.ts:72
Returns
Section titled “Returns”number
onAudit?
Section titled “onAudit?”
optionalonAudit?: (entry) =>void
Defined in: packages/mcp-query/src/core/interactions.ts:71
Audit sink (also kept in an in-memory ring buffer).
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
policy?
Section titled “policy?”
optionalpolicy?: (ctx) =>PolicyVerdict|Promise<PolicyVerdict>
Defined in: packages/mcp-query/src/core/interactions.ts:67
Per-request trust policy. Default: “ask” for everything.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”PolicyVerdict | Promise<PolicyVerdict>
reviewResponses?
Section titled “reviewResponses?”
optionalreviewResponses?:boolean
Defined in: packages/mcp-query/src/core/interactions.ts:69
When true, every human-approved sampling result also gets a response-review step.