Hawkeye AI Bridge

io.github.Hawkeye-Zaragsoft由 GitHub 帳號 Hawkeye-Zaragsoft 發布v1.0.2更新於 Oct 24, 2026

Local codebase search for AI assistants via MCP. Requires Hawkeye and Hawkeye AI Bridge installed.

已驗證STDIO僅桌面知識與記憶開發者工具

概覽

AI 產生的概覽

將 AI 程式助理連接到 Hawkeye 的本機專案索引,讓它不必上傳儲存庫就能搜尋大型程式碼庫與資源。

可以做什麼
在已建立索引的專案中搜尋符號、資源、在地化鍵與檔案參照,回傳精簡的檔案與行號結果,或附帶脈絡與中繼資料的完整結果。將搜尋結果一次展開為合併後的程式碼片段。列出可搜尋群組與已設定的編輯器,並在指定行開啟檔案。檢查服務健康狀態、無視窗重新載入索引並驗證 Hawkeye 路徑。讀取與儲存設定,以及將文字複製到系統剪貼簿。
適用情境
適合助理在大型或舊有程式碼庫(包括遊戲專案)中工作,需要跨程式碼與非程式碼檔案尋找精確參照並控制 token 用量時使用。主打本機、地端搜尋,儲存庫無需上傳。
執行需求
以本機 Windows 程序(stdio)執行,需要安裝 Hawkeye 與 Hawkeye AI Bridge,並有一個已由 Hawkeye 建立索引的本機專案。伺服器需能找到 hawkeye.exe,通常透過 HAWKEYE_PATH 環境變數或 PATH。部分用戶端還需解壓縮隨附的 skill 才能獲得最佳效果。
安裝前請注意
Hawkeye 與 Hawkeye AI Bridge 是第三方的專有軟體。部分工具會改變狀態:儲存設定、重新載入索引、在編輯器中開啟檔案以及寫入系統剪貼簿。套用 AI 產生的程式碼變更前請先審閱。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Hawkeye AI Bridge,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Hawkeye AI Bridge MCP Server

Runway at 10M tokens/month - Days until a hypothetical 10M/month context budget is exhausted, if every one of 50 daily search steps looked like this one. Longer bar, more runway.

  • Broad grep - 1.6 days
  • Compact grep - 7.0 days
  • Hawkeye indexed - 29.0 days [image]

Local codebase search for Claude Code, VS Code, Cursor, and AI agents.

Hawkeye AI Bridge lets AI coding assistants query Hawkeye’s local project index through MCP, so they can find exact references across large codebases, assets, scripts, localization, config files, and project content without uploading the full repository.

Instead of giving an AI agent huge raw grep output, Hawkeye can return compact file/line results that help the agent decide which files are actually worth reading next.

  1. Search large projects locally
  2. Reduce token usage from noisy raw search output
  3. Find exact references across code and non-code project files
  4. Useful for C++, C#, Unreal Engine, Unity, legacy projects, and proprietary codebases
  5. Hawkeye runs locally/on-premises and does not use AI for indexing or searching
[image] [image]

Table of Contents


What is this?

This repository is the official public setup and discovery repository for using Hawkeye AI Bridge as an MCP server.

It does not contain the proprietary Hawkeye AI Bridge source code. Hawkeye and Hawkeye AI Bridge are proprietary software owned by Zaragsoft.


Why use Hawkeye AI Bridge?

Hawkeye helps developers quickly search and understand large projects. With MCP support, AI coding assistants can ask Hawkeye for fast local search results, saving tokens on each call.

Typical use cases:

  • Find all references to a class, function, symbol, asset, localization key, or file.
  • Search large codebases without relying only on editor search.
  • Help AI coding assistants understand more of the project before making changes.
  • Navigate large game/software projects with less reliance on tribal knowledge.
  • Keep search local/on-premises.
  • ~80% token reduction vs. blind file reading.
  • If you do not specify any groups then all groups will be used.

Prerequisites

Recommended install path: Place the AIBridge folder at C:\Program Files\Hawkeye\AIBridge\. Use this path in all examples below. If you install elsewhere, substitute your actual path throughout.


Client Setup


Claude Desktop

