what-mcp 0.10.0 → 0.11.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 (3) hide show
  1. package/README.md +20 -0
  2. package/package.json +2 -2
  3. package/src/index.js +31 -1
package/README.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # what-mcp
2
2
 
3
+ > ## ⚠️ DEPRECATED
4
+ >
5
+ > **This package is deprecated and no longer maintained. Use [`what-devtools-mcp`](https://www.npmjs.com/package/what-devtools-mcp) instead** — the unified MCP server that includes everything this package offered (documentation tools) plus live runtime debugging (signals, components, dependency graphs, screenshots).
6
+ >
7
+ > Migration:
8
+ >
9
+ > ```diff
10
+ > {
11
+ > "mcpServers": {
12
+ > "what-framework": {
13
+ > "command": "npx",
14
+ > - "args": ["what-mcp"]
15
+ > + "args": ["what-devtools-mcp"]
16
+ > }
17
+ > }
18
+ > }
19
+ > ```
20
+ >
21
+ > No other changes are required — `what-devtools-mcp` is a superset of this server's tools. This package prints a deprecation warning at startup and will receive no further updates.
22
+
3
23
  [Model Context Protocol](https://modelcontextprotocol.io/) (MCP) server for [What Framework](https://whatfw.com). Gives AI assistants access to What Framework documentation, API references, and code examples.
4
24
 
5
25
  ## Install
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "what-mcp",
3
- "version": "0.10.0",
4
- "description": "MCP Server for What Framework documentation and assistance",
3
+ "version": "0.11.1",
4
+ "description": "[DEPRECATED — use what-devtools-mcp instead] MCP Server for What Framework documentation and assistance",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
7
7
  "bin": {
package/src/index.js CHANGED
@@ -1,5 +1,35 @@
1
1
  #!/usr/bin/env node
2
2
 
3
+ import { readFileSync } from 'node:fs';
4
+
5
+ const pkg = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf-8'));
6
+
7
+ // --help / --version print and exit BEFORE the MCP stdio transport starts.
8
+ const cliArgs = process.argv.slice(2);
9
+ if (cliArgs.includes('--help') || cliArgs.includes('-h')) {
10
+ console.log(`what-mcp ${pkg.version} — MCP server for What Framework documentation [DEPRECATED]
11
+
12
+ DEPRECATED: superseded by what-devtools-mcp (all documentation plus live
13
+ devtools). Install what-devtools-mcp and remove what-mcp from your MCP config.
14
+
15
+ Usage:
16
+ what-mcp [flags]
17
+
18
+ Runs an MCP server on stdio (add it to your MCP client config). No other
19
+ arguments are accepted.
20
+
21
+ Flags:
22
+ -h, --help Show this help and exit
23
+ -v, --version Print the version and exit
24
+
25
+ Docs: https://whatfw.com`);
26
+ process.exit(0);
27
+ }
28
+ if (cliArgs.includes('--version') || cliArgs.includes('-v')) {
29
+ console.log(pkg.version);
30
+ process.exit(0);
31
+ }
32
+
3
33
  console.warn(
4
34
  '[what-mcp] DEPRECATED: This package is superseded by what-devtools-mcp, ' +
5
35
  'which includes all documentation plus live devtools. ' +
@@ -485,7 +515,7 @@ export default {
485
515
  const server = new Server(
486
516
  {
487
517
  name: 'what-framework',
488
- version: '0.1.0',
518
+ version: pkg.version,
489
519
  },
490
520
  {
491
521
  capabilities: {