UNPKG

@decaf-ts/decorator-validation

Version:
24 lines (23 loc) 877 B
import { FastMCP, Tool } from "fastmcp"; import { Logger } from "@decaf-ts/logging"; import { FastMCPSessionAuth } from "./types"; declare class Builder { name: string; version: `${number}.${number}.${number}`; tools: Record<string, Tool<any, any>>; log: Logger; constructor(); setName(value: string): this; setVersion(value: string): this; addTool<Auth extends FastMCPSessionAuth = undefined>(config: Tool<Auth, any>): this; build<Auth extends FastMCPSessionAuth = undefined>(): ModelContextProtocol<Auth>; } export declare class ModelContextProtocol<Auth extends FastMCPSessionAuth = undefined> { protected readonly mcp: FastMCP<Auth>; protected get log(): Logger; constructor(mcp: FastMCP<Auth>); static readonly Builder: typeof Builder; static get builder(): Builder; private static validateVersion; } export {};