From a411b361089f0e50c544104f661db48466500199 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 6 Nov 2025 15:14:42 +0000 Subject: [PATCH] fix: Create Claude MCP config file directly claude mcp add command does not support args parameter. Changed to directly create claude_desktop_config.json with full config: - command: aigpt - args: ["server", "--enable-layer4"] This ensures aigpt is properly registered with Layer 4 enabled. --- build.zsh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/build.zsh b/build.zsh index 6adf1ae..4114da9 100755 --- a/build.zsh +++ b/build.zsh @@ -31,8 +31,18 @@ cp -rf ./cfg/zshrc root.x86_64/var/lib/machines/arch/root/.zshrc # Install aigpt (AI memory system) arch-chroot root.x86_64/var/lib/machines/arch /bin/sh -c 'git clone https://git.syui.ai/ai/gpt && cd gpt && cargo build --release && cp -rf ./target/release/aigpt /bin/' -# Register aigpt to Claude MCP -arch-chroot root.x86_64/var/lib/machines/arch /bin/sh -c 'claude mcp add aigpt $(which aigpt) server' +# Setup Claude Code MCP configuration +arch-chroot root.x86_64/var/lib/machines/arch /bin/sh -c 'mkdir -p ~/.config/claude' +cat > root.x86_64/var/lib/machines/arch/root/.config/claude/claude_desktop_config.json <<'EOF' +{ + "mcpServers": { + "aigpt": { + "command": "aigpt", + "args": ["server", "--enable-layer4"] + } + } +} +EOF # Install ai/bot (optional, for backward compatibility) arch-chroot root.x86_64/var/lib/machines/arch /bin/sh -c 'git clone https://git.syui.ai/ai/bot && cd bot && cargo build && cp -rf ./target/debug/ai /bin/ && ai ai'