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.
This commit is contained in:
14
build.zsh
14
build.zsh
@@ -31,8 +31,18 @@ cp -rf ./cfg/zshrc root.x86_64/var/lib/machines/arch/root/.zshrc
|
|||||||
# Install aigpt (AI memory system)
|
# 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/'
|
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
|
# Setup Claude Code MCP configuration
|
||||||
arch-chroot root.x86_64/var/lib/machines/arch /bin/sh -c 'claude mcp add aigpt $(which aigpt) server'
|
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)
|
# 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'
|
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'
|
||||||
|
|||||||
Reference in New Issue
Block a user