Skip to main content
Glama
by Radek44
state.ts687 B
/** * Application state and command execution tools */ import type { TauriDriver } from '../tauri-driver.js'; import type { ExecuteTauriCommandParams, ToolResponse } from '../types.js'; /** * Execute a Tauri IPC command */ export async function executeTauriCommand( driver: TauriDriver, params: ExecuteTauriCommandParams ): Promise<ToolResponse<{ result: unknown }>> { try { const result = await driver.executeTauriCommand(params.command, params.args); return { success: true, data: { result, }, }; } catch (error) { return { success: false, error: error instanceof Error ? error.message : String(error), }; } }

Implementation Reference

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Radek44/mcp-tauri-automation'

If you have feedback or need assistance with the MCP directory API, please join our Discord server