@alfe.ai/news-mcp 0.2.2 → 0.2.4
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/dist/server.js +2 -2
- package/package.json +2 -2
package/dist/server.js
CHANGED
|
@@ -50,7 +50,7 @@ function registerTools(server, client) {
|
|
|
50
50
|
to: z.string().optional().describe("Latest publish date, ISO-8601."),
|
|
51
51
|
language: z.string().optional().describe("ISO-639-1 language code (e.g. en)."),
|
|
52
52
|
category: z.string().optional().describe("News category (e.g. business, technology)."),
|
|
53
|
-
limit: z.number().int().positive().max(100).optional().describe("Max articles to return.")
|
|
53
|
+
limit: z.coerce.number().int().positive().max(100).optional().describe("Max articles to return.")
|
|
54
54
|
}
|
|
55
55
|
}, async (args) => {
|
|
56
56
|
try {
|
|
@@ -75,7 +75,7 @@ function registerTools(server, client) {
|
|
|
75
75
|
category: z.string().optional().describe("News category (e.g. business, technology)."),
|
|
76
76
|
source: z.string().optional().describe("Restrict to a single source/domain."),
|
|
77
77
|
language: z.string().optional().describe("ISO-639-1 language code (e.g. en)."),
|
|
78
|
-
limit: z.number().int().positive().max(100).optional().describe("Max headlines to return.")
|
|
78
|
+
limit: z.coerce.number().int().positive().max(100).optional().describe("Max headlines to return.")
|
|
79
79
|
}
|
|
80
80
|
}, async (args) => {
|
|
81
81
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfe.ai/news-mcp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "News MCP server — broad news search (APITube / NewsData) with sentiment, metered server-side via Alfe",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/server.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
21
21
|
"zod": "^4.0.5",
|
|
22
|
-
"@alfe.ai/agent-api-client": "0.
|
|
22
|
+
"@alfe.ai/agent-api-client": "0.13.0",
|
|
23
23
|
"@alfe.ai/config": "0.3.0"
|
|
24
24
|
},
|
|
25
25
|
"license": "UNLICENSED",
|