-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·32 lines (26 loc) · 763 Bytes
/
Copy pathinstall.sh
File metadata and controls
executable file
·32 lines (26 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
# Install ontomics MCP server for a Python project.
# Usage: ./install.sh /path/to/python/project
#
# Creates .mcp.json in the target project so Claude Code
# automatically starts ontomics when opened in that directory.
set -e
ONTOMICS_BIN="/home/eti/projects/ontomics/target/release/ontomics"
if [ ! -f "$ONTOMICS_BIN" ]; then
echo "Building ontomics..."
cargo build --release --manifest-path /home/eti/projects/ontomics/Cargo.toml
fi
TARGET="${1:-.}"
TARGET=$(cd "$TARGET" && pwd)
cat > "$TARGET/.mcp.json" << EOF
{
"mcpServers": {
"ontomics": {
"command": "$ONTOMICS_BIN",
"args": ["--repo", "$TARGET"]
}
}
}
EOF
echo "Installed ontomics for: $TARGET"
echo "Restart Claude Code in that directory to activate."