Skip to main content
Glama

tauri_get_setup_instructions

Read-onlyIdempotent

Get step-by-step instructions to set up or update the MCP Bridge plugin in Tauri projects when connection issues occur or the plugin is missing.

Instructions

Get instructions for setting up or updating the MCP Bridge plugin in a Tauri project. Call this tool when: (1) tauri_driver_session fails to connect, (2) you detect the plugin is not installed or outdated, or (3) the user asks about setup. Returns step-by-step guidance that you should follow to help the user configure their project. IMPORTANT: The instructions require you to examine the project first and ask for permission before making any changes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registration of the 'tauri_get_setup_instructions' tool, including description, empty input schema, annotations, and inline handler that returns the SETUP_INSTRUCTIONS constant.
    {
       name: 'tauri_get_setup_instructions',
       description:
          'Get instructions for setting up or updating the MCP Bridge plugin in a Tauri project. ' +
          'Call this tool when: (1) tauri_driver_session fails to connect, (2) you detect the plugin ' +
          'is not installed or outdated, or (3) the user asks about setup. ' +
          'Returns step-by-step guidance that you should follow to help the user configure their project. ' +
          'IMPORTANT: The instructions require you to examine the project first and ask for permission ' +
          'before making any changes.',
       category: TOOL_CATEGORIES.SETUP,
       schema: z.object({}),
       annotations: {
          title: 'Get Setup Instructions',
          readOnlyHint: true,
          destructiveHint: false,
          idempotentHint: true,
          openWorldHint: false,
       },
       handler: async () => {
          return SETUP_INSTRUCTIONS;
       },
    },
  • The markdown-formatted setup instructions string returned by the tool's handler. Contains detailed steps for installing and configuring the Tauri MCP Bridge plugin.
    const SETUP_INSTRUCTIONS = `# MCP Bridge Plugin Setup Instructions
    
    Use these instructions to set up or update the MCP Bridge plugin in a Tauri v2 project.
    
    ## IMPORTANT: Do Not Act Without Permission
    
    **You must NOT make any changes to files without the user's explicit approval.**
    
    1. First, examine the project to understand its current state
    2. Then, present a clear summary of what changes are needed
    3. Wait for user approval before making ANY modifications
    4. Only proceed with changes after they confirm
    
    ## Prerequisites Check
    
    First, verify this is a Tauri v2 project:
    - Look for \`src-tauri/\` directory and \`tauri.conf.json\`
    - If this is NOT a Tauri project, stop and let the user know this setup only applies to Tauri apps
    
    ## What to Check
    
    Examine these files and report what needs to be added or updated:
    
    ### 1. Rust Plugin Dependency
    Check \`src-tauri/Cargo.toml\` for \`tauri-plugin-mcp-bridge\`. If missing or outdated, note that it needs:
    \`\`\`toml
    [dependencies]
    tauri-plugin-mcp-bridge = "0.4"
    \`\`\`
    
    ### 2. Plugin Registration
    Check \`src-tauri/src/lib.rs\` or \`src-tauri/src/main.rs\` for plugin registration. It should have:
    \`\`\`rust
    #[cfg(debug_assertions)]
    {
        builder = builder.plugin(tauri_plugin_mcp_bridge::init());
    }
    \`\`\`
    
    ### 3. Global Tauri Setting
    Check \`src-tauri/tauri.conf.json\` for \`withGlobalTauri: true\` under the \`app\` section.
    **This is required** - without it, the MCP bridge cannot communicate with the webview.
    
    ### 4. Plugin Permissions
    Check \`src-tauri/capabilities/default.json\` (or similar) for \`"mcp-bridge:default"\` permission.
    
    ## Response Format
    
    After examining the project, respond with:
    
    1. **Current State**: What's already configured correctly
    2. **Changes Needed**: A numbered list of specific changes required
    3. **Ask for Permission**: "May I proceed with these changes?"
    
    Only after the user says yes should you make any modifications.
    
    ## After Setup
    
    Once changes are approved and made:
    1. Run the Tauri app in development mode (\`cargo tauri dev\`)
    2. Use \`tauri_driver_session\` with action "start" to connect
    3. Use \`tauri_driver_session\` with action "status" to verify
    
    ## Notes
    
    - The plugin only runs in debug builds so it won't affect production
    - The WebSocket server binds to \`0.0.0.0:9223\` by default
    - For localhost-only access, use \`Builder::new().bind_address("127.0.0.1").build()\`
    `;
  • Empty input schema (no parameters required) for the tool.
    schema: z.object({}),
  • Inline asynchronous handler function that simply returns the pre-defined SETUP_INSTRUCTIONS constant.
    handler: async () => {
       return SETUP_INSTRUCTIONS;
    },
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations indicate readOnlyHint=true, destructiveHint=false, and idempotentHint=true, covering safety and idempotency. The description adds valuable context beyond this: it specifies that the tool returns 'step-by-step guidance' and includes an 'IMPORTANT' note about examining the project first and asking for permission before changes. This clarifies the tool's role as advisory rather than directly modifying the project, enhancing behavioral understanding without contradicting annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the purpose, followed by usage guidelines and behavioral notes in a logical flow. Every sentence adds value: the first defines the tool, the second lists usage scenarios, the third describes the output, and the fourth provides critical instructions. There is no wasted text, making it highly efficient and well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (advisory with no parameters) and the presence of annotations covering safety and idempotency, the description is complete. It explains the purpose, usage, output type ('step-by-step guidance'), and important behavioral constraints. With no output schema, the description adequately informs the agent about what to expect without needing to detail return values.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 0 parameters with 100% coverage, so no parameter documentation is needed. The description appropriately does not discuss parameters, focusing instead on usage context. A baseline of 4 is applied since the schema fully handles parameters, and the description avoids unnecessary repetition.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Get instructions for setting up or updating the MCP Bridge plugin in a Tauri project.' It specifies both the action ('Get instructions') and the resource ('MCP Bridge plugin in a Tauri project'), distinguishing it from siblings like tauri_driver_session or tauri_ipc_emit_event that handle different aspects of Tauri interaction.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit guidance on when to use this tool: '(1) tauri_driver_session fails to connect, (2) you detect the plugin is not installed or outdated, or (3) the user asks about setup.' It names a specific alternative (tauri_driver_session) and outlines clear scenarios, making it easy for an agent to decide when to invoke it versus other tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/hypothesi/mcp-server-tauri'

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