You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- ✅ **Gemini AI Integration**: Multi-turn conversations with automatic MCP tool calling
20
-
- ✅ **Chat Commands**: Dynamic `/server:tool`, `/gemini`, and `/gemini-mcp` with help system
20
+
- ✅ **Chat Commands**: Dynamic `.server:tool`, `.gemini`, and `.gemini-mcp` with help system
21
21
- ✅ **GUI System**: Complete configuration screens for servers, tools, and Gemini settings
22
22
- ✅ **Persistence**: NBT-based storage for all configurations
23
23
@@ -143,9 +143,9 @@ MCPToolExecutor.execute()
143
143
144
144
#### Command Integration (`commands/`)
145
145
-**`CommandUtils.java`**: Shared key=value/JSON parser plus chat output helpers for tool results
146
-
-**`MCPToolCommand.java`**: Dynamic Brigadier command per MCP tool (`/server:tool …`) with help + suggestions
147
-
-**`GeminiCommand.java`**: `/gemini "prompt"` chat command with async execution and per-player cooldown
148
-
-**`GeminiMCPCommand.java`**: `/gemini-mcp "prompt"` with automatic MCP tool discovery and usage reporting
146
+
-**`MCPToolCommand.java`**: Dynamic Brigadier command per MCP tool (`.server:tool …`) with help + suggestions
147
+
-**`GeminiCommand.java`**: `.gemini "prompt"` chat command with async execution and per-player cooldown
148
+
-**`GeminiMCPCommand.java`**: `.gemini-mcp "prompt"` with automatic MCP tool discovery and usage reporting
149
149
150
150
`MCPServers` mirrors StarScript registration by adding/removing `MCPToolCommand` instances whenever servers connect or disconnect, refreshing the Brigadier dispatcher to keep the chat tree accurate.
Copy file name to clipboardExpand all lines: GEMINI.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
**Core Purpose:**
8
8
1.**Connect:** Link Minecraft to external MCP servers (local or remote).
9
9
2.**Expose:** Make MCP tools available as StarScript functions (`{server.tool()}`).
10
-
3.**Automate:** Use Gemini AI to intelligently orchestrate these tools via natural language (`/gemini-mcp`).
10
+
3.**Automate:** Use Gemini AI to intelligently orchestrate these tools via natural language (`.gemini-mcp`).
11
11
12
12
## 2. Architecture & Data Flow
13
13
@@ -42,9 +42,9 @@ graph TD
42
42
MTE -->|Direct Call| MCPServer
43
43
```
44
44
45
-
### 2.2 The "Enhanced" Gemini Flow (`/gemini-mcp`)
45
+
### 2.2 The "Enhanced" Gemini Flow (`.gemini-mcp`)
46
46
47
-
When a user executes `/gemini-mcp "Get weather in Tokyo"`, the following sequence occurs in `GeminiExecutor`:
47
+
When a user executes `.gemini-mcp "Get weather in Tokyo"`, the following sequence occurs in `GeminiExecutor`:
48
48
49
49
1.**Tool Collection:** The system retrieves all connected MCP servers and converts their tools into Gemini-compatible `FunctionDeclaration` objects using `MCPToGeminiBridge`.
50
50
2.**Initial Request:** The prompt and tool definitions are sent to the Gemini API.
@@ -103,9 +103,9 @@ Once connected, tools are available globally:
<tr><td><code>/gemini-mcp "Read my config.json and explain each setting"</code></td></tr>
103
+
<tr><td><code>.gemini-mcp "Read my config.json and explain each setting"</code></td></tr>
104
104
<tr><td><code>{gemini_mcp("Get the current time in Tokyo")}</code></td></tr>
105
-
<tr><td>The <code>/gemini-mcp</code> command allows Gemini to automatically discover and call any connected MCP tool. Tool usage is reported in the response.</td></tr>
105
+
<tr><td>The <code>.gemini-mcp</code> command allows Gemini to automatically discover and call any connected MCP tool. Tool usage is reported in the response.</td></tr>
Copy file name to clipboardExpand all lines: ai_specs/COMMAND_INTEGRATION_SPEC.md
+41-41Lines changed: 41 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,9 @@
4
4
5
5
Add Minecraft chat command support for direct MCP tool invocation and Gemini AI interactions. This phase builds on the completed Gemini integration (Phase 2) and provides users with command-line access to:
6
6
7
-
1.**Dynamic MCP Tool Commands**: Invoke any connected MCP server's tools via `/server:tool args`
8
-
2.**Gemini Simple Command**: Quick AI queries via `/gemini "prompt"`
9
-
3.**Gemini MCP Command**: AI queries with automatic MCP tool access via `/gemini-mcp "prompt"`
7
+
1.**Dynamic MCP Tool Commands**: Invoke any connected MCP server's tools via `.server:tool args`
8
+
2.**Gemini Simple Command**: Quick AI queries via `.gemini "prompt"`
9
+
3.**Gemini MCP Command**: AI queries with automatic MCP tool access via `.gemini-mcp "prompt"`
10
10
11
11
**Design Philosophy**: Commands provide an alternative to StarScript expressions, offering:
12
12
- Direct tool execution without StarScript syntax
@@ -20,7 +20,7 @@ Add Minecraft chat command support for direct MCP tool invocation and Gemini AI
20
20
21
21
### 1.1 MCP Tool Commands
22
22
23
-
**Pattern**: `/server_name:tool_name [arguments]`
23
+
**Pattern**: `.server_name:tool_name [arguments]`
24
24
25
25
**Rationale**:
26
26
-**Colon separator**: Clear namespace delimiter (inspired by Minecraft's `namespace:id` pattern)
@@ -58,16 +58,16 @@ Add Minecraft chat command support for direct MCP tool invocation and Gemini AI
58
58
59
59
### 1.2 Gemini Simple Command
60
60
61
-
**Pattern**: `/gemini "prompt"`
61
+
**Pattern**: `.gemini "prompt"`
62
62
63
63
**Purpose**: Quick AI queries without MCP tool access
64
64
65
65
**Examples**:
66
66
67
67
```bash
68
-
/gemini "What is the capital of France?"
69
-
/gemini "Explain quantum computing in simple terms"
70
-
/gemini "Write a haiku about Minecraft"
68
+
.gemini "What is the capital of France?"
69
+
.gemini "Explain quantum computing in simple terms"
70
+
.gemini "Write a haiku about Minecraft"
71
71
```
72
72
73
73
**Behavior**:
@@ -85,27 +85,27 @@ Add Minecraft chat command support for direct MCP tool invocation and Gemini AI
85
85
86
86
### 1.3 Gemini MCP Command
87
87
88
-
**Pattern**: `/gemini-mcp "prompt"`
88
+
**Pattern**: `.gemini-mcp "prompt"`
89
89
90
90
**Purpose**: AI queries with automatic access to ALL connected MCP server tools
0 commit comments