MCPToolContext | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Type Alias MCPToolContext

    Context a tool is called in

    type MCPToolContext = {
        scopes: string[];
        user: number;
        wrdSchema: string;
    }
    Index

    Properties

    Properties

    scopes: string[]

    Scopes of the access token

    user: number

    Entity in wrdSchema that owns the access token, ie the user calling the tool

    wrdSchema: string

    WRD schema whose MCP server received the call, which provides its users. Use this instead of hardcoding a schema: a tool can be offered by the MCP servers of several schemas