Skip to content
Merged
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
40 changes: 20 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -516,13 +516,13 @@ The formula installs all four executables from the current release archive. The
Download the current Linux x64 release and build your first graph:

```sh
mkdir -p "$HOME/.local/lib/cgraph/bin-v0.9.6" "$HOME/.local/bin"
curl -fL https://github.com/Nxtsoft/CGraph/releases/download/bin-v0.9.6/cgraph-linux-x64.tar.gz \
-o "$HOME/.local/lib/cgraph/bin-v0.9.6/cgraph.tar.gz"
tar -xzf "$HOME/.local/lib/cgraph/bin-v0.9.6/cgraph.tar.gz" \
-C "$HOME/.local/lib/cgraph/bin-v0.9.6"
mkdir -p "$HOME/.local/lib/cgraph/bin-v0.9.7" "$HOME/.local/bin"
curl -fL https://github.com/Nxtsoft/CGraph/releases/download/bin-v0.9.7/cgraph-linux-x64.tar.gz \
-o "$HOME/.local/lib/cgraph/bin-v0.9.7/cgraph.tar.gz"
tar -xzf "$HOME/.local/lib/cgraph/bin-v0.9.7/cgraph.tar.gz" \
-C "$HOME/.local/lib/cgraph/bin-v0.9.7"
for name in cgraph graphd cgraph-client cgraph-mcp; do
ln -sf "$HOME/.local/lib/cgraph/bin-v0.9.6/$name" "$HOME/.local/bin/$name"
ln -sf "$HOME/.local/lib/cgraph/bin-v0.9.7/$name" "$HOME/.local/bin/$name"
done
export PATH="$HOME/.local/bin:$PATH"

Expand All @@ -534,16 +534,16 @@ Open `cgraph-out/graph.html` in a browser (`open cgraph-out/graph.html` on macOS

## Install & Setup

Release `bin-v0.9.6` provides all four executables (`cgraph`, `graphd`, `cgraph-client`, and `cgraph-mcp`) in each archive:
Release `bin-v0.9.7` provides all four executables (`cgraph`, `graphd`, `cgraph-client`, and `cgraph-mcp`) in each archive:

| Platform | Architecture | Archive |
| --- | --- | --- |
| Linux | x86_64 / amd64 | [`cgraph-linux-x64.tar.gz`](https://github.com/Nxtsoft/CGraph/releases/download/bin-v0.9.6/cgraph-linux-x64.tar.gz) |
| Linux | arm64 / aarch64 | [`cgraph-linux-arm64.tar.gz`](https://github.com/Nxtsoft/CGraph/releases/download/bin-v0.9.6/cgraph-linux-arm64.tar.gz) |
| macOS | Apple silicon / arm64 | [`cgraph-macos-arm64.tar.gz`](https://github.com/Nxtsoft/CGraph/releases/download/bin-v0.9.6/cgraph-macos-arm64.tar.gz) |
| macOS | Intel / x86_64 | [`cgraph-macos-x64.tar.gz`](https://github.com/Nxtsoft/CGraph/releases/download/bin-v0.9.6/cgraph-macos-x64.tar.gz) |
| Linux | x86_64 / amd64 | [`cgraph-linux-x64.tar.gz`](https://github.com/Nxtsoft/CGraph/releases/download/bin-v0.9.7/cgraph-linux-x64.tar.gz) |
| Linux | arm64 / aarch64 | [`cgraph-linux-arm64.tar.gz`](https://github.com/Nxtsoft/CGraph/releases/download/bin-v0.9.7/cgraph-linux-arm64.tar.gz) |
| macOS | Apple silicon / arm64 | [`cgraph-macos-arm64.tar.gz`](https://github.com/Nxtsoft/CGraph/releases/download/bin-v0.9.7/cgraph-macos-arm64.tar.gz) |
| macOS | Intel / x86_64 | [`cgraph-macos-x64.tar.gz`](https://github.com/Nxtsoft/CGraph/releases/download/bin-v0.9.7/cgraph-macos-x64.tar.gz) |

Use `uname -s` and `uname -m` to select the archive. The quick start installs versioned files under `~/.local/lib/cgraph/bin-v0.9.6` and puts stable symlinks in `~/.local/bin`; add that directory to your `PATH` if needed. MCP client configs should use the absolute versioned path, because clients may not inherit your shell's `PATH`.
Use `uname -s` and `uname -m` to select the archive. The quick start installs versioned files under `~/.local/lib/cgraph/bin-v0.9.7` and puts stable symlinks in `~/.local/bin`; add that directory to your `PATH` if needed. MCP client configs should use the absolute versioned path, because clients may not inherit your shell's `PATH`.

### Build from source

Expand Down Expand Up @@ -640,8 +640,8 @@ Claude Code sets `CLAUDE_PROJECT_DIR` per session, so a single registration work

```sh
claude mcp add --scope user --transport stdio cgraph \
-- /home/you/.local/lib/cgraph/bin-v0.9.6/cgraph-mcp \
--daemon /home/you/.local/lib/cgraph/bin-v0.9.6/graphd
-- /home/you/.local/lib/cgraph/bin-v0.9.7/cgraph-mcp \
--daemon /home/you/.local/lib/cgraph/bin-v0.9.7/graphd
```

Or commit a project-scoped `.mcp.json` at the repo root to share it with collaborators:
Expand All @@ -650,8 +650,8 @@ Or commit a project-scoped `.mcp.json` at the repo root to share it with collabo
{
"mcpServers": {
"cgraph": {
"command": "/home/you/.local/lib/cgraph/bin-v0.9.6/cgraph-mcp",
"args": ["--daemon", "/home/you/.local/lib/cgraph/bin-v0.9.6/graphd"]
"command": "/home/you/.local/lib/cgraph/bin-v0.9.7/cgraph-mcp",
"args": ["--daemon", "/home/you/.local/lib/cgraph/bin-v0.9.7/graphd"]
}
}
}
Expand All @@ -665,16 +665,16 @@ Codex does not set `CLAUDE_PROJECT_DIR`, so the server falls back to the working

```sh
codex mcp add cgraph \
-- /home/you/.local/lib/cgraph/bin-v0.9.6/cgraph-mcp \
--daemon /home/you/.local/lib/cgraph/bin-v0.9.6/graphd
-- /home/you/.local/lib/cgraph/bin-v0.9.7/cgraph-mcp \
--daemon /home/you/.local/lib/cgraph/bin-v0.9.7/graphd
```

…or edit `~/.codex/config.toml` directly (add `"--root", "/abs/path/to/your/project"` to `args` to pin a project regardless of working directory):

```toml
[mcp_servers.cgraph]
command = "/home/you/.local/lib/cgraph/bin-v0.9.6/cgraph-mcp"
args = ["--daemon", "/home/you/.local/lib/cgraph/bin-v0.9.6/graphd"]
command = "/home/you/.local/lib/cgraph/bin-v0.9.7/cgraph-mcp"
args = ["--daemon", "/home/you/.local/lib/cgraph/bin-v0.9.7/graphd"]
```

Restart Codex and run `/mcp` in the TUI to confirm.
Expand Down
40 changes: 20 additions & 20 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,13 @@ vendor/ 内置的 tree-sitter core 与语法
下载当前 Linux x64 版本并构建第一个图谱:

```sh
mkdir -p "$HOME/.local/lib/cgraph/bin-v0.9.6" "$HOME/.local/bin"
curl -fL https://github.com/Nxtsoft/CGraph/releases/download/bin-v0.9.6/cgraph-linux-x64.tar.gz \
-o "$HOME/.local/lib/cgraph/bin-v0.9.6/cgraph.tar.gz"
tar -xzf "$HOME/.local/lib/cgraph/bin-v0.9.6/cgraph.tar.gz" \
-C "$HOME/.local/lib/cgraph/bin-v0.9.6"
mkdir -p "$HOME/.local/lib/cgraph/bin-v0.9.7" "$HOME/.local/bin"
curl -fL https://github.com/Nxtsoft/CGraph/releases/download/bin-v0.9.7/cgraph-linux-x64.tar.gz \
-o "$HOME/.local/lib/cgraph/bin-v0.9.7/cgraph.tar.gz"
tar -xzf "$HOME/.local/lib/cgraph/bin-v0.9.7/cgraph.tar.gz" \
-C "$HOME/.local/lib/cgraph/bin-v0.9.7"
for name in cgraph graphd cgraph-client cgraph-mcp; do
ln -sf "$HOME/.local/lib/cgraph/bin-v0.9.6/$name" "$HOME/.local/bin/$name"
ln -sf "$HOME/.local/lib/cgraph/bin-v0.9.7/$name" "$HOME/.local/bin/$name"
done
export PATH="$HOME/.local/bin:$PATH"

