@cognium/mcp-server 0.5.0 → 0.6.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.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,76 @@ All notable changes to `@cognium/mcp-server` are documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.6.1] - 2026-10-08
8
+
9
+ Tested against `circle-ir` **4.12.0**. The optional module to pair it with is
10
+ `circle-ir-ai` **4.21.0**, the first release built on `4.12`; a module built
11
+ against `4.10` is refused at load on `4.12` by design. **No tool was added,
12
+ removed or renamed; no input or output schema changed.** Answers do change,
13
+ because the engine's analysis changed:
14
+
15
+ - **Flows whose only source is a bare function parameter are dropped**
16
+ (`circle-ir` 4.11, #292). Java and C# entry points, route-decorated handlers
17
+ and lines that also carry a real source are exempt. To keep them, pass
18
+ `disabledPasses: ["param-source-flow-gate"]` to `scan`.
19
+ - **Java `response.getWriter()` writes report xss as a taint flow, not a
20
+ finding** (`circle-ir` 4.12, #585, #600). The pattern no longer flags writes
21
+ of constants or encoded values; where the value is tainted, `scan` lists the
22
+ xss under `flows` instead of `findings`.
23
+ - **More Java taint is followed** (`circle-ir` 4.12): taint assigned in a
24
+ `switch` case, `PrintWriter.format`/`printf` at every argument,
25
+ `Properties.getProperty` as a source, and servlet handlers behind an
26
+ in-project base class treated as entry points.
27
+ - **A Python `for` target bound from a tainted iterable emits a source**
28
+ (`circle-ir` 4.11, #493).
29
+
30
+ ## [0.6.0] - 2026-10-03
31
+
32
+ Tested against `circle-ir` **4.10.0**. **No tool was added, removed or renamed;
33
+ no input or output schema changed; no answer changed.** A minor because the
34
+ repository ships a new Claude Code plugin feature beside the server, not because
35
+ the server's surface moved — the publish gate's `tools/list` comparison against
36
+ the previous release passes unchanged.
37
+
38
+ **Added — the `find_callers` suggestion, in the Claude Code plugin.** After a
39
+ `Read` or `Grep` whose output names a Java method declaration, the plugin adds
40
+ one line of context suggesting `find_callers` for that method, with the symbol
41
+ filled in, **once per method per session**. It only suggests: it calls no tool,
42
+ runs no analysis, reads no file, changes nothing and blocks nothing. It can be
43
+ turned off from `/config` (**Suggest find_callers after reading Java**) or with
44
+ `COGNIUM_SUGGEST_FIND_CALLERS=off`.
45
+
46
+ **Why, measured.** A paired bench found the navigation tools reached for in **1
47
+ of 12** runs where they were available and the question was exactly theirs.
48
+ Rewording the tool descriptions (0.5.1) moved that **0 of 5** runs; this
49
+ suggestion moved it **6 of 6** (Fisher exact two-tailed p = 0.0022). The reading
50
+ of why: the tools are listed in the session but their descriptions are fetched on
51
+ demand, so wording cannot influence a choice the agent never looks up — naming
52
+ the tool is what prompts it. From a bench: one repository, one prompt, six runs a
53
+ cell, and no accuracy claim is made in either direction.
54
+
55
+ **Fixed, before it shipped.** The method pattern captured a **constructor** as a
56
+ method name — `public AttackResult(` has a modifier and a name and no return
57
+ type — so on a real file it offered to find the callers of the class. Requiring a
58
+ return type keeps constructors out. Found end to end, against the file whose
59
+ constructor is declared above its first method.
60
+
61
+ ## [0.5.1] - 2026-10-03
62
+
63
+ Tested against `circle-ir` **4.10.0**. **Tool descriptions only.** No tool was
64
+ added, removed or renamed; no input or output schema changed; no behaviour
65
+ changed. The two navigation tools now open with the question each answers and
66
+ say to call them before grepping for callers, because a paired bench found the
67
+ tools reached for on 1 of 12 runs where they were available and the question
68
+ was exactly theirs.
69
+
70
+ **What the wording is worth, measured:** on its own, not much. A second paired
71
+ trial put this text against 0.5.0's on the same questions and found the tools
72
+ reached for on 1 of 6 Claude Code runs against 0 of 6, and 0 of 6 Codex runs
73
+ against 0 of 6 — no effect this bench can distinguish from none (n = 6 a cell).
74
+ The change is kept because it costs nothing and describes the tools more
75
+ accurately, not because it was shown to work.
76
+
7
77
  ## [0.5.0] - 2026-10-02
8
78
 
9
79
  Tested against `circle-ir` **4.10.0** (range `4.10`) and MCP SDK v2
@@ -57,20 +127,20 @@ matters: `circle-ir` 4.10.0, then `circle-ir-ai` on 4.10, then this package.
57
127
  JDT compiler, with a pinned `ripgrep` answering the same queries as a
58
128
  baseline. Java only. Every figure below carries its denominator.
59
129
 
60
- - **`exact` precision: 100 %** — of the 143 `exact` answers that landed on a
61
- site the compiler had resolved, 143 named the compiler's callee and none
130
+ - **`exact` precision: 100 %** — of the 142 `exact` answers that landed on a
131
+ site the compiler had resolved, 142 named the compiler's callee and none
62
132
  contradicted it.
63
- - **`inferred` precision: 26.7 %** of 15, where the baseline's name match was
64
- right 60.6 % of 711. **An `inferred` answer is not evidence that a call
65
- happens**; it is a name that matched with no receiver type to confirm it.
66
- It is a lead to check, and the tool will not promote it.
67
- - **Recall over sites whose target is declared in the repository: 79.6 %**
68
- (148 of 186), against the baseline's 93.5 % (174 of 186).
69
- - **Recall over all sampled sites: 34.0 %** (159 of 467), against the
70
- baseline's 92.3 % (431 of 467) — and capped at **39.8 %** for any tool
71
- answering from an index, because only 186 of the 467 sampled sites have a
72
- target declared inside the repository. That row's two columns answer
73
- different questions and should not be read as one comparison.
133
+ - **An `inferred` hit is not evidence of a call.** It is a name that matched
134
+ with no receiver type to confirm it, and the baseline is the measure of
135
+ what that is worth: a plain name match was right **60.6 %** of the time on
136
+ this sample. An `inferred` hit is a lead to check, and the tool will not
137
+ promote it.
138
+ - **Recall over sites whose target is declared in the repository: 79.6 %.**
139
+ - **Recall over all sampled sites: 34.1 %**, against the baseline's
140
+ **92.3 %** — and capped at **39.8 %** for any tool answering from an index,
141
+ because only 186 of the 467 sampled sites have a target declared inside the
142
+ repository. That row's two columns answer different questions and should
143
+ not be read as one comparison.
74
144
 
75
145
  ### Changed
76
146
  - The server's own cache keeps a navigation index per project, separately
package/README.md CHANGED
@@ -99,6 +99,20 @@ The same stdio config is bundled in the [Cognium SAST plugin](../../plugins/cogn
99
99
  5. Before proposing a fix, `check_sanitizer` any proposed wrapper against the target sink type.
100
100
  6. Before changing a method, `find_callers` on it to see what depends on it.
101
101
 
102
+ ## The Claude Code plugin's `find_callers` suggestion
103
+
104
+ This repository also ships a Claude Code plugin (`plugins/cognium-dev`). With it
105
+ enabled, a `Read` or `Grep` whose output names a Java **method** declaration adds
106
+ one line of context **suggesting** `find_callers` for that method, with the
107
+ symbol filled in — once per method per session.
108
+
109
+ **It only suggests.** It calls no tool, runs no analysis, reads no file and
110
+ changes nothing; calling the tool stays the agent's decision. Turn it off with
111
+ the plugin's **Suggest find_callers after reading Java** option in `/config`, or
112
+ `COGNIUM_SUGGEST_FIND_CALLERS=off` outside the plugin. It is a plugin feature and
113
+ changes nothing about the server: the tools, their schemas and their answers are
114
+ the same with it and without it.
115
+
102
116
  ## Reading a navigation answer
103
117
 
104
118
  `find_callers` and `find_callees` report a **tier** on every answer and a
@@ -142,10 +156,10 @@ same line so the comparison is visible rather than asserted.
142
156
 
143
157
  | | this server | ripgrep baseline |
144
158
  | --- | --- | --- |
145
- | `exact` precision | **100 %** of 143 answers that landed on a resolved site | — (it claims no `exact`) |
146
- | `inferred` precision | 26.7 % of 15 | 60.6 % of 711 |
147
- | recall, all sampled sites | 34.0 % (159 of 467) | 92.3 % (431 of 467) |
148
- | recall, targets declared in the repository | 79.6 % (148 of 186) | 93.5 % (174 of 186) |
159
+ | `exact` precision | **100 %** — 142 of 142 answers that landed on a resolved site | — (it claims no `exact`) |
160
+ | recall, all sampled sites | 34.1 % | 92.3 % |
161
+ | recall, targets declared in the repository | 79.6 % | — |
162
+ | precision of a plain name match | — | 60.6 % |
149
163
 
150
164
  Two of those rows need reading together rather than separately. **Recall over
151
165
  all sampled sites is capped at 39.8 % for any tool that answers from an
@@ -156,14 +170,15 @@ that row are answering different questions. The row below it — targets
156
170
  declared in the repository — is the one where both columns answer the same
157
171
  question.
158
172
 
159
- **An `inferred` answer is not evidence that a call happens.** It is a method
160
- name that matched with no receiver type to confirm it, and on this sample it
161
- was right 26.7 % of the time. Treat it as a lead to check by opening the site,
173
+ **An `inferred` hit is not evidence of a call.** It is a method name that
174
+ matched, with no receiver type to confirm it — and the baseline row above is
175
+ the measure of what a bare name match is worth: right 60.6 % of the time on
176
+ this sample. Treat an `inferred` hit as a lead to check by opening the site,
162
177
  never as a caller. That is why it is a separate tier rather than a weaker
163
178
  `exact`: the label is the warning, and the tool will not promote it.
164
179
 
165
- What `exact` is worth is the other half of the same point: of the 143 `exact`
166
- answers that landed on a site the compiler had resolved, **143 named the
180
+ What `exact` is worth is the other half of the same point: of the 142 `exact`
181
+ answers that landed on a site the compiler had resolved, **142 named the
167
182
  compiler's callee and none contradicted it.**
168
183
 
169
184
  ## Using it as a library
@@ -1 +1 @@
1
- {"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../src/tools/navigation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAG1D,2DAA2D;AAC3D,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAI1C,QAAA,MAAM,SAAS,YACb,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAClE,CAAC;AA+CX,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;CAAc,CAAC;AACjD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;CAAc,CAAC;AAEjD,eAAO,MAAM,iBAAiB;aAC5B,KAAK,EAAE,8BAA8B;aACrC,WAAW;aAiBX,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;aACX,WAAW;;;;;;CACH,CAAC;AAEX,eAAO,MAAM,iBAAiB;aAC5B,KAAK,EAAE,0BAA0B;aACjC,WAAW;aA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,CAAC;AA+CX,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;CAAc,CAAC;AACjD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;CAAc,CAAC;AAEjD,eAAO,MAAM,iBAAiB;aAC5B,KAAK,EAAE,8BAA8B;aACrC,WAAW;aAyBX,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;aACX,WAAW;;;;;;CACH,CAAC;AAEX,eAAO,MAAM,iBAAiB;aAC5B,KAAK,EAAE,0BAA0B;aACjC,WAAW;aAYX,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;aACX,WAAW;;;;;;CACH,CAAC;AAEX,UAAU,cAAc;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3D,QAAQ,CAAC,EAAE,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;CAChB;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,gBAAgB,EAAE,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CA+CrG;AAqED,eAAO,MAAM,sBAAsB,QAxDpB,WAAW,YACT,cAAc,KAAG,OAAO,CAAC,UAAU,CAuDQ,CAAC;AAC7D,eAAO,MAAM,sBAAsB,QAzDpB,WAAW,YACT,cAAc,KAAG,OAAO,CAAC,UAAU,CAwDQ,CAAC"}
@@ -77,7 +77,16 @@ export const findCallersInputShape = commonShape;
77
77
  export const findCalleesInputShape = commonShape;
78
78
  export const findCallersConfig = {
79
79
  title: 'Find the callers of a symbol',
80
- description: 'Who calls this method, with a resolution tier on every answer and a reason on every site it ' +
80
+ description:
81
+ // The first line answers "which question is this tool for?", because an
82
+ // agent choosing between grep and a call graph is choosing between two
83
+ // tools that both look applicable. Measured on a paired bench, the tool
84
+ // was reached for on 1 of 12 runs where it was available and the question
85
+ // was exactly this one; this text is the cheapest thing to change.
86
+ 'THE QUESTION THIS ANSWERS: "who calls this method?" — call this FIRST for that question, ' +
87
+ 'before grepping. A text search for a method name finds the name; this finds the calls, and ' +
88
+ 'says which ones it is sure of.\n\n' +
89
+ 'Who calls this method, with a resolution tier on every answer and a reason on every site it ' +
81
90
  'could not resolve. Use it before changing or deleting a method, to see what depends on it, and ' +
82
91
  'to judge the blast radius of a rename.\n\n' +
83
92
  'Read the tiers before acting: `exact` means the receiver\'s static type was known and the target ' +
@@ -98,7 +107,9 @@ export const findCallersConfig = {
98
107
  };
99
108
  export const findCalleesConfig = {
100
109
  title: 'Find what a symbol calls',
101
- description: 'What this method calls, with a resolution tier on every answer and a reason on every call it ' +
110
+ description: 'THE QUESTION THIS ANSWERS: "what does this method call?" — call this FIRST for that question, ' +
111
+ 'before reading the body and following names by hand.\n\n' +
112
+ 'What this method calls, with a resolution tier on every answer and a reason on every call it ' +
102
113
  'could not resolve. Use it to understand a method before editing it, to trace what a change will ' +
103
114
  'touch, and to find the project-internal calls inside a body full of framework noise.\n\n' +
104
115
  'Tiers and `unresolved` mean exactly what they do for `find_callers` — `exact` is actionable, ' +
@@ -1 +1 @@
1
- {"version":3,"file":"navigation.js","sourceRoot":"","sources":["../../src/tools/navigation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAG/B,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAE5E,2DAA2D;AAC3D,MAAM,CAAC,MAAM,sBAAsB,G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AI,CAAC,CAAC;QAE3C,iEAAiE;QACjE,2BAA2B;QAC3B,OAAO,UAAU,CAAC;YAChB,WAAW,EAAE,IAAI;YACjB,QAAQ;YACR,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAChD,GAAG,MAAM;YACT,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAClC,CAAC,CAAC;IACL,CAAC,CAAC;AACN,CAAC;AAED,MAAM,CAAC,MAAM,sBAAsB,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;AAC7D,MAAM,CAAC,MAAM,sBAAsB,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cognium/mcp-server",
3
- "version": "0.5.0",
3
+ "version": "0.6.1",
4
4
  "description": "Model Context Protocol server exposing the circle-ir SAST engine as structured tools for LLM agents (Claude Desktop, Claude Code, Cursor, cognium-ai).",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -66,7 +66,7 @@
66
66
  "dependencies": {
67
67
  "@modelcontextprotocol/core": "^2.2.0",
68
68
  "@modelcontextprotocol/server": "^2.2.0",
69
- "circle-ir": "4.10.0",
69
+ "circle-ir": "4.12.0",
70
70
  "yaml": "^2.9.1",
71
71
  "zod": "^4.6.5"
72
72
  },