domain-rag-mcp-server 3.1.0 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +53 -49
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -842,59 +842,13 @@ async function initPostgres() {
842
842
  }
843
843
  var tools = [
844
844
  // ============================================
845
- // Server Code Search Tools (HIGHEST PRIORITY)
846
- // Direct search on server filesystem repositories
847
- // ============================================
848
- {
849
- name: "search_server_code",
850
- description: "HIGHEST PRIORITY - Search source code on the server. Searches across all indexed repositories. Use for finding implementations, classes, functions, or any code patterns. Much faster than vector search for exact matches.",
851
- inputSchema: {
852
- type: "object",
853
- properties: {
854
- query: {
855
- type: "string",
856
- description: "Search query - code pattern, class name, function, or text to find"
857
- },
858
- mode: {
859
- type: "string",
860
- enum: ["content", "filename"],
861
- description: 'Search mode: "content" for grep-like search in file contents, "filename" for file name pattern matching',
862
- default: "content"
863
- },
864
- repos: {
865
- type: "array",
866
- items: { type: "string" },
867
- description: 'Filter by repository names (optional). Example: ["frontend", "backend"]'
868
- },
869
- extensions: {
870
- type: "array",
871
- items: { type: "string" },
872
- description: 'File extensions to search (optional). Example: [".ts", ".cs"]'
873
- },
874
- limit: {
875
- type: "number",
876
- description: "Maximum results (default: 20)",
877
- default: 20
878
- }
879
- },
880
- required: ["query"]
881
- }
882
- },
883
- {
884
- name: "list_server_repos",
885
- description: "List all source code repositories available on the server for code search.",
886
- inputSchema: {
887
- type: "object",
888
- properties: {}
889
- }
890
- },
891
- // ============================================
892
- // PostgreSQL Structured Search Tools (High Priority)
845
+ // PostgreSQL Structured Search Tools (HIGHEST PRIORITY)
893
846
  // These provide SQL-based search with structured data
847
+ // Lightweight, fast, and context-friendly
894
848
  // ============================================
895
849
  {
896
850
  name: "search_structured",
897
- description: "HIGHEST PRIORITY - Search structured Jira/Confluence data in PostgreSQL. Returns well-organized results with full metadata. Use this first for any business or documentation queries.",
851
+ description: "HIGHEST PRIORITY - Search structured Jira/Confluence data in PostgreSQL. Returns well-organized results with full metadata. Use this FIRST for any business or documentation queries. Lightweight and context-friendly.",
898
852
  inputSchema: {
899
853
  type: "object",
900
854
  properties: {
@@ -1234,6 +1188,56 @@ var tools = [
1234
1188
  type: "object",
1235
1189
  properties: {}
1236
1190
  }
1191
+ },
1192
+ // ============================================
1193
+ // Server Code Search Tools (LOW PRIORITY - use last)
1194
+ // Direct grep on server filesystem repositories
1195
+ // WARNING: Returns large responses that consume context window.
1196
+ // Prefer search_as_architect, search_structured, or search_knowledge first.
1197
+ // Only use this for targeted lookups (exact class name, specific file).
1198
+ // ============================================
1199
+ {
1200
+ name: "search_server_code",
1201
+ description: "LOW PRIORITY - Direct grep search on server source code repositories. WARNING: returns large responses that consume AI context window quickly. Use search_as_architect or search_structured FIRST. Only use this tool as a LAST RESORT for targeted lookups when you need exact code matches (specific class name, function signature, or file) and other tools did not return enough detail. Always specify repos[] filter and keep limit low (5-10).",
1202
+ inputSchema: {
1203
+ type: "object",
1204
+ properties: {
1205
+ query: {
1206
+ type: "string",
1207
+ description: "Search query - code pattern, class name, function, or text to find"
1208
+ },
1209
+ mode: {
1210
+ type: "string",
1211
+ enum: ["content", "filename"],
1212
+ description: 'Search mode: "content" for grep-like search in file contents, "filename" for file name pattern matching',
1213
+ default: "content"
1214
+ },
1215
+ repos: {
1216
+ type: "array",
1217
+ items: { type: "string" },
1218
+ description: 'Filter by repository names (RECOMMENDED to reduce response size). Example: ["frontend", "backend"]'
1219
+ },
1220
+ extensions: {
1221
+ type: "array",
1222
+ items: { type: "string" },
1223
+ description: 'File extensions to search (optional). Example: [".ts", ".cs"]'
1224
+ },
1225
+ limit: {
1226
+ type: "number",
1227
+ description: "Maximum results (default: 10, keep low to avoid context overflow)",
1228
+ default: 10
1229
+ }
1230
+ },
1231
+ required: ["query"]
1232
+ }
1233
+ },
1234
+ {
1235
+ name: "list_server_repos",
1236
+ description: "List all source code repositories available on the server for code search.",
1237
+ inputSchema: {
1238
+ type: "object",
1239
+ properties: {}
1240
+ }
1237
1241
  }
1238
1242
  ];
1239
1243
  async function handleSearchServerCode(args) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "domain-rag-mcp-server",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "MCP server for domain RAG search — connects to Qdrant + PostgreSQL + Code Search API for hybrid search across Jira, Confluence, Git commits, and server-side code repositories",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",