Member Junction
    Preparing search index...

    Generic driver class for all auto-generated MCP Tool Actions.

    When an MCP Server Tool is synced to an Action (via syncActionsForServer), the Action's DriverClass is set to 'MCPToolAction'. This class handles execution of all such actions by:

    1. Looking up the MCPServerTool entity that has GeneratedActionID = Action.ID
    2. Finding an active connection for the tool's server
    3. Mapping ActionParams to tool arguments (using param Name as key)
    4. Calling the MCP tool and returning the result
    // An Action with DriverClass='MCPToolAction' will be handled by this class
    // The tool is identified by looking up MCPServerTool.GeneratedActionID = Action.ID

    await runAction({
    ActionName: 'search_documentation', // Name matches ToolName from MCP Server
    Params: [
    { Name: 'query', Value: 'MemberJunction API' },
    { Name: 'maxResults', Value: 10 }
    ]
    });

    **Optional Parameter:**
    - `ConnectionID` (optional): Specific connection to use. If not provided,
    an active connection for the server will be automatically selected.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    AuthorizesCaller: boolean

    True when the action authorizes its caller itself, so a public entry point such as the RunAction mutation may run it for an authenticated user without an MJ: Action Authorizations link. Set it only on an action that either checks an authorization the caller must hold, or reads and writes only with the caller's own permissions. Leave it false for an action that acts with more authority than its caller, or that reaches data or sends messages the caller chooses but could not otherwise reach.

    The engine reads the marker only from the class that runs, never from its parent classes. A subclass that overrides a marked action must declare the marker again.

    Methods