You don't need this zip for Claude Desktop. Download Hawkeye.mcpb from the release page and install it directly:

  • If .mcpb is a recognised file type on your system: double-click the file.
  • Otherwise: go to Settings → Extensions → Install Extension and select the file.

Claude Code (CLI)

Quick Start (5 steps)
  1. Install Hawkeye from https://www.zaragsoft.se/downloads if you haven't already.
  2. Move the AIBridge folder to a permanent location — recommended: C:\Program Files\Hawkeye\AIBridge\. Don't run it from Downloads; the registered path must keep working.
  3. Register the MCP server with Claude Code:
    powershell
    claude mcp add hawkeye --scope user -- "C:\Program Files\Hawkeye\AIBridge\HawkeyeAIBridge.exe"
  4. Install the Skill so Claude knows when to use Hawkeye. hawkeye-search.skill is a zip archive (it just contains SKILL.md), so it needs to be extracted, not renamed:
    powershell
    $skillDir = "$env:USERPROFILE\.claude\skills\hawkeye-search"New-Item -ItemType Directory -Force -Path $skillDir | Out-NullExpand-Archive -Path "C:\Program Files\Hawkeye\AIBridge\hawkeye-search.skill" -DestinationPath $skillDir -Force
  5. Verify — close and reopen your terminal, then run:
    powershell
    claude mcp list
    You should see hawkeye with 9 tools available.
Make sure Claude Code can find Hawkeye

The MCP server needs to locate hawkeye.exe. Pick one option:

Option A (recommended): Set HAWKEYE_PATH

powershell
# PowerShell — persistent[Environment]::SetEnvironmentVariable("HAWKEYE_PATH", "C:\Program Files\Hawkeye\hawkeye.exe", "User")
cmd
:: Command Prompt — persistentsetx HAWKEYE_PATH "C:\Program Files\Hawkeye\hawkeye.exe"

After setting an environment variable, close and reopen your terminal so the new value takes effect.

Option B: Add Hawkeye to PATH via Windows GUI

  1. Press Win, type Environment Variables, open Edit the system environment variables.
  2. Click Environment Variables… → under User variables, select Path → Edit… → New.
  3. Add C:\Program Files\Hawkeye and click OK on all dialogs.
  4. Restart your terminal.

Avoid setx PATH "%PATH%;..." from the command line — it can truncate PATH at 1024 characters. Use the GUI instead.

Notes on the registration command
  • --scope user makes Hawkeye available in every Claude Code session, not just the current folder.
  • The -- separator is required. It tells Claude Code where its own flags end and the registered command begins. Without it, registration may fail.

VS Code / GitHub Copilot

Hawkeye works as an MCP server in VS Code's Copilot Agent mode. Register the exe, then open Copilot Chat in Agent mode.

Quick install (default path)

[Install in VS Code]

Click the button above, then click Allow in VS Code.

Manual setup

