Conversation
Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Can you check how the mirroring of game mcp commands works in case you have multiple games? Will the AI figure this out nicely or does the whole proxying mcp commands to games can become confusing? If so, what strategies can we apply to make this more ...
Fix multi-game MCP tool mirroring confusion with game-prefixed naming strategy
Sep 13, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
When multiple games with GABP-compliant mods are running simultaneously, GABS faces a critical tool naming conflict issue that confuses AI agents:
This creates several problems:
Solution
Implemented game-prefixed tool naming strategy that automatically namespaces all GABP tools with their source game ID:
Key Changes
1. Enhanced Mirror Module (
internal/mirror/mirror.go)gameIdparameter for tool namespacing{gameId}.{originalToolName}2. New
games.toolsMCP Command (internal/mcp/stdio_server.go)3. Comprehensive Documentation (
AGENTS.md)4. Extensive Test Coverage (
internal/mcp/multi_game_mirroring_test.go)games.toolscommand functionalityBenefits for AI Agents
minecraft.inventory/getvsrimworld.inventory/geteliminates all ambiguityUsage Examples
Tool Discovery
Explicit Game Targeting
Multi-Game Coordination
This change transforms GABS from supporting single-game scenarios to being truly multi-game capable, making it much easier for AI agents to understand and control multiple games simultaneously without confusion or conflicts.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.