@rvry/mcp 0.1.3 → 0.1.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/index.js +4 -1
- package/dist/setup.js +12 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13,6 +13,9 @@ import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
|
13
13
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
14
14
|
import { CallToolRequestSchema, ListToolsRequestSchema, ListPromptsRequestSchema, GetPromptRequestSchema, } from '@modelcontextprotocol/sdk/types.js';
|
|
15
15
|
import { callTool } from './client.js';
|
|
16
|
+
import { createRequire } from 'module';
|
|
17
|
+
const require = createRequire(import.meta.url);
|
|
18
|
+
const PKG_VERSION = require('../package.json').version;
|
|
16
19
|
/** Cache original question per session for response enrichment */
|
|
17
20
|
const questionCache = new Map();
|
|
18
21
|
/**
|
|
@@ -198,7 +201,7 @@ async function main() {
|
|
|
198
201
|
console.error('[rvry-mcp] Generate one at https://rvry.ai/dashboard');
|
|
199
202
|
process.exit(1);
|
|
200
203
|
}
|
|
201
|
-
const server = new Server({ name: 'RVRY', version:
|
|
204
|
+
const server = new Server({ name: 'RVRY', version: PKG_VERSION }, { capabilities: { tools: {}, prompts: {} } });
|
|
202
205
|
server.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
203
206
|
tools: TOOL_DEFS,
|
|
204
207
|
}));
|
package/dist/setup.js
CHANGED
|
@@ -15,6 +15,9 @@ import { homedir } from 'os';
|
|
|
15
15
|
import { createInterface } from 'readline';
|
|
16
16
|
import { execSync } from 'child_process';
|
|
17
17
|
import { platform } from 'os';
|
|
18
|
+
import { createRequire } from 'module';
|
|
19
|
+
const require = createRequire(import.meta.url);
|
|
20
|
+
const PKG_VERSION = require('../package.json').version;
|
|
18
21
|
const ENGINE_URL = 'https://engine.rvry.ai';
|
|
19
22
|
const COMMAND_FILES = [
|
|
20
23
|
'deepthink.md',
|
|
@@ -454,16 +457,18 @@ async function installCommands() {
|
|
|
454
457
|
}
|
|
455
458
|
// ── Main setup flow ────────────────────────────────────────────────
|
|
456
459
|
const BANNER = `
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
460
|
+
8888888b. 888 888 8888888b. Y88b d88P
|
|
461
|
+
888 Y88b 888 888 888 Y88b Y88b d88P
|
|
462
|
+
888 888 888 888 888 888 Y88o88P
|
|
463
|
+
888 d88P Y88b d88P 888 d88P Y888P
|
|
464
|
+
8888888P" Y88b d88P 8888888P" 888
|
|
465
|
+
888 T88b Y88o88P 888 T88b 888
|
|
466
|
+
888 T88b Y888P 888 T88b 888
|
|
467
|
+
888 T88b Y8P 888 T88b 888
|
|
463
468
|
`;
|
|
464
469
|
export async function runSetup() {
|
|
465
470
|
console.log(BANNER);
|
|
466
|
-
console.log(
|
|
471
|
+
console.log(`Setup v${PKG_VERSION}`);
|
|
467
472
|
console.log('');
|
|
468
473
|
// Parse flags
|
|
469
474
|
const tokenFlagIndex = process.argv.indexOf('--token');
|