Skip to main content
Glama

mc_wait_for_bridge

Wait for a newly launched Minecraft client to start its DebugBridge, then connect. Verifies the correct instance by game directory or version to avoid conflicts with other running clients.

Instructions

Block until a freshly (re)launched Minecraft client's DebugBridge answers, then connect to it. Sweeps ports 9876-9886 once per second, verifying the answering instance is the expected one — by game directory when known from the previous connection, else by Minecraft version — so a second running instance (e.g. a 1.19 client next to the 1.21 one) is never mistaken for it. Read-only; doesn't require session control.

Use this instead of polling mc_connect yourself after launching the client (typically right after mc_quit_client + a detached launch command — see the mcdev://guides/dev-loop resource). On timeout, the likely causes are a launcher login prompt or a crash during startup.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timeoutSecondsNoGive up after this many seconds. Default 120.
expectedVersionNoOnly accept an instance reporting this Minecraft version (e.g. "1.21.11"). Overrides the identity remembered from the previous connection — use when deliberately switching instances.
Behavior4/5

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

No annotations provided, so description carries full burden. It states 'Read-only; doesn't require session control', explains port sweeping and verification logic. However, it doesn't fully detail what happens after connection (e.g., return value or state change), though it is implied.

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?

Concise and well-structured: first sentence states main action, then provides verification details, then usage guidelines. No filler, every sentence adds value.

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

Completeness3/5

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

No output schema, so description should clarify return values. It mentions timeout causes but doesn't specify what the tool returns on success or failure. Given two parameters and simple wait, it's mostly complete but missing output specification.

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?

Schema covers both parameters fully. Description adds context for expectedVersion about overriding previous identity and switching instances, providing extra meaning beyond schema. Timeout is mentioned but without default.

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?

Description clearly states the tool blocks until a freshly launched client's DebugBridge answers then connects. It explicitly distinguishes from polling mc_connect and mentions alternatives, making purpose clear and distinctive.

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?

Explicitly says 'Use this instead of polling mc_connect yourself' and provides context like after mc_quit_client + launch command, referring to a guide. Also mentions timeout causes, offering clear usage guidance.

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/use-ai-for-mc/mcdev-mcp'

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