Option

mcp of project

What the app states for the MCP door, at /mcp.

Value

{ toolsListed, asks, only, clients, on, anyone, scopes, inline, stream, names }, each of which may be left out.

OptionTakes, and what holds where it is left out
toolsListedHow many tools a caller is listed at most; above it the pair findFunction and callFunction stands in their place. 20
asks'engine': a function that states danger: 'ask' is refused with code.T7120 until a person agreed. 'client' trusts every client's own asking, and a list trusts the clients it names by the host of their document, by an id, or by a key. 'engine'
only'queries', or a list of function names: narrows every caller at /mcp to them. Every offered function
onA function of the app by the method of the standard that it answers, as { 'resources/list': listResources }. None
anyoneTrue offers the functions whose rule is anyone to a request with no caller. False
streamTrue keeps a stream open for a caller who asks for one. False
namesAnother name for the tool of a function, by the function's name. None
clientsThe clients that the builder states, each { id, name, redirects, for }, where for: 'app' lets it ask for a token for the whole app; and anyone('why') among them for clients that register themselves. None
scopesFiner scopes, each a list of the functions it opens, by its name: { billing: ['invoices', 'pay'] }. None
inlineThe size of a picture that travels inside an answer. 1 MB

Example

TypeScript
export const shop = project('shop', {
  mcp: { toolsListed: 20, asks: 'engine', only: 'queries', anyone: false, stream: false, names: { openOrders: 'orders' } },
})

See also

word.project, topic.mcp, code.T7004