semantic-js-mcp 0.10.2 → 0.10.3

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/AGENT_SETUP.md DELETED
@@ -1,176 +0,0 @@
1
- # Agent Setup
2
-
3
- This guide is for a coding agent whose user has explicitly requested that it
4
- install, configure, update, verify, roll back, or remove Semantic JS MCP. It is
5
- not an instruction to change an environment merely because this file was read.
6
-
7
- ## Scope
8
-
9
- First identify the application that will run the MCP server. That application
10
- is the MCP host. Use the verified Codex procedure only for Codex. For every
11
- other host, use the generic stdio procedure below and translate its fields into
12
- the host's documented configuration format. Do not guess a configuration file
13
- or schema.
14
-
15
- Semantic JS MCP requires Node.js 22 or newer and `rg` (ripgrep) on `PATH`.
16
- Before changing host configuration, run:
17
-
18
- ```bash
19
- node --version
20
- rg --version
21
- ```
22
-
23
- Stop if Node.js is older than 22 or either command is unavailable. Report the
24
- missing prerequisite. Do not continue with a partial installation.
25
-
26
- ## Safety Boundaries
27
-
28
- This guide does not override system, developer, organization, repository, or
29
- host security policy.
30
-
31
- - Inspect existing configuration before editing it and change only the entry
32
- approved by the user.
33
- - Request any approval required for package installation, global writes,
34
- configuration changes, network access, or process restart.
35
- - Never request or expose credentials, disable security controls, or execute a
36
- remote shell pipeline.
37
- - Preserve every unrelated MCP server and setting. Never replace an entire
38
- configuration file to add one server.
39
- - Stop and report the blocker when the requested host or prerequisite cannot be
40
- verified safely.
41
-
42
- ## Installation Procedure
43
-
44
- ### Codex
45
-
46
- Use the public marketplace adapter:
47
-
48
- ```bash
49
- codex plugin marketplace add elnonathan/semantic-js-mcp
50
- codex plugin add semantic-js-mcp@elnonathan
51
- codex plugin list
52
- ```
53
-
54
- Start a new Codex session after installation. The plugin supplies both the MCP
55
- server and the semantic-navigation skill.
56
-
57
- ### Generic Stdio Hosts
58
-
59
- Use this procedure only when the host supports local MCP servers over stdio. If
60
- that capability cannot be confirmed from installed help or host documentation,
61
- stop and report that the host is unsupported or unverified.
62
-
63
- After the user approves the package installation and configuration change,
64
- install the executable:
65
-
66
- ```bash
67
- npm install --global semantic-js-mcp
68
- ```
69
-
70
- Inspect the existing host configuration. Add exactly one MCP server with these
71
- values:
72
-
73
- - server name: `semanticjsmcp`
74
- - transport: `stdio`
75
- - executable or command: `semantic-js-mcp`
76
- - arguments: one argument, `serve`
77
- - enabled: `true`, when the host has an enabled field
78
-
79
- Do not configure a URL, port, shell command, or credentials. The host must
80
- start `semantic-js-mcp serve` as a local child process and communicate through
81
- standard input and standard output. Translate the values above into the host's
82
- documented schema; do not copy a configuration shape from a different host.
83
-
84
- Save the smallest possible change. Restart or reload the host when its
85
- documentation requires it.
86
-
87
- ## Verification
88
-
89
- For an executable installation, record the installed version and run the
90
- doctor:
91
-
92
- ```bash
93
- semantic-js-mcp --version
94
- semantic-js-mcp doctor
95
- ```
96
-
97
- Read the structured doctor result literally:
98
-
99
- - `pass`: continue to host tool verification.
100
- - `untrusted`: continue to host tool verification and report the stated
101
- uncertainty. Do not describe it as `pass`.
102
- - `blocked` or `fail`: stop, correct the reported problem when authorized, or
103
- report the blocker. Do not claim a successful installation.
104
-
105
- Then verify the host discovers tools whose base names begin with `lsp_`. A host
106
- may display the server name before the base name. Execute one read-only call
107
- such as `lsp_document_symbols` against a user-approved JavaScript, TypeScript,
108
- or Vue file. Do not claim successful installation from configuration text
109
- alone.
110
-
111
- For a Codex plugin installation without a global executable, verify the version
112
- with `codex plugin list`, start a new session, and confirm MCP tool discovery
113
- there.
114
-
115
- Installation is successful only when the host discovers the MCP tools and one
116
- read-only `lsp_*` call returns a result. Package installation or configuration
117
- text alone is not success.
118
-
119
- ## Update And Rollback
120
-
121
- Update an existing Codex installation by refreshing its marketplace snapshot
122
- before reinstalling:
123
-
124
- ```bash
125
- codex plugin marketplace upgrade elnonathan
126
- codex plugin add semantic-js-mcp@elnonathan
127
- codex plugin list
128
- ```
129
-
130
- Update a global npm installation with:
131
-
132
- ```bash
133
- npm install --global semantic-js-mcp@latest
134
- ```
135
-
136
- Before updating, record the working version. To roll back a global installation,
137
- install that exact known version, for example:
138
-
139
- ```bash
140
- npm install --global semantic-js-mcp@0.10.1
141
- ```
142
-
143
- For a host adapter, restore the previously recorded package version and host
144
- configuration together. Do not replace or remove unrelated configuration while
145
- rolling back.
146
-
147
- ## Removal
148
-
149
- For Codex, remove only this plugin:
150
-
151
- ```bash
152
- codex plugin remove semantic-js-mcp@elnonathan
153
- ```
154
-
155
- Remove the `elnonathan` marketplace only when the user confirms that no other
156
- installed plugin uses it:
157
-
158
- ```bash
159
- codex plugin marketplace remove elnonathan
160
- ```
161
-
162
- For a global executable, remove the package and only its `semanticjsmcp` MCP
163
- entry:
164
-
165
- ```bash
166
- npm uninstall --global semantic-js-mcp
167
- ```
168
-
169
- Restart the host and confirm the tools are no longer registered.
170
-
171
- ## Completion Report
172
-
173
- Report the detected host, installed or removed version, exact configuration
174
- entry changed, doctor status when available, tool-discovery result, required
175
- restart, and any remaining uncertainty. Do not include credentials or unrelated
176
- configuration values.