75ecb6232c
CI / Build & Test (push) Failing after 5s
- Add .gitea/workflows/ci.yml: runs build + tests on push/PR to main - Add vitest as dev dependency - Add src/utils.test.ts: 4 tests covering handleTool success, Error throw, non-Error throw, and arg passthrough - Add src/client.test.ts: 12 tests covering URL building, Authorization header, query string params, Content-Type presence/absence, error handling with message extraction and statusText fallback, and HTTP method correctness Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
30 lines
609 B
JSON
30 lines
609 B
JSON
{
|
|
"name": "betternews-mcp",
|
|
"version": "1.0.0",
|
|
"description": "MCP server for the BetterNews API",
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"bin": {
|
|
"betternews-mcp": "dist/index.js"
|
|
},
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"dev": "tsc --watch",
|
|
"start": "node dist/index.js",
|
|
"test": "vitest run",
|
|
"prepublishOnly": "pnpm build"
|
|
},
|
|
"dependencies": {
|
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
"zod": "^4.4.3"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.19.21",
|
|
"typescript": "^5.9.3",
|
|
"vitest": "^4.1.9"
|
|
},
|
|
"engines": {
|
|
"node": ">=22"
|
|
}
|
|
}
|