Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
| Structural outlines (functions, structs, imports) | Multi-project support |
| Reverse dependency graph | Remote indexing over SSH |
| Atomic line-range edits with version tracking | |
| Auto-registration in Claude, Codex, Gemini, Cursor | |
| Auto-registration in Claude, Codex, Gemini, Cursor, Swival | |
| Polling file watcher with filtered directory walker | |
| Portable snapshot for instant MCP startup | |
| Multi-agent support with file locking + heartbeats | |
Expand All @@ -64,7 +64,7 @@
curl -fsSL https://codedb.codegraff.com/install.sh | sh
```

Downloads the binary for your platform and auto-registers codedb as an MCP server in **Claude Code**, **Codex**, **Gemini CLI**, and **Cursor**.
Downloads the binary for your platform and auto-registers codedb as an MCP server in **Claude Code**, **Codex**, **Gemini CLI**, **Cursor**, and **Swival**.

| Platform | Binary | Signed |
|----------|--------|--------|
Expand Down
25 changes: 25 additions & 0 deletions install/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,30 @@ PYEOF
printf " ${G}✓${N} cursor ${D}→ $config${N}\n"
}

register_swival() {
local codedb_bin="$1"
local config_dir="${XDG_CONFIG_HOME:-$HOME/.config}/swival"
local config="$config_dir/config.toml"

if [ ! -d "$config_dir" ]; then
return
fi

if [ -f "$config" ] && grep -q '\[mcp_servers\.codedb\]' "$config" 2>/dev/null; then
printf " ${G}✓${N} swival ${D}→ $config (already registered)${N}\n"
return
fi

{
[ -f "$config" ] && [ -s "$config" ] && echo ""
echo '[mcp_servers.codedb]'
echo "command = \"$codedb_bin\""
echo 'args = ["mcp"]'
} >> "$config"

printf " ${G}✓${N} swival ${D}→ $config${N}\n"
}

main() {
local platform version ext=""
platform="$(detect_platform)"
Expand Down Expand Up @@ -203,6 +227,7 @@ main() {
register_codex "$dest"
register_gemini "$dest"
register_cursor "$dest"
register_swival "$dest"

# Check PATH
case ":$PATH:" in
Expand Down
2 changes: 1 addition & 1 deletion website/app/index.zig
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ const html =
\\<div class="cta-section">
\\ <div class="cta-inner">
\\ <div class="cta-title">Give your agent a brain</div>
\\ <div class="cta-sub">One command. Auto-registers in Claude Code, Codex, Gemini CLI, and Cursor.</div>
\\ <div class="cta-sub">One command. Auto-registers in Claude Code, Codex, Gemini CLI, Cursor, and Swival.</div>
\\ <div class="hero-install" style="margin:0 auto 20px;justify-content:center;">
\\ <span class="prompt">$</span> curl -fsSL https://codedb.codegraff.com/install.sh | sh
\\ </div>
Expand Down
2 changes: 1 addition & 1 deletion website/app/quickstart.zig
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fn page() h.Node {
h.h1(.{ .class = "section-title" }, "Up and running in 60 seconds"),

h.h2(.{}, "1. Install"),
h.p(.{}, "One command. Downloads the binary for your platform and auto-registers codedb as an MCP server in Claude Code, Codex, Gemini CLI, and Cursor."),
h.p(.{}, "One command. Downloads the binary for your platform and auto-registers codedb as an MCP server in Claude Code, Codex, Gemini CLI, Cursor, and Swival."),
h.pre(.{},
\\curl -fsSL https://codedb.codegraff.com/install.sh | sh
),
Expand Down