Skip to content

Commit 8fa83cc

Browse files
committed
Move settings under agentsetting; add Gemini
Move claudedesktopsetting/ and codexsetting/ into a new agentsetting/ subtree, updating all references across docs, examples, and setup scripts. Add Gemini CLI support (agentsetting/geminisetting) with README and settings.json templates. Update setup_claude.sh, claude_desktop_config.json, codex.mcp.toml, and various docs to point to the new paths, and modify instrmcp.utils.stdio_proxy to search the agentsetting path for the claude launcher. This reorganizes configuration files and adds Gemini integration while keeping launcher scripts and proxy logic intact.
1 parent e2f5006 commit 8fa83cc

File tree

17 files changed

+169
-31
lines changed

17 files changed

+169
-31
lines changed

CLAUDE.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,13 @@ playwright install chromium
8080
### Communication Flow
8181
```
8282
Claude Desktop/Code ←→ STDIO ←→ claude_launcher.py ←→ stdio_proxy.py ←→ HTTP ←→ Jupyter MCP Server
83-
(claudedesktopsetting/) (utils/) (servers/jupyter_qcodes/)
83+
(agentsetting/claudedesktopsetting/) (utils/) (servers/jupyter_qcodes/)
8484
8585
Codex CLI ←→ STDIO ←→ codex_launcher.py ←→ stdio_proxy.py ←→ HTTP ←→ Jupyter MCP Server
86-
(codexsetting/)
86+
(agentsetting/codexsetting/)
87+
88+
Gemini CLI ←→ STDIO ←→ claude_launcher.py ←→ stdio_proxy.py ←→ HTTP ←→ Jupyter MCP Server
89+
(agentsetting/geminisetting/)
8790
```
8891

8992
### Key Directories

README.md

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,22 +141,22 @@ InstrMCP provides seamless integration with Claude Desktop for AI-assisted labor
141141
1. **Run Automated Setup**:
142142
```bash
143143
cd /path/to/your/instrMCP
144-
./claudedesktopsetting/setup_claude.sh
144+
./agentsetting/claudedesktopsetting/setup_claude.sh
145145
```
146146

147147
2. **Restart Claude Desktop** completely and test with: *"What MCP tools are available?"*
148148

149149
**Manual Setup Alternative:**
150150
```bash
151151
# 1. Copy and edit configuration
152-
cp claudedesktopsetting/claude_desktop_config.json ~/Library/Application\ Support/Claude/claude_desktop_config.json
152+
cp agentsetting/claudedesktopsetting/claude_desktop_config.json ~/Library/Application\ Support/Claude/claude_desktop_config.json
153153

154154
# 2. Edit the copied file - replace placeholders with actual paths:
155155
# /path/to/your/python3 → $(which python3)
156156
# /path/to/your/instrMCP → $(pwd)
157157
```
158158

159-
See [`claudedesktopsetting/README.md`](claudedesktopsetting/README.md) for detailed setup instructions and troubleshooting.
159+
See [`agentsetting/claudedesktopsetting/README.md`](agentsetting/claudedesktopsetting/README.md) for detailed setup instructions and troubleshooting.
160160

161161
## Claude Code Integration
162162

@@ -167,7 +167,7 @@ Claude Code supports local MCP servers via STDIO. Use the provided launcher to c
167167
claude mcp add instrMCP --env instrMCP_PATH=$instrMCP_PATH \
168168
--env PYTHONPATH=$instrMCP_PATH \
169169
-- $instrMCP_PATH/venv/bin/python \
170-
$instrMCP_PATH/claudedesktopsetting/claude_launcher.py
170+
$instrMCP_PATH/agentsetting/claudedesktopsetting/claude_launcher.py
171171

172172
# Verify connection
173173
/mcp
@@ -184,11 +184,34 @@ Codex expects MCP servers over STDIO. Use the Codex launcher to proxy STDIO call
184184

185185
**Configuration:**
186186
- command: `python`
187-
- args: `["/path/to/your/instrMCP/codexsetting/codex_launcher.py"]`
187+
- args: `["/path/to/your/instrMCP/agentsetting/codexsetting/codex_launcher.py"]`
188188
- env:
189189
- `JUPYTER_MCP_HOST=127.0.0.1`
190190
- `JUPYTER_MCP_PORT=8123`
191191

192+
## Gemini CLI Integration
193+
194+
Gemini CLI supports MCP servers over STDIO. Use the same launcher as Claude Desktop:
195+
196+
**Configuration** (`~/.gemini/settings.json`):
197+
```json
198+
{
199+
"mcpServers": {
200+
"instrMCP": {
201+
"command": "/path/to/your/python",
202+
"args": ["/path/to/your/instrMCP/agentsetting/claudedesktopsetting/claude_launcher.py"],
203+
"env": {
204+
"instrMCP_PATH": "/path/to/your/instrMCP",
205+
"PYTHONPATH": "/path/to/your/instrMCP"
206+
},
207+
"trust": true
208+
}
209+
}
210+
}
211+
```
212+
213+
See [`agentsetting/geminisetting/README.md`](agentsetting/geminisetting/README.md) for detailed setup instructions.
214+
192215
## V2.0.0 Features (Current Release)
193216

194217
### 1. Resource Discovery Tool

