@prom.codes/context-mcp 0.4.6 → 0.4.7

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.
package/README.md CHANGED
@@ -35,6 +35,14 @@ Tools: `search_code`, `get_symbol`, `find_references`, `find_callers`,
35
35
  `list_workspaces`, `framework_overview`, `index_status` (health check:
36
36
  which folder, how much is indexed, does the key work?).
37
37
 
38
+ ## Awareness
39
+
40
+ The server advertises MCP `instructions` that tell the agent to PREFER
41
+ `search_code` + the graph tools over a manual grep→read loop. Context tools are
42
+ reactive (the agent reaches for them when it needs code), so — unlike memory —
43
+ no rule file is installed; the instructions + assertive tool descriptions are
44
+ enough to win over plain grep on a large or unfamiliar repo.
45
+
38
46
  ## Native modules
39
47
 
40
48
  Uses native Tree-sitter grammars + `better-sqlite3` for parsing and storage.
package/dist/bin.js CHANGED
@@ -9211,6 +9211,7 @@ var SERVER_IDENTITY = {
9211
9211
  version: PROMETHEUS_VERSION,
9212
9212
  title: "prom.codes Context"
9213
9213
  };
9214
+ var SERVER_INSTRUCTIONS = "This workspace is indexed by the prom.codes context engine. PREFER these tools over a manual grep/read loop when navigating code: search_code (hybrid semantic + lexical + symbol-graph \u2014 your FIRST move for any 'where/how is X' question, returns the code inline), get_symbol, find_references, find_callers, find_callees, expand_context, get_file. They are faster and more precise than scanning files by hand, especially on a large or unfamiliar repo. If search_code returns nothing or looks degraded, call index_status to check the index and the embedding key.";
9214
9215
 
9215
9216
  // dist/bin.js
9216
9217
  function errMessage(err) {
@@ -9258,7 +9259,10 @@ async function main() {
9258
9259
  const eagerVia = explicitRoot !== "" ? "PROMETHEUS_WORKSPACE_ROOT" : claudeRoot !== "" ? "CLAUDE_PROJECT_DIR" : null;
9259
9260
  void maybeNotifyUpdate(import.meta.url, env);
9260
9261
  const transport = new StdioServerTransport();
9261
- const server = new McpServer2(SERVER_IDENTITY, { capabilities: { tools: {} } });
9262
+ const server = new McpServer2(SERVER_IDENTITY, {
9263
+ capabilities: { tools: {} },
9264
+ instructions: SERVER_INSTRUCTIONS
9265
+ });
9262
9266
  let composed = null;
9263
9267
  let managedIndexer = null;
9264
9268
  const shutdown = async (signal) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prom.codes/context-mcp",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "description": "prom.codes Context — local-first codebase indexing & retrieval as an MCP server.",
5
5
  "type": "module",
6
6
  "bin": {