-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmcp.json.example
More file actions
43 lines (42 loc) · 1.25 KB
/
Copy pathmcp.json.example
File metadata and controls
43 lines (42 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
"mcpServers": {
"jrag": {
"type": "stdio",
"command": "jrag-mcp",
"env": {
"JAVA_CODEBASE_RAG_INDEX_DIR": "/ABSOLUTE/PATH/TO/.java-codebase-rag",
"JAVA_CODEBASE_RAG_SOURCE_ROOT": "/ABSOLUTE/PATH/TO/your-java-project",
"SBERT_MODEL": "sentence-transformers/all-MiniLM-L6-v2"
}
}
}
}
// Server key is "jrag"; command is "jrag-mcp" (the legacy "java-codebase-rag-mcp"
// binary still works as an alias for backward compatibility).
// The JAVA_CODEBASE_RAG_* env-var keys and the .java-codebase-rag on-disk index
// dir are intentionally retained for backward compatibility.
//
// Minimal configuration with walk-up discovery (no env vars required):
// The tool walks up from the current directory to find .java-codebase-rag.yml,
// then uses the config's source_root (or the config directory itself) to find the index.
// Just omit the "env" section entirely:
//
// {
// "mcpServers": {
// "jrag": {
// "type": "stdio",
// "command": "jrag-mcp"
// }
// }
// }
//
// For Claude Code (which uses the same MCP protocol but different config format),
// the minimal configuration in .mcp.json is similar:
//
// {
// "mcpServers": {
// "jrag": {
// "command": "jrag-mcp"
// }
// }
// }