claudedesktopsetting/CLAUDE_DESKTOP_SETUP.md renamed to agentsetting/claudedesktopsetting/CLAUDE_DESKTOP_SETUP.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Add this configuration to your `claude_desktop_config.json`:
5252
"jupyter-qcodes": {
5353
"command": "${instrMCP_PATH}/venv/bin/python",
5454
"args": [
55-
"${instrMCP_PATH}/claudedesktopsetting/claude_launcher.py"
55+
"${instrMCP_PATH}/agentsetting/claudedesktopsetting/claude_launcher.py"
5656
],
5757
"cwd": "${instrMCP_PATH}",
5858
"env": {

claudedesktopsetting/README.md renamed to agentsetting/claudedesktopsetting/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This directory contains Claude Desktop launcher and configuration files for Inst
1414
**Automated (Recommended):**
1515
```bash
1616
cd /path/to/instrMCP
17-
./claudedesktopsetting/setup_claude.sh
17+
./agentsetting/claudedesktopsetting/setup_claude.sh
1818
```
1919

2020
**Manual Setup:**

claudedesktopsetting/claude_desktop_config.json renamed to agentsetting/claudedesktopsetting/claude_desktop_config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"instrmcp-jupyter": {
44
"command": "/path/to/your/python3",
55
"args": [
6-
"/path/to/your/instrMCP/claudedesktopsetting/claude_launcher.py"
6+
"/path/to/your/instrMCP/agentsetting/claudedesktopsetting/claude_launcher.py"
77
],
88
"env": {
99
"PYTHONPATH": "/path/to/your/instrMCP",
File renamed without changes.

claudedesktopsetting/setup_claude.sh renamed to agentsetting/claudedesktopsetting/setup_claude.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ echo " InstrMCP: $INSTRMCP_PATH"
2222
echo " Python: $PYTHON_PATH"
2323

2424
# Check if we're in the right directory
25-
if [ ! -f "$INSTRMCP_PATH/claudedesktopsetting/claude_launcher.py" ]; then
25+
if [ ! -f "$INSTRMCP_PATH/agentsetting/claudedesktopsetting/claude_launcher.py" ]; then
2626
echo "❌ Error: Please run this script from the instrMCP root directory"
27-
echo " Expected to find: claudedesktopsetting/claude_launcher.py"
27+
echo " Expected to find: agentsetting/claudedesktopsetting/claude_launcher.py"
2828
exit 1
2929
fi
3030

@@ -61,7 +61,7 @@ cat > "$CONFIG_PATH" <<EOF
6161
"instrmcp-jupyter": {
6262
"command": "$PYTHON_PATH",
6363
"args": [
64-
"$INSTRMCP_PATH/claudedesktopsetting/claude_launcher.py"
64+
"$INSTRMCP_PATH/agentsetting/claudedesktopsetting/claude_launcher.py"
6565
],
6666
"env": {
6767
"PYTHONPATH": "$INSTRMCP_PATH",
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@ Usage
88
- Install this project into the Python env Codex will use: `pip install -e .` from the repo root.
99
- Configure Codex to launch an MCP server over STDIO using this command:
1010
- command: `python`
11-
- args: `["/path/to/instrMCP/codexsetting/codex_launcher.py"]`
11+
- args: `["/path/to/instrMCP/agentsetting/codexsetting/codex_launcher.py"]`
1212
- env (recommended):
1313
- `JUPYTER_MCP_HOST=127.0.0.1`
1414
- `JUPYTER_MCP_PORT=8123`
1515

1616
Using the TOML config
17-
- A ready-to-use MCP config is provided at `codexsetting/codex.mcp.toml`.
17+
- A ready-to-use MCP config is provided at `agentsetting/codexsetting/codex.mcp.toml`.
1818
- Options to use it (adapt to your Codex version):
1919
- Merge: copy the `[mcp.servers.instr_mcp]` section into your main Codex config file.
20-
- Direct: if supported, point Codex to this file, e.g. `codex --mcp-config /path/to/instrMCP/codexsetting/codex.mcp.toml`.
20+
- Direct: if supported, point Codex to this file, e.g. `codex --mcp-config /path/to/instrMCP/agentsetting/codexsetting/codex.mcp.toml`.
2121
- Paths: If your Codex does not expand `${...}`, replace with absolute paths in the TOML as noted in comments.
2222
- Env: Ensure the Python used by Codex has this repo installed (`pip install -e .`).
2323

2424
Example (conceptual) config entry
2525
- id: `instr_mcp`
2626
- command: `python`
27-
- args: `["${instrMCP_PATH}/codexsetting/codex_launcher.py"]`
27+
- args: `["${instrMCP_PATH}/agentsetting/codexsetting/codex_launcher.py"]`
2828
- env:
2929
- `PYTHONPATH=${instrMCP_PATH}`
3030
- `instrMCP_PATH=${instrMCP_PATH}`
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
[mcp_servers.instr_mcp]
77
command = "python"
8-
args = ["${instrMCP_PATH}/codexsetting/codex_launcher.py"]
8+
args = ["${instrMCP_PATH}/agentsetting/codexsetting/codex_launcher.py"]
99

1010
# Optional: set a working directory
1111
cwd = "${instrMCP_PATH}"
@@ -14,7 +14,7 @@ cwd = "${instrMCP_PATH}"
1414
env = { JUPYTER_MCP_HOST = "127.0.0.1",JUPYTER_MCP_PORT = "8123",PYTHONPATH = "${instrMCP_PATH}",instrMCP_PATH = "${instrMCP_PATH}"}
1515

1616
# If your Codex build does not expand ${...}, replace with absolute paths, e.g.:
17-
# args = ["/Users/you/instrMCP/codexsetting/codex_launcher.py"]
17+
# args = ["/Users/you/instrMCP/agentsetting/codexsetting/codex_launcher.py"]
1818
# cwd = "/Users/you/instrMCP"
1919
# env = { PYTHONPATH = "/Users/you/instrMCP", instrMCP_PATH = "/Users/you/instrMCP", JUPYTER_MCP_HOST = "127.0.0.1", JUPYTER_MCP_PORT = "8123" }
2020

File renamed without changes.

0 commit comments

Comments
 (0)