From 45750c3d312348063e9798b15b98566fbd03502f Mon Sep 17 00:00:00 2001
From: Nadjib Boubrim
Date: Tue, 19 Aug 2025 12:36:36 +0100
Subject: [PATCH] feat: Add Gemini CLI support to MCPPage and IDEGlobalRules
---
.../components/settings/IDEGlobalRules.tsx | 1 +
archon-ui-main/src/pages/MCPPage.tsx | 30 ++++++++++++++++++-
2 files changed, 30 insertions(+), 1 deletion(-)
diff --git a/archon-ui-main/src/components/settings/IDEGlobalRules.tsx b/archon-ui-main/src/components/settings/IDEGlobalRules.tsx
index 0221e78..a837e11 100644
--- a/archon-ui-main/src/components/settings/IDEGlobalRules.tsx
+++ b/archon-ui-main/src/components/settings/IDEGlobalRules.tsx
@@ -555,6 +555,7 @@ archon:manage_task(
- Claude Code: Create a CLAUDE.md file in your project root
+ - Gemini CLI: Create a GEMINI.md file in your project root
- Cursor: Create .cursorrules file or add to Settings → Rules
- Windsurf: Create .windsurfrules file in project root
- Other IDEs: Add to your IDE's AI assistant configuration
diff --git a/archon-ui-main/src/pages/MCPPage.tsx b/archon-ui-main/src/pages/MCPPage.tsx
index b25cf97..ea8d1ac 100644
--- a/archon-ui-main/src/pages/MCPPage.tsx
+++ b/archon-ui-main/src/pages/MCPPage.tsx
@@ -10,7 +10,7 @@ import { IDEGlobalRules } from '../components/settings/IDEGlobalRules';
// import { MCPClients } from '../components/mcp/MCPClients'; // Commented out - feature not implemented
// Supported IDE/Agent types
-type SupportedIDE = 'windsurf' | 'cursor' | 'claudecode' | 'cline' | 'kiro' | 'augment';
+type SupportedIDE = 'windsurf' | 'cursor' | 'claudecode' | 'cline' | 'kiro' | 'augment' | 'gemini';
/**
* MCP Dashboard Page Component
@@ -265,6 +265,14 @@ export const MCPPage = () => {
default:
return '';
+ case 'gemini':
+ return JSON.stringify({
+ mcpServers: {
+ archon: {
+ httpUrl: mcpUrl
+ }
+ }
+ }, null, 2);
}
};
@@ -330,6 +338,16 @@ export const MCPPage = () => {
'4. Reload configuration'
]
};
+ case 'gemini':
+ return {
+ title: 'Gemini CLI Configuration',
+ steps: [
+ '1. Locate or create the settings file at ~/.gemini/settings.json',
+ '2. Add the configuration shown below to the file',
+ '3. Launch Gemini CLI in your terminal',
+ '4. Test the connection by typing /mcp to list available tools'
+ ]
+ };
default:
return {
title: 'Configuration',
@@ -551,6 +569,16 @@ export const MCPPage = () => {
>
Claude Code
+