mcp-optimizer 0.0.2 → 0.0.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.
Files changed (2) hide show
  1. package/README.md +16 -4
  2. package/package.json +8 -2
package/README.md CHANGED
@@ -12,20 +12,32 @@ If you want to configure an MCP host to spawn the optimizer via `npx`, add a ser
12
12
  "mcpServers": {
13
13
  "mcp-optimizer": {
14
14
  "command": "npx",
15
- "args": ["-y", "mcp-optimizer@latest", "--","--port", "5000"]
15
+ "args": ["-y", "mcp-optimizer", "--","--port", "5000"]
16
16
  }
17
17
  }
18
18
  }
19
19
  ```
20
20
 
21
- This will instruct the host to spawn `npx -y mcp-optimizer@latest -- --port 5000` and communicate with the child over stdio.
21
+ This will instruct the host to spawn `npx -y mcp-optimizer -- --port 5000` and communicate with the child over stdio.
22
+
23
+ Or, if your MCP host can connect to a running optimizer over an SSE endpoint, configure the server with a URL instead:
24
+
25
+ ```json
26
+ {
27
+ "mcpServers": {
28
+ "mcp-optimizer": {
29
+ "url": "https://localhost:5000/sse"
30
+ }
31
+ }
32
+ }
33
+ ```
22
34
 
23
35
  ## Quick start
24
36
 
25
37
  1. Install runtime dependencies:
26
38
 
27
39
  ```bash
28
- npm install lighthouse chrome-launcher
40
+ npm install
29
41
  ```
30
42
 
31
43
  2. Start the server (after building or in dev):
@@ -40,7 +52,7 @@ npm run dev
40
52
  3. Run an audit:
41
53
 
42
54
  ```bash
43
- curl -X POST http://localhost:3000/audit -H "Content-Type: application/json" -d '{"url":"https://example.com"}'
55
+ curl -X POST http://localhost:5000/audit -H "Content-Type: application/json" -d '{"url":"https://example.com"}'
44
56
  ```
45
57
 
46
58
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-optimizer",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "An MCP server that runs Lighthouse audits and enables LLMs to automatically optimize your code.",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -17,7 +17,13 @@
17
17
  "url": "git+https://github.com/jayzoou/MCP-Optimizer.git"
18
18
  },
19
19
  "keywords": [
20
- "mcp"
20
+ "mcp",
21
+ "model-context-protocol",
22
+ "optimizer",
23
+ "lighthouse",
24
+ "llm",
25
+ "automation",
26
+ "code-optimization"
21
27
  ],
22
28
  "author": "",
23
29
  "license": "MIT",