• Create an MCP controller with type validation.

    Create an IAgenticaController.IMcp instance which represents an MCP (Model Context Protocol) controller with LLM function calling schemas and client connection.

    Type Parameters

    • Model extends Model

    Parameters

    • props: {
          client: Client<
              {
                  method: string;
                  params?: {
                      _meta?: { progressToken?: string
                      | number; [key: string]: unknown };
                      [key: string]: unknown;
                  };
              },
              {
                  method: string;
                  params?: { _meta?: { [key: string]: unknown }; [key: string]: unknown };
              },
              { _meta?: { [key: string]: unknown }; [key: string]: unknown },
          >;
          model: Model;
          name: string;
          options?: Partial<IOptions<Model>>;
      }

      Properties to create the MCP controller

      • client: Client<
            {
                method: string;
                params?: {
                    _meta?: { progressToken?: string
                    | number; [key: string]: unknown };
                    [key: string]: unknown;
                };
            },
            {
                method: string;
                params?: { _meta?: { [key: string]: unknown }; [key: string]: unknown };
            },
            { _meta?: { [key: string]: unknown }; [key: string]: unknown },
        >

        Client connection to the MCP implementation.

      • model: Model

        Model schema of the LLM function calling.

      • name: string

        Name of the MCP implementation.

      • Optionaloptions?: Partial<IOptions<Model>>

        Options to create the MCP controller.

    Returns Promise<IValidation<IMcp<Model>>>

    MCP LLM application instance

    SunRabbit