
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.
概览
将 AI 编程助手连接到 Hawkeye 的本地项目索引,使其无需上传仓库即可搜索大型代码库和资源。
- 可以做什么
- 在已索引项目中搜索符号、资源、本地化键和文件引用,返回精简的文件与行号结果,或带上下文和元数据的完整结果。将搜索结果一次性展开为合并后的代码片段。列出可搜索分组和已配置编辑器,并在指定行打开文件。检查服务健康状态、无界面重载索引并校验 Hawkeye 路径。读取和保存设置,以及将文本复制到系统剪贴板。
- 适用场景
- 适合助手在大型或遗留代码库(包括游戏项目)中工作,需要跨代码和非代码文件查找精确引用并控制 token 消耗时使用。面向本地、内网搜索,仓库无需上传。
- 运行要求
- 作为本地 Windows 进程(stdio)运行,需要安装 Hawkeye 和 Hawkeye AI Bridge,并有一个已由 Hawkeye 建立索引的本地项目。服务器需能找到 hawkeye.exe,通常通过 HAWKEYE_PATH 环境变量或 PATH。部分客户端还需解压随附的 skill 才能获得最佳效果。
安装
在 SourceWeft 中
- 打开 控制台中的 Hawkeye AI Bridge,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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.
- Search large projects locally
- Reduce token usage from noisy raw search output
- Find exact references across code and non-code project files
- Useful for C++, C#, Unreal Engine, Unity, legacy projects, and proprietary codebases
- Hawkeye runs locally/on-premises and does not use AI for indexing or searching
Table of Contents
- What is this?
- Why use Hawkeye AI Bridge?
- Prerequisites
- Client Setup
- Installing the Skill for Claude
- Available Tools
- Token Savings
- Example Prompts
- Privacy and Security
- Updating
- Removing
- Troubleshooting
- License
- Support
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
- Hawkeye installed — get it from https://www.zaragsoft.se/downloads
- Hawkeye AI Bridge installed — get it from https://www.zaragsoft.se/aibridge
- A local project indexed by Hawkeye
- Video walkthrough: https://www.youtube.com/watch?v=l1J-G36QSwI
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
.mcpbis 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)
- Install Hawkeye from https://www.zaragsoft.se/downloads if you haven't already.
- Move the
AIBridgefolder to a permanent location — recommended:C:\Program Files\Hawkeye\AIBridge\. Don't run it from Downloads; the registered path must keep working. - Register the MCP server with Claude Code:
- Install the Skill so Claude knows when to use Hawkeye.
hawkeye-search.skillis a zip archive (it just containsSKILL.md), so it needs to be extracted, not renamed: - Verify — close and reopen your terminal, then run:
You should see
hawkeyewith 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
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
- Press
Win, type Environment Variables, open Edit the system environment variables. - Click Environment Variables… → under User variables, select Path → Edit… → New.
- Add
C:\Program Files\Hawkeyeand click OK on all dialogs. - 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 usermakes 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)
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):
To make Hawkeye available across all projects, add it to your user-level config instead:
Using Hawkeye in Copilot Chat
- Open Copilot Chat (
Ctrl+Alt+I) - Switch to Agent mode (the dropdown at the top — must be Agent, not Ask or Edit)
- Try: "Search for findTeam in my codebase"
Note: The
hawkeye-search.skillfile 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:
Why
cmd /c? Cursor passes the command path to the shell without quoting it, which breaks paths containing spaces (likeC:\Program Files\). Wrapping it withcmd /cworks 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):
Three things differ from the Claude Code config:
- The key is
"mcp", not"mcpServers" commandis an array of strings, not acommand+argssplit"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:
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):
Manual:
- Open File Explorer and navigate to
%USERPROFILE%\.claude\skills\(create theskillsfolder if it doesn't exist). - Create a new folder named
hawkeye-search. - Right-click
hawkeye-search.skilland choose Extract All..., then extract into thehawkeye-searchfolder you just created. (Windows recognizes the.skillfile 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.) - 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.mdat<your-project>\.claude\skills\hawkeye-search\SKILL.mdinstead.
Available Tools
Token Savings
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:
When a new hawkeye-search.skill ships, repeat the Skill install step — Expand-Archive -Force will overwrite the existing SKILL.md.
Removing
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:
claude mcp list shows hawkeye but with 0 tools
The exe was registered but failed to start. Common causes:
- The
AIBridgefolder was moved or deleted after registration. - Hawkeye itself can't be found — run
hawkeye --versionin a fresh terminal to check. - Fix:
claude mcp remove hawkeyethen re-register.
Hawkeye not found
- Open a new terminal and run
hawkeye --version. - If that fails, set
HAWKEYE_PATH(see Prerequisites above) and close/reopen your terminal. - 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.mdand that it's a plain text file, not the.skillarchive under a different name. Right-click it → Properties; if the size matches the original.skillfile (~14 KB) and it won't open in a text editor, it was renamed instead of extracted — delete it and re-run theExpand-Archivestep 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
- Run
hawkeye --getgroupsmanually to test. - Verify Hawkeye configuration is correct.
- Check working directory permissions.
Timeout errors
- Check if the Hawkeye process is hanging.
- Check system resources.
- 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
- Hawkeye: https://www.zaragsoft.se/downloads
- Hawkeye AI Bridge: https://www.zaragsoft.se/aibridge
- Claude Code: https://docs.claude.com/en/docs/build-with-claude/claude-code
- Smithery: [smithery badge]
- Questions or feedback about Hawkeye AI Bridge: [email protected]
来源:README.md,提交 7e5e7e6
工具
0版本历史
1- v1.0.2最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。