+7
-7
| { | ||
| "name": "@fre4x/hn", | ||
| "version": "1.1.2", | ||
| "version": "1.1.3", | ||
| "description": "A Hacker News MCP server for LLMs.", | ||
@@ -14,3 +14,3 @@ "type": "module", | ||
| "scripts": { | ||
| "build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && npx esbuild src/index.ts --bundle --outfile=dist/index.js --platform=node --format=esm --banner:js=\"import{createRequire}from'module';const require=createRequire(import.meta.url);\" && node -e \"const fs=require('fs');const p='dist/index.js';const c=fs.readFileSync(p,'utf8');const next=c.startsWith('#!/usr/bin/env node')?c:'#!/usr/bin/env node\\n'+c;fs.writeFileSync(p,next);fs.chmodSync(p,0o755);\"", | ||
| "build": "node ../scripts/build-package.mjs", | ||
| "typecheck": "cross-env NODE_OPTIONS=--max-old-space-size=4096 tsc --noEmit", | ||
@@ -20,4 +20,4 @@ "start": "node dist/index.js", | ||
| "watch": "tsc -w", | ||
| "inspector": "node ../scripts/run-official-inspector.mjs node dist/index.js", | ||
| "test": "vitest run --passWithNoTests --exclude dist" | ||
| "inspector": "npm run build && node ../scripts/run-official-inspector.mjs node dist/index.js", | ||
| "test": "node ../scripts/run-vitest.mjs run --passWithNoTests --exclude dist" | ||
| }, | ||
@@ -33,8 +33,8 @@ "keywords": [ | ||
| "dependencies": { | ||
| "@modelcontextprotocol/sdk": "^1.26.0", | ||
| "@modelcontextprotocol/sdk": "^1.27.1", | ||
| "axios": "^1.13.5", | ||
| "zod": "^4.0.0" | ||
| "zod": "^4.3.6" | ||
| }, | ||
| "devDependencies": { | ||
| "@types/node": "^25.3.0", | ||
| "@types/node": "^25.3.5", | ||
| "tsx": "^4.21.0", | ||
@@ -41,0 +41,0 @@ "typescript": "^5.9.3", |
+10
-10
@@ -13,12 +13,12 @@ # hn — The Street Pulse | ||
| |------|--------------| | ||
| | `hn_get_top_stories` | Current top stories (paginated) | | ||
| | `hn_get_new_stories` | Newest submissions (paginated) | | ||
| | `hn_get_best_stories` | All-time best stories (paginated) | | ||
| | `hn_get_ask_stories` | Ask HN threads (paginated) | | ||
| | `hn_get_show_stories` | Show HN threads (paginated) | | ||
| | `hn_get_job_stories` | Job postings (paginated) | | ||
| | `hn_get_item` | Full details for any item — story, comment, poll | | ||
| | `hn_get_user` | User profile and karma | | ||
| | `hn_get_updates` | IDs of recently changed items and profiles | | ||
| | `hn_get_max_item` | Latest item ID — the frontier of the stream | | ||
| | `get_top_stories` | Current top stories (paginated) | | ||
| | `get_new_stories` | Newest submissions (paginated) | | ||
| | `get_best_stories` | All-time best stories (paginated) | | ||
| | `get_ask_stories` | Ask HN threads (paginated) | | ||
| | `get_show_stories` | Show HN threads (paginated) | | ||
| | `get_job_stories` | Job postings (paginated) | | ||
| | `get_item` | Full details for any item — story, comment, poll | | ||
| | `get_user` | User profile and karma | | ||
| | `get_updates` | IDs of recently changed items and profiles | | ||
| | `get_max_item` | Latest item ID — the frontier of the stream | | ||
@@ -25,0 +25,0 @@ All tools return paginated Markdown or JSON. Token limit enforced at ~3,000 tokens per response. |
Sorry, the diff of this file is too big to display
1563052
0.18%46187
0.24%Updated