@agvel/mcp 0.0.0-stage → 1.0.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 CHANGED
@@ -1,3 +1,29 @@
1
- # Temporary Holding Version
1
+ # @agvel/mcp
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ <p>
4
+ <a href="https://agvel.org/developers/mcp/">
5
+ <picture>
6
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/agvel-ai/agvel/main/assets/package-agvel-mcp-dark.png">
7
+ <img src="https://raw.githubusercontent.com/agvel-ai/agvel/main/assets/package-agvel-mcp-light.png" alt="@agvel/mcp: the Agvel MCP servers over stdio." width="100%">
8
+ </picture>
9
+ </a>
10
+ </p>
11
+
12
+ The [Agvel](https://agvel.org) MCP servers over stdio, for clients that start a local command. It forwards each request to the hosted servers, so you get the same ten read-only tools in one server.
13
+
14
+ ```json
15
+ {
16
+ "mcpServers": {
17
+ "agvel": { "command": "npx", "args": ["-y", "@agvel/mcp"] }
18
+ }
19
+ }
20
+ ```
21
+
22
+ | Tools | From |
23
+ | --- | --- |
24
+ | `list_releases`, `get_citation`, `list_citable`, `list_results`, `get_item`, `get_model_answers`, `get_badge` | The Agvel MCP server, `https://agvel.org/mcp` |
25
+ | `search`, `list_research`, `get_page` | The Agvel docs MCP server, `https://agvel.org/mcp/docs` |
26
+
27
+ Clients that speak Streamable HTTP can skip this package and add both URLs directly. Set `AGVEL_URL` to point at another host.
28
+
29
+ Docs: [agvel.org/developers/mcp](https://agvel.org/developers/mcp/) · Licence: Apache 2.0
@@ -0,0 +1,36 @@
1
+ #!/usr/bin/env node
2
+ // agvel-mcp: Agvel's MCP servers over stdio, for MCP clients that start a local command.
3
+ // Each JSON-RPC line on stdin is forwarded to https://agvel.org/mcp/docs (search and pages) or /mcp (releases, citations, results),
4
+ // and the answer is written to stdout. tools/list merges both servers. No dependencies; Node 18+.
5
+ import { createInterface } from 'node:readline';
6
+
7
+ const BASE = (process.env.AGVEL_URL || 'https://agvel.org').replace(/\/$/, '');
8
+ const DOCS_TOOLS = new Set(['search', 'list_research', 'get_page']);
9
+ const send = (m) => process.stdout.write(JSON.stringify(m) + '\n');
10
+ const post = async (path, msg) => {
11
+ const r = await fetch(BASE + path, { method: 'POST', headers: { 'Content-Type': 'application/json', Accept: 'application/json' }, body: JSON.stringify(msg) });
12
+ if (r.status === 202) return null;
13
+ return r.json();
14
+ };
15
+
16
+ createInterface({ input: process.stdin }).on('line', async (line) => {
17
+ if (!line.trim()) return;
18
+ let msg;
19
+ try { msg = JSON.parse(line); } catch { return send({ jsonrpc: '2.0', id: null, error: { code: -32700, message: 'Parse error' } }); }
20
+ try {
21
+ if (msg.method === 'tools/list') {
22
+ const [a, b] = await Promise.all([post('/mcp', msg), post('/mcp/docs', msg)]);
23
+ return send({ jsonrpc: '2.0', id: msg.id, result: { tools: [...(a?.result?.tools ?? []), ...(b?.result?.tools ?? [])] } });
24
+ }
25
+ if (msg.method === 'initialize') {
26
+ const r = await post('/mcp', msg);
27
+ if (r?.result) r.result.serverInfo = { name: '@agvel/mcp', title: 'Agvel', version: '1.0.0' };
28
+ return r && send(r);
29
+ }
30
+ const path = msg.method === 'tools/call' && DOCS_TOOLS.has(msg.params?.name) ? '/mcp/docs' : '/mcp';
31
+ const r = await post(path, msg);
32
+ if (r && msg.id !== undefined) send(r);
33
+ } catch (e) {
34
+ if (msg.id !== undefined) send({ jsonrpc: '2.0', id: msg.id, error: { code: -32603, message: `agvel.org unreachable: ${e.message}` } });
35
+ }
36
+ });
package/package.json CHANGED
@@ -1,6 +1,40 @@
1
1
  {
2
2
  "name": "@agvel/mcp",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.0.0",
4
+ "description": "MCP server for Agvel over stdio: releases, citations, results, search and page text from Agvel's open AI benchmarks, datasets and papers.",
5
+ "type": "module",
6
+ "bin": {
7
+ "agvel-mcp": "bin/agvel-mcp.js"
8
+ },
9
+ "files": [
10
+ "bin",
11
+ "README.md"
12
+ ],
13
+ "engines": {
14
+ "node": ">=18"
15
+ },
16
+ "keywords": [
17
+ "mcp",
18
+ "model-context-protocol",
19
+ "mcp-server",
20
+ "agvel",
21
+ "benchmarks",
22
+ "datasets"
23
+ ],
24
+ "homepage": "https://agvel.org/developers/mcp/",
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "git+https://github.com/agvel-ai/agvel.git",
28
+ "directory": "packages/agvel-mcp"
29
+ },
30
+ "mcpName": "org.agvel/agvel",
31
+ "author": "Agvel <hello@agvel.org> (https://agvel.org)",
32
+ "license": "Apache-2.0",
33
+ "bugs": {
34
+ "url": "https://github.com/agvel-ai/agvel/issues",
35
+ "email": "hello@agvel.org"
36
+ },
37
+ "publishConfig": {
38
+ "access": "public"
39
+ }
40
+ }