@perrylink/dsh-cert-mcp 0.1.1 → 0.1.2

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/README.md CHANGED
@@ -20,7 +20,7 @@ cd dsh-cert-mcp
20
20
  node src/index.js # stdio server
21
21
  ```
22
22
 
23
- After the npm release you will be able to run it directly: `npx @perrylink/dsh-cert-mcp`.
23
+ Run it directly from the published npm package: `npx @perrylink/dsh-cert-mcp`.
24
24
 
25
25
  ### Register in an MCP client
26
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
- {
1
+ {
2
2
  "name": "@perrylink/dsh-cert-mcp",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Read-only MCP server exposing the dsh-plugin-certification registry: certification grades, snapshots and five-dimension evidence for DeepSeek Harness plugins.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
package/src/server.js CHANGED
@@ -5,7 +5,7 @@
5
5
  import { readFile } from 'node:fs/promises'
6
6
 
7
7
  const PROTOCOL_VERSION = '2024-11-05'
8
- const SERVER_INFO = { name: 'dsh-cert-mcp', version: '0.1.0' }
8
+ const SERVER_INFO = { name: 'dsh-cert-mcp', version: '0.1.2' }
9
9
  const REGISTRY_URL = 'https://raw.githubusercontent.com/PerryLink/dsh-plugin-certification/main/data/certified.json'
10
10
  const REFRESH_MS = 5 * 60 * 1000
11
11
 
@@ -33,7 +33,10 @@ async function loadRegistry(force = false) {
33
33
  }
34
34
  if (force || Date.now() - lastFetch > REFRESH_MS) {
35
35
  try {
36
- const res = await fetch(REGISTRY_URL, { headers: { 'user-agent': 'dsh-cert-mcp' } })
36
+ const res = await fetch(REGISTRY_URL, {
37
+ headers: { 'user-agent': 'dsh-cert-mcp' },
38
+ signal: AbortSignal.timeout(10_000),
39
+ })
37
40
  if (res.ok) {
38
41
  registry = await res.json()
39
42
  lastFetch = Date.now()