ai-resources-mcp 1.0.0 → 1.1.0
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 +2 -3
- package/package.json +1 -1
- package/server.js +21 -1
package/README.md
CHANGED
|
@@ -8,14 +8,13 @@ An MCP server that gives any AI agent the [AI Resources](https://github.com/Drix
|
|
|
8
8
|
| `latest(category?, limit?)` | The newest briefings, overall or for one category. |
|
|
9
9
|
| `get_briefing(id)` | Full Markdown of one briefing (URL or slug), with every source link. |
|
|
10
10
|
| `list_categories()` | Every category slug with its briefing count. |
|
|
11
|
+
| `trending_movements(limit?)` | Topics accelerating week over week (rising) or hot for one week (watch), with sample headlines and source links. |
|
|
11
12
|
|
|
12
13
|
Every result ends with its source link and `Data: github.com/Drix10/ai-resources (CC BY 4.0)`, so answers stay citable.
|
|
13
14
|
|
|
14
15
|
## Install
|
|
15
16
|
|
|
16
|
-
|
|
17
|
-
> `git clone --depth 1 https://github.com/Drix10/ai-resources && cd ai-resources/mcp && npm ci`,
|
|
18
|
-
> then use `node /full/path/to/ai-resources/mcp/index.js` wherever the snippets below say `npx -y ai-resources-mcp`.
|
|
17
|
+
[](https://www.npmjs.com/package/ai-resources-mcp) · in the [official MCP Registry](https://registry.modelcontextprotocol.io/v0/servers?search=io.github.Drix10/ai-resources) as `io.github.Drix10/ai-resources`. Node.js 18+, no key, no account.
|
|
19
18
|
|
|
20
19
|
**Claude Code**
|
|
21
20
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai-resources-mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"mcpName": "io.github.Drix10/ai-resources",
|
|
5
5
|
"description": "MCP server for the AI Resources knowledge base: search and read daily AI news briefings (models, companies, funding, tools) from any AI agent.",
|
|
6
6
|
"license": "MIT",
|
package/server.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
|
-
export const VERSION = '1.
|
|
4
|
+
export const VERSION = '1.1.0';
|
|
5
5
|
export const DATA_LINE = 'Data: github.com/Drix10/ai-resources (CC BY 4.0)';
|
|
6
6
|
export const DEFAULT_BASE = 'https://blogs.drix10.com';
|
|
7
7
|
|
|
@@ -90,6 +90,26 @@ export function createServer({ base = process.env.AI_RESOURCES_API_URL || DEFAUL
|
|
|
90
90
|
}),
|
|
91
91
|
);
|
|
92
92
|
|
|
93
|
+
server.registerTool(
|
|
94
|
+
'trending_movements',
|
|
95
|
+
{
|
|
96
|
+
title: 'What is accelerating in AI',
|
|
97
|
+
description: 'Topics whose briefing coverage climbs week over week (rising) or had one hot week (watch), each with sample headlines and source links. Use for "what is trending / heating up in AI" questions. Computed from counts only; trajectories, not predictions.',
|
|
98
|
+
inputSchema: { limit },
|
|
99
|
+
},
|
|
100
|
+
guard(async ({ limit = 10 }) => {
|
|
101
|
+
const data = await api('api/signals');
|
|
102
|
+
if (!data || !Array.isArray(data.movements)) return fail(`unexpected /api/signals response shape${data && data.builtOn ? ` (built ${data.builtOn})` : ''}`);
|
|
103
|
+
const items = data.movements.slice(0, limit);
|
|
104
|
+
if (!items.length) return text(`No movement is accelerating right now (computed ${data.builtOn || 'recently'}.)\nSource: ${base}/signals\n${DATA_LINE}`);
|
|
105
|
+
const body = items.map((m, i) => [
|
|
106
|
+
`${i + 1}. [${String(m.stage).toUpperCase()}] ${m.title} (${m.category}, ${m.briefings} briefings over ${m.days}d, weeks [${(m.ladder || []).join(', ')}])`,
|
|
107
|
+
...m.samples.map((sm) => ` ${sm.date} \u2014 ${sm.headline}${sm.url ? `\n ${sm.url}` : ''}`),
|
|
108
|
+
].join('\n')).join('\n\n');
|
|
109
|
+
return text(`${items.length} topic(s) accelerating or on watch, computed ${data.builtOn}: \n\n${body}\n\nSource: ${base}/signals\n${DATA_LINE}`);
|
|
110
|
+
}),
|
|
111
|
+
);
|
|
112
|
+
|
|
93
113
|
server.registerTool(
|
|
94
114
|
'list_categories',
|
|
95
115
|
{
|