semantic-js-mcp 0.10.2 → 0.10.4
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/.codex-plugin/plugin.json +1 -1
- package/CHANGELOG.md +15 -0
- package/README.md +18 -72
- package/SETUP.md +1078 -0
- package/docs/distribution.md +9 -16
- package/docs/getting-started.md +11 -1
- package/lib/diagnostic-evidence.mjs +26 -0
- package/package.json +5 -5
- package/protocol.mjs +22 -2
- package/scripts/check-protocol-literals.mjs +5 -1
- package/scripts/distribution-policy.mjs +1 -1
- package/scripts/documentation-contract.mjs +105 -21
- package/scripts/documentation-gate-smoke.mjs +308 -37
- package/scripts/documentation-gate.mjs +93 -9
- package/scripts/generate-protocol-reference.mjs +4 -0
- package/scripts/negative-verification-smoke.mjs +5 -0
- package/scripts/smoke.mjs +47 -0
- package/scripts/vue-smoke.mjs +11 -0
- package/server.mjs +6 -2
- package/skills/semantic-navigation/SKILL.md +3 -1
- package/skills/semantic-navigation/references/protocol-literals.md +19 -2
- package/AGENT_SETUP.md +0 -176
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,21 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.10.4] - 2026-07-20
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- Make `lsp_diagnostics` state explicitly whether current-document diagnostics are available, whether an unconfirmed provider report exists, and whether the result is usable as current-document diagnostic evidence. Untrusted results now direct agents to repository-native validation without treating missing or stale diagnostics as a clean file.
|
|
12
|
+
- Rework setup into a numbered procedure that establishes command authority before any local tool call, separates the host application from its installation route, recommends the positively identified current application as the generic stdio target for confirmation, makes every generic-host command and configuration action user-run, rejects cross-route and temporary `npx` installation, and hands sandbox-blocked work back to the user without changing permissions or installation paths.
|
|
13
|
+
- Add an explicit verification-only operation, distinguish a host route from its Codex plugin, global-package, or source-checkout server source, require exact host-command help before registration or removal, reject saved commands or connection states that do not match the intended stdio entry, and keep optional functional tests scoped to one confirmed source file.
|
|
14
|
+
- Keep setup responses in the user's language and retain user-run version checks for generic hosts because low-risk commands can still observe a sandbox-specific runtime instead of the user's actual environment.
|
|
15
|
+
|
|
16
|
+
## [0.10.3] - 2026-07-18
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- Consolidate installation into `SETUP.md`, the shared setup procedure for people and coding agents. README now provides only a brief entry point. The procedure places guards, prerequisites, installation, and verification before troubleshooting and background; uses direct explanatory language; requires exact host and version checks; rejects partial npm extraction; and does not treat installation as permission to inspect source code.
|
|
21
|
+
|
|
7
22
|
## [0.10.2] - 2026-07-17
|
|
8
23
|
|
|
9
24
|
### Added
|
package/README.md
CHANGED
|
@@ -1,13 +1,25 @@
|
|
|
1
1
|
# Semantic JS MCP
|
|
2
2
|
|
|
3
|
+
## Setup
|
|
4
|
+
|
|
5
|
+
Before running an installation command, follow [SETUP.md](SETUP.md). It is the
|
|
6
|
+
single source of truth for setup by either a person or a coding agent, including
|
|
7
|
+
prerequisites, host selection, installation, verification, updates, rollback,
|
|
8
|
+
and removal.
|
|
9
|
+
|
|
10
|
+
Semantic JS MCP requires Node.js 22 or newer and `rg` (ripgrep). It can be
|
|
11
|
+
installed through the verified Codex plugin route or registered as a local
|
|
12
|
+
stdio server in another compatible MCP host. Package installation alone does not configure an MCP host.
|
|
13
|
+
|
|
14
|
+
After setup, see [Getting started](docs/getting-started.md) for practical
|
|
15
|
+
investigation prompts and compact evidence examples.
|
|
16
|
+
|
|
3
17
|
**Your coding agent is only as good as its understanding of your codebase.**
|
|
4
18
|
|
|
5
19
|
Coding agents can generate code quickly, but reliable engineering requires more than reading files and matching text. They need to understand which declaration a reference belongs to, how symbols cross workspace boundaries, whether the collected evidence is complete, and whether that evidence is still accurate.
|
|
6
20
|
|
|
7
21
|
Semantic JS MCP gives coding agents structured, read-only semantic context so they can navigate, review, and change code with explicit uncertainty.
|
|
8
22
|
|
|
9
|
-
When a user explicitly asks a coding agent to install or configure the package, the agent should follow the [agent setup guide](AGENT_SETUP.md).
|
|
10
|
-
|
|
11
23
|
Its scope is intentionally narrow: it strengthens an agent's understanding of symbol identity, types, references, diagnostics, and evidence coverage. It does not replace architectural reasoning, source inspection, dependency analysis, tests, or runtime observation.
|
|
12
24
|
|
|
13
25
|
**Better agents begin with better evidence.**
|
|
@@ -18,45 +30,7 @@ For each file, it identifies the owning workspace and uses the corresponding Typ
|
|
|
18
30
|
|
|
19
31
|
## Project Status
|
|
20
32
|
|
|
21
|
-
Version `0.10.
|
|
22
|
-
|
|
23
|
-
## Installation
|
|
24
|
-
|
|
25
|
-
### Codex plugin
|
|
26
|
-
|
|
27
|
-
Add the public marketplace, then install the plugin:
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
codex plugin marketplace add elnonathan/semantic-js-mcp
|
|
31
|
-
codex plugin add semantic-js-mcp@elnonathan
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
Codex CLI 0.144.4 or newer is required for npm-backed marketplace installation. Start a new Codex session after installation. The plugin bundles both the MCP server configuration and the semantic-navigation skill.
|
|
35
|
-
|
|
36
|
-
### Updating the Codex plugin
|
|
37
|
-
|
|
38
|
-
Codex installs from a local snapshot of each configured marketplace. Refresh that snapshot before reinstalling so `plugin add` resolves the version currently declared by the marketplace:
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
-
codex plugin marketplace upgrade elnonathan
|
|
42
|
-
codex plugin add semantic-js-mcp@elnonathan
|
|
43
|
-
codex plugin list
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
`plugin add` reinstalls the plugin; a separate removal is not required. Start a new Codex session after the command reports the expected version.
|
|
47
|
-
|
|
48
|
-
### MCP executable
|
|
49
|
-
|
|
50
|
-
Install the package globally when using an MCP host that accepts a command-based stdio configuration:
|
|
51
|
-
|
|
52
|
-
```bash
|
|
53
|
-
npm install --global semantic-js-mcp
|
|
54
|
-
semantic-js-mcp doctor
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
Configure the host to run `semantic-js-mcp serve`.
|
|
58
|
-
|
|
59
|
-
For practical investigation prompts and compact evidence examples, see [Getting started](docs/getting-started.md).
|
|
33
|
+
Version `0.10.4` is the current release. APIs and result contracts may evolve while the project remains on the `0.x` release line. See the [roadmap](ROADMAP.md) for areas under consideration.
|
|
60
34
|
|
|
61
35
|
## Runtime
|
|
62
36
|
|
|
@@ -64,7 +38,7 @@ For practical investigation prompts and compact evidence examples, see [Getting
|
|
|
64
38
|
- Node.js 24 LTS is recommended for new installations. See the [Node.js release schedule](https://nodejs.org/en/about/previous-releases).
|
|
65
39
|
- `rg` (ripgrep) must be available on `PATH` for repository-wide discovery.
|
|
66
40
|
- The nearest workspace TypeScript SDK is used when available; the bundled TypeScript SDK is the fallback.
|
|
67
|
-
- TypeScript, `typescript-language-server`, and the Vue language server are pinned dependencies. Published packages bundle every production dependency so Codex installations do not require a separate dependency installation step.
|
|
41
|
+
- TypeScript, `typescript-language-server`, and the Vue language server are pinned dependencies. Published packages bundle every production dependency so Codex installations do not require a separate dependency installation step. Startup verifies provider entry points before accepting MCP requests.
|
|
68
42
|
- Source discovery and language selection include `.ts`, `.tsx`, `.mts`, `.cts`, `.js`, `.jsx`, `.mjs`, `.cjs`, and `.vue` files.
|
|
69
43
|
- Run `npm run check:runtime` to report every required component and its resolved file path.
|
|
70
44
|
|
|
@@ -72,10 +46,10 @@ The package exposes a `semantic-js-mcp` executable. `semantic-js-mcp serve` star
|
|
|
72
46
|
|
|
73
47
|
## Development Setup
|
|
74
48
|
|
|
75
|
-
|
|
49
|
+
Complete the [source-checkout setup](SETUP.md#source-checkout), then run the
|
|
50
|
+
checks applicable to the change:
|
|
76
51
|
|
|
77
52
|
```bash
|
|
78
|
-
npm ci
|
|
79
53
|
npm run check
|
|
80
54
|
npm run check:runtime
|
|
81
55
|
npm run doctor
|
|
@@ -87,34 +61,6 @@ npm run smoke:lifecycle
|
|
|
87
61
|
|
|
88
62
|
Run `npm run benchmark` after changes to scanning, references, caching, lifecycle, or memory. Provider disposal changes can also be characterized with `npm run benchmark:lifecycle-memory`; its output declares the garbage-collection and platform measurement method. Normal analysis is local and read-only; it does not require network access after dependencies are installed.
|
|
89
63
|
|
|
90
|
-
For an MCP host that accepts a direct stdio configuration, point it at the checked-out server using an absolute path:
|
|
91
|
-
|
|
92
|
-
```json
|
|
93
|
-
{
|
|
94
|
-
"mcpServers": {
|
|
95
|
-
"semanticjsmcp": {
|
|
96
|
-
"command": "node",
|
|
97
|
-
"args": ["/absolute/path/to/semantic-js-mcp/server.mjs"]
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
The bundled [`.mcp.json`](.mcp.json) provides the relative-path configuration used when the repository is installed as a Codex plugin.
|
|
104
|
-
|
|
105
|
-
When the package executable is available on the host's `PATH`, the equivalent stdio configuration is:
|
|
106
|
-
|
|
107
|
-
```json
|
|
108
|
-
{
|
|
109
|
-
"mcpServers": {
|
|
110
|
-
"semanticjsmcp": {
|
|
111
|
-
"command": "semantic-js-mcp",
|
|
112
|
-
"args": ["serve"]
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
```
|
|
117
|
-
|
|
118
64
|
## Tool Graph
|
|
119
65
|
|
|
120
66
|
Tools are ordered from smaller responses to deeper evidence:
|