FUniverMCPMixin
| packages | @univerjs-pro/mcp |
|---|
APIs
_initialize
Signature
_initialize(injector: Injector): voidcallMCPTool
Call a registered MCP tool.
Signature
callMCPTool(toolName: string, params: unknown): Promise<any>Parameters
toolName(string) — The name of the tool.params(unknown) — The parameters for the tool.
connectMCP
Connect to MCP server.
Signature
connectMCP(): voiddisconnectMCP
Disconnect from MCP server.
Signature
disconnectMCP(): voidgetAllMCPTools
Get all registered MCP tools.
Signature
getAllMCPTools(): IMCPTool[]getMCPConnectionStatus
Get current MCP connection status.
Signature
getMCPConnectionStatus(): stringvalidateMCPToolCall
Validate a tool call.
Signature
validateMCPToolCall(toolName: string, params: unknown): { isValid: boolean; error?: string; validatedParams?: any }Parameters
toolName(string) — The name of the tool.params(unknown) — The parameters for the tool.