Add this to your .vscode/mcp.json (create the file if it doesn't exist):

json
{  "servers": {    "hawkeye": {      "type": "stdio",      "command": "C:\\Program Files\\Hawkeye\\AIBridge\\HawkeyeAIBridge.exe"    }  }}

To make Hawkeye available across all projects, add it to your user-level config instead:

json
// %APPDATA%\Code\User\mcp.json{  "servers": {    "hawkeye": {      "type": "stdio",      "command": "C:\\Program Files\\Hawkeye\\AIBridge\\HawkeyeAIBridge.exe"    }  }}
Using Hawkeye in Copilot Chat
  1. Open Copilot Chat (Ctrl+Alt+I)
  2. Switch to Agent mode (the dropdown at the top — must be Agent, not Ask or Edit)
  3. Try: "Search for findTeam in my codebase"

Note: The hawkeye-search.skill file is for Claude Code and Claude Desktop only — VS Code uses Copilot's own context system and doesn't need it.


Cursor

Open Settings → Tools & MCP → New MCP Server and add:

json
{  "mcpServers": {    "hawkeye": {      "command": "cmd",      "args": ["/c", "C:\\Program Files\\Hawkeye\\AIBridge\\HawkeyeAIBridge.exe"],      "env": {}    }  }}

Why cmd /c? Cursor passes the command path to the shell without quoting it, which breaks paths containing spaces (like C:\Program Files\). Wrapping it with cmd /c works around this.

Adjust the path if Hawkeye AI Bridge is installed somewhere else.


OpenCode

Add the following to your opencode.json (create it in your project root or home directory if it doesn't exist):

json
{  "$schema": "https://opencode.ai/config.json",  "mcp": {    "hawkeye": {      "type": "local",      "command": ["C:\\Program Files\\Hawkeye\\AIBridge\\HawkeyeAIBridge.exe"]    }  }}

Three things differ from the Claude Code config:

  • The key is "mcp", not "mcpServers"
  • command is an array of strings, not a command + args split
  • "type": "local" is required
Installing the Skill for OpenCode

The Skill is required for OpenCode. Without it, OpenCode will try to call hawkeye.exe directly on the command line rather than routing tool calls through the MCP server.

OpenCode expects skills to be extracted from the .skill zip archive:

powershell
$skillDir = "$env:USERPROFILE\.opencode\skills"New-Item -ItemType Directory -Force -Path $skillDir | Out-Null
$tempZip = "$env:TEMP\hawkeye-search.zip"Copy-Item "C:\Program Files\Hawkeye\AIBridge\hawkeye-search.skill" $tempZip -ForceExpand-Archive -Path $tempZip -DestinationPath $skillDir -ForceRemove-Item $tempZip

Once both are in place, restart OpenCode and try: "Find where PlayerController is defined." You should see it call hawkeye_search_minimal.


Installing the Skill for Claude

The Skill teaches Claude when and how to use the Hawkeye tools. Without it, Claude has to guess from tool descriptions alone — results will be worse.

The shipped file is called hawkeye-search.skill, but it's actually a zip archive containing a single SKILL.md — it needs to be extracted, not renamed. (Renaming the zip to SKILL.md produces a file with that name but zip contents inside, which Claude can't read as a skill.)

PowerShell (one command):

powershell
$skillDir = "$env:USERPROFILE\.claude\skills\hawkeye-search"New-Item -ItemType Directory -Force -Path $skillDir | Out-NullExpand-Archive -Path "C:\Program Files\Hawkeye\AIBridge\hawkeye-search.skill" -DestinationPath $skillDir -Force

Manual:

  1. Open File Explorer and navigate to %USERPROFILE%\.claude\skills\ (create the skills folder if it doesn't exist).
  2. Create a new folder named hawkeye-search.
  3. Right-click hawkeye-search.skill and choose Extract All..., then extract into the hawkeye-search folder you just created. (Windows recognizes the .skill file as a zip archive even though the extension isn't .zip — if "Extract All" isn't offered, copy the file, rename the copy's extension to .zip, then extract that instead.)
  4. Confirm the result is hawkeye-search\SKILL.md — a plain text file, not the original archive.

To restrict the Skill to a single project, place SKILL.md at <your-project>\.claude\skills\hawkeye-search\SKILL.md instead.


Available Tools

ToolDescription
hawkeye_search_minimalToken-efficient search — returns only file paths and line numbers. 91% fewer tokens than grep. Best for chat-based lookups.
hawkeye_expand_contextTakes the {file, lines} hits from hawkeye_search_minimal and returns merged, context-expanded code snippets in one call — no per-range Read calls needed. Server-side merging (default mergeGap=8) collapses nearby hits into single blocks.
hawkeye_searchFull search with metadata — returns complete result objects with context. Best for detailed analysis.
hawkeye_get_groupsList all searchable code groups configured in Hawkeye.
hawkeye_get_editorsList configured editors for opening files.
hawkeye_execute_editorOpen a file in a configured editor at a specific line number.
hawkeye_health_checkVerify Hawkeye service is running and accessible.
hawkeye_reload_indexTrigger a headless Hawkeye index reload (no window, no stolen focus) on request.
validate_hawkeye_pathCheck that the configured Hawkeye path exists and is valid.
get_settingsRetrieve current Hawkeye configuration (path, max results, case sensitivity).
save_settingsSave Hawkeye configuration.
copy_to_clipboardCopy text to the system clipboard.

Token Savings

ApproachTokens used
Blind file reading (no Hawkeye)~100,000 per session
With hawkeye_search_minimal~20,000 per session
Savings~80% reduction

Example Prompts

Ask your AI coding assistant:

  • List groups inside Hawkeye to find all the groups.
  • Use Hawkeye to find all references to this class.
  • Search the workspace for where this asset name is used.
  • Find likely files related to the inventory system in group 4,7.
  • Search for this localization key across the project.
  • Find where this Blueprint or Unreal asset is referenced.
  • Show me files related to feature loadout before editing code.
  • Find all the sounds for explosion inside groups 1,5,7
  • Use Hawkeye to find code and content references before changing this file.
  • If you do not specify any groups then all groups will be used.

Privacy and Security

  • Hawkeye runs locally/on-premises.
  • Hawkeye does not upload your source code.
  • Hawkeye itself does not use AI for indexing or searching.
  • The MCP server only exposes Hawkeye functionality to tools you configure locally.
  • You control which MCP clients can connect to it.
  • Always review AI-generated code changes before applying them.
  • Our privacy guidelines are available here - https://www.zaragsoft.se/privacy

Updating

When a new version of HawkeyeAIBridge.exe is released:

  • Same install path: just overwrite the exe. No re-registration needed.
  • Different path: unregister and re-add:
    powershell
    claude mcp remove hawkeyeclaude mcp add hawkeye --scope user -- "C:\Program Files\Hawkeye\AIBridge\HawkeyeAIBridge.exe"

When a new hawkeye-search.skill ships, repeat the Skill install step — Expand-Archive -Force will overwrite the existing SKILL.md.


Removing

powershell
# Unregister from Claude Codeclaude mcp remove hawkeye
# Delete the Skill (optional)Remove-Item -Recurse "$env:USERPROFILE\.claude\skills\hawkeye-search"
# Delete the install folder (optional)Remove-Item -Recurse "C:\Program Files\Hawkeye\AIBridge"
# Remove the HAWKEYE_PATH environment variable (optional)[Environment]::SetEnvironmentVariable("HAWKEYE_PATH", $null, "User")

Troubleshooting

claude command not found

Claude Code isn't installed or isn't on your PATH. Install from https://docs.claude.com/en/docs/build-with-claude/claude-code and restart your terminal.

claude mcp list doesn't show hawkeye

You may have registered it in a different scope. Re-register with --scope user:

powershell
claude mcp remove hawkeyeclaude mcp add hawkeye --scope user -- "C:\Program Files\Hawkeye\AIBridge\HawkeyeAIBridge.exe"

claude mcp list shows hawkeye but with 0 tools

The exe was registered but failed to start. Common causes:

  • The AIBridge folder was moved or deleted after registration.
  • Hawkeye itself can't be found — run hawkeye --version in a fresh terminal to check.
  • Fix: claude mcp remove hawkeye then re-register.

Hawkeye not found

Error: Failed to start Hawkeye process
  1. Open a new terminal and run hawkeye --version.
  2. If that fails, set HAWKEYE_PATH (see Prerequisites above) and close/reopen your terminal.
  3. Environment variables only apply to terminals opened after you set them.

Skill isn't being used by Claude

  • Confirm the file exists at %USERPROFILE%\.claude\skills\hawkeye-search\SKILL.md and that it's a plain text file, not the .skill archive under a different name. Right-click it → Properties; if the size matches the original .skill file (~14 KB) and it won't open in a text editor, it was renamed instead of extracted — delete it and re-run the Expand-Archive step above.
  • Restart your Claude Code session — Skills are loaded at session start.

Cursor: connection failed with path error

If Cursor logs show 'C:\Program' is not recognized as an internal or external command, the path with spaces is being passed unquoted. Use the cmd /c workaround shown in the Cursor section above.

No groups returned

No groups available / Empty group list
  1. Run hawkeye --getgroups manually to test.
  2. Verify Hawkeye configuration is correct.
  3. Check working directory permissions.

Timeout errors

Error: Operation timed out waiting for Hawkeye
  1. Check if the Hawkeye process is hanging.
  2. Check system resources.
  3. Restart Hawkeye and try again.

License

Dual License:

  • SKILL.md and skill components: MIT License — freely modifiable and redistributable.
  • HawkeyeAIBridge executable: Proprietary (Zaragsoft) — free to use, cannot be modified, reverse-engineered, or redistributed.

See LICENSE for complete terms.


Support

來源:README.md,提交 7e5e7e6

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.2最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。