Roaming RAG for codebases: splits files into logical chunks and lets the LLM search them without embeddings.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add mcpunk --env MCPUNK_INCLUDE_CHARS_IN_RESPONSE='<MCPUNK_INCLUDE_CHARS_IN_RESPONSE>' -- uvx mcpunk~/.codex/config.toml
[mcp_servers.mcpunk]
command = "uvx"
args = ["mcpunk"]
env = { MCPUNK_INCLUDE_CHARS_IN_RESPONSE = "<MCPUNK_INCLUDE_CHARS_IN_RESPONSE>" }
# codex mcp add mcpunk --env MCPUNK_INCLUDE_CHARS_IN_RESPONSE='<MCPUNK_INCLUDE_CHARS_IN_RESPONSE>' -- uvx mcpunk~/.cursor/mcp.json
{
"mcpServers": {
"mcpunk": {
"command": "uvx",
"args": [
"mcpunk"
],
"env": {
"MCPUNK_INCLUDE_CHARS_IN_RESPONSE": "<MCPUNK_INCLUDE_CHARS_IN_RESPONSE>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"mcpunk": {
"type": "stdio",
"command": "uvx",
"args": [
"mcpunk"
],
"env": {
"MCPUNK_INCLUDE_CHARS_IN_RESPONSE": "<MCPUNK_INCLUDE_CHARS_IN_RESPONSE>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"mcpunk": {
"command": "uvx",
"args": [
"mcpunk"
],
"env": {
"MCPUNK_INCLUDE_CHARS_IN_RESPONSE": "<MCPUNK_INCLUDE_CHARS_IN_RESPONSE>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"mcpunk": {
"command": "uvx",
"args": [
"mcpunk"
],
"env": {
"MCPUNK_INCLUDE_CHARS_IN_RESPONSE": "<MCPUNK_INCLUDE_CHARS_IN_RESPONSE>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"mcpunk": {
"command": "uvx",
"args": [
"mcpunk"
],
"env": {
"MCPUNK_INCLUDE_CHARS_IN_RESPONSE": "<MCPUNK_INCLUDE_CHARS_IN_RESPONSE>"
}
}
}
}需要的环境变量
MCPUNK_INCLUDE_CHARS_IN_RESPONSE
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。