Expand All @@ -148,16 +148,16 @@ cgraph --root . --out cgraph-out

## 安装与配置

`bin-v0.9.6` 发布版的每个压缩包都包含四个可执行文件(`cgraph`、`graphd`、`cgraph-client` 和 `cgraph-mcp`):
`bin-v0.9.7` 发布版的每个压缩包都包含四个可执行文件(`cgraph`、`graphd`、`cgraph-client` 和 `cgraph-mcp`):

| 平台 | 架构 | 压缩包 |
| --- | --- | --- |
| Linux | x86_64 / amd64 | [`cgraph-linux-x64.tar.gz`](https://github.com/Nxtsoft/CGraph/releases/download/bin-v0.9.6/cgraph-linux-x64.tar.gz) |
| Linux | arm64 / aarch64 | [`cgraph-linux-arm64.tar.gz`](https://github.com/Nxtsoft/CGraph/releases/download/bin-v0.9.6/cgraph-linux-arm64.tar.gz) |
| macOS | Apple 芯片 / arm64 | [`cgraph-macos-arm64.tar.gz`](https://github.com/Nxtsoft/CGraph/releases/download/bin-v0.9.6/cgraph-macos-arm64.tar.gz) |
| macOS | Intel / x86_64 | [`cgraph-macos-x64.tar.gz`](https://github.com/Nxtsoft/CGraph/releases/download/bin-v0.9.6/cgraph-macos-x64.tar.gz) |
| Linux | x86_64 / amd64 | [`cgraph-linux-x64.tar.gz`](https://github.com/Nxtsoft/CGraph/releases/download/bin-v0.9.7/cgraph-linux-x64.tar.gz) |
| Linux | arm64 / aarch64 | [`cgraph-linux-arm64.tar.gz`](https://github.com/Nxtsoft/CGraph/releases/download/bin-v0.9.7/cgraph-linux-arm64.tar.gz) |
| macOS | Apple 芯片 / arm64 | [`cgraph-macos-arm64.tar.gz`](https://github.com/Nxtsoft/CGraph/releases/download/bin-v0.9.7/cgraph-macos-arm64.tar.gz) |
| macOS | Intel / x86_64 | [`cgraph-macos-x64.tar.gz`](https://github.com/Nxtsoft/CGraph/releases/download/bin-v0.9.7/cgraph-macos-x64.tar.gz) |

用 `uname -s` 和 `uname -m` 选择压缩包。快速开始把带版本的文件安装到 `~/.local/lib/cgraph/bin-v0.9.6`,并在 `~/.local/bin` 中创建稳定的软链接;如有需要,请把该目录加入 `PATH`。MCP 客户端配置应使用带版本的绝对路径,因为客户端未必继承 shell 的 `PATH`。
用 `uname -s` 和 `uname -m` 选择压缩包。快速开始把带版本的文件安装到 `~/.local/lib/cgraph/bin-v0.9.7`,并在 `~/.local/bin` 中创建稳定的软链接;如有需要,请把该目录加入 `PATH`。MCP 客户端配置应使用带版本的绝对路径,因为客户端未必继承 shell 的 `PATH`。

### 从源码构建

Expand Down Expand Up @@ -244,8 +244,8 @@ Claude Code 会按会话设置 `CLAUDE_PROJECT_DIR`,因此一次注册即可

```sh
claude mcp add --scope user --transport stdio cgraph \
-- /home/you/.local/lib/cgraph/bin-v0.9.6/cgraph-mcp \
--daemon /home/you/.local/lib/cgraph/bin-v0.9.6/graphd
-- /home/you/.local/lib/cgraph/bin-v0.9.7/cgraph-mcp \
--daemon /home/you/.local/lib/cgraph/bin-v0.9.7/graphd
```

或在仓库根目录提交一个按项目作用域的 `.mcp.json`,以便与协作者共享:
Expand All @@ -254,8 +254,8 @@ claude mcp add --scope user --transport stdio cgraph \
{
"mcpServers": {
"cgraph": {
"command": "/home/you/.local/lib/cgraph/bin-v0.9.6/cgraph-mcp",
"args": ["--daemon", "/home/you/.local/lib/cgraph/bin-v0.9.6/graphd"]
"command": "/home/you/.local/lib/cgraph/bin-v0.9.7/cgraph-mcp",
"args": ["--daemon", "/home/you/.local/lib/cgraph/bin-v0.9.7/graphd"]
}
}
}
Expand All @@ -269,16 +269,16 @@ Codex 不设置 `CLAUDE_PROJECT_DIR`,因此服务器回退到 Codex 启动它

```sh
codex mcp add cgraph \
-- /home/you/.local/lib/cgraph/bin-v0.9.6/cgraph-mcp \
--daemon /home/you/.local/lib/cgraph/bin-v0.9.6/graphd
-- /home/you/.local/lib/cgraph/bin-v0.9.7/cgraph-mcp \
--daemon /home/you/.local/lib/cgraph/bin-v0.9.7/graphd
```

……或直接编辑 `~/.codex/config.toml`(在 `args` 中加入 `"--root", "/abs/path/to/your/project"` 可无视工作目录锁定某个项目):

```toml
[mcp_servers.cgraph]
command = "/home/you/.local/lib/cgraph/bin-v0.9.6/cgraph-mcp"
args = ["--daemon", "/home/you/.local/lib/cgraph/bin-v0.9.6/graphd"]
command = "/home/you/.local/lib/cgraph/bin-v0.9.7/cgraph-mcp"
args = ["--daemon", "/home/you/.local/lib/cgraph/bin-v0.9.7/graphd"]
```

编辑后重启 Codex,在 TUI 中运行 `/mcp` 确认。
Expand Down
2 changes: 1 addition & 1 deletion integrations/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "cgraph",
"displayName": "CGraph",
"version": "0.9.6",
"version": "0.9.7",
"description": "Code graph for coding agents: ranked symbol search, callers and callees, blast radius, token-budgeted context and cross-service impact, served by a resident per-project daemon over MCP.",
"author": {
"name": "Nxtsoft",
Expand Down
10 changes: 5 additions & 5 deletions integrations/launcher/release.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"repository": "Nxtsoft/CGraph",
"tag": "bin-v0.9.6",
"tag": "bin-v0.9.7",
"assets": {
"linux-arm64": {
"name": "cgraph-linux-arm64.tar.gz",
"sha256": "f970a332e46918fe2358077826f48af1badafd6351cce68bc2c21dd90e27d296"
"sha256": "e640d5966c8c27e691c14f49e7377d34b834ae0c86e4951b4253b112c410accf"
},
"linux-x64": {
"name": "cgraph-linux-x64.tar.gz",
"sha256": "afdcb4da4f6bc42ec9a28d55a29cab068413f9991e7a96a0c54098ac07cca5cc"
"sha256": "8fd38c25b1d02a6659e55b5fb4a63b841a92cb13d6a5892d8777aea84a2ac924"
},
"macos-arm64": {
"name": "cgraph-macos-arm64.tar.gz",
"sha256": "55414b665fd8dcf98dd700c9034a5ebac8e2e19e8c4e2e106bbf56310c810cac"
"sha256": "e12322ce780b45ffa0264758a325bab956aaa57658142d9db801cbecf688e4d4"
},
"macos-x64": {
"name": "cgraph-macos-x64.tar.gz",
"sha256": "7dea72c4d848adce94fb5931c3964760d451a9a2b22daa30645987fc2514dc5e"
"sha256": "db7cc6c36721f0c5607d714ac7a1471cb894481474002df881d0ddd6ae79b27f"
}
}
}
18 changes: 9 additions & 9 deletions packaging/homebrew/cgraph.rb
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
class Cgraph < Formula
desc "Code graph and change-context engine for coding agents"
homepage "https://github.com/Nxtsoft/CGraph"
version "0.9.6"
version "0.9.7"
license "MIT"

on_macos do
on_arm do
url "https://github.com/Nxtsoft/CGraph/releases/download/bin-v0.9.6/cgraph-macos-arm64.tar.gz"
sha256 "55414b665fd8dcf98dd700c9034a5ebac8e2e19e8c4e2e106bbf56310c810cac"
url "https://github.com/Nxtsoft/CGraph/releases/download/bin-v0.9.7/cgraph-macos-arm64.tar.gz"
sha256 "e12322ce780b45ffa0264758a325bab956aaa57658142d9db801cbecf688e4d4"
end
on_intel do
url "https://github.com/Nxtsoft/CGraph/releases/download/bin-v0.9.6/cgraph-macos-x64.tar.gz"
sha256 "7dea72c4d848adce94fb5931c3964760d451a9a2b22daa30645987fc2514dc5e"
url "https://github.com/Nxtsoft/CGraph/releases/download/bin-v0.9.7/cgraph-macos-x64.tar.gz"
sha256 "db7cc6c36721f0c5607d714ac7a1471cb894481474002df881d0ddd6ae79b27f"
end
end

on_linux do
on_arm do
url "https://github.com/Nxtsoft/CGraph/releases/download/bin-v0.9.6/cgraph-linux-arm64.tar.gz"
sha256 "f970a332e46918fe2358077826f48af1badafd6351cce68bc2c21dd90e27d296"
url "https://github.com/Nxtsoft/CGraph/releases/download/bin-v0.9.7/cgraph-linux-arm64.tar.gz"
sha256 "e640d5966c8c27e691c14f49e7377d34b834ae0c86e4951b4253b112c410accf"
end
on_intel do
url "https://github.com/Nxtsoft/CGraph/releases/download/bin-v0.9.6/cgraph-linux-x64.tar.gz"
sha256 "afdcb4da4f6bc42ec9a28d55a29cab068413f9991e7a96a0c54098ac07cca5cc"
url "https://github.com/Nxtsoft/CGraph/releases/download/bin-v0.9.7/cgraph-linux-x64.tar.gz"
sha256 "8fd38c25b1d02a6659e55b5fb4a63b841a92cb13d6a5892d8777aea84a2ac924"
end
end

Expand Down
2 changes: 1 addition & 1 deletion packaging/npm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cgraph-mcp",
"version": "0.9.6",
"version": "0.9.7",
"description": "CGraph code graph MCP server for coding agents; runs the verified native release for your platform",
"mcpName": "io.github.Nxtsoft/cgraph",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions server.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
"url": "https://github.com/Nxtsoft/CGraph",
"source": "github"
},
"version": "0.9.6",
"version": "0.9.7",
"packages": [
{
"registryType": "npm",
"identifier": "cgraph-mcp",
"version": "0.9.6",
"version": "0.9.7",
"runtimeHint": "npx",
"transport": {
"type": "stdio"
Expand Down
Loading