ridecredential-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/bin/cli.mjs +14 -0
- package/package.json +17 -4
- package/README.md +0 -3
package/bin/cli.mjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import readline from 'node:readline';
|
|
3
|
+
const ENDPOINT = 'https://www.ridecredential.com/api/mcp';
|
|
4
|
+
const rl = readline.createInterface({ input: process.stdin, crlfDelay: Infinity });
|
|
5
|
+
rl.on('line', async (line) => {
|
|
6
|
+
if (!line.trim()) return;
|
|
7
|
+
try {
|
|
8
|
+
const res = await fetch(ENDPOINT, { method: 'POST', headers: { 'Content-Type': 'application/json', Accept: 'application/json' }, body: line });
|
|
9
|
+
const txt = await res.text();
|
|
10
|
+
if (txt.trim()) process.stdout.write(txt.trim() + '\n');
|
|
11
|
+
} catch (e) {
|
|
12
|
+
process.stdout.write(JSON.stringify({ jsonrpc: '2.0', id: null, error: { code: -32603, message: String(e) } }) + '\n');
|
|
13
|
+
}
|
|
14
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ridecredential-mcp",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "NEMT & commercial driver credentialing cost and trip payback ROI calculators.",
|
|
5
|
+
"bin": {
|
|
6
|
+
"ridecredential-mcp": "bin/cli.mjs"
|
|
7
|
+
},
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"homepage": "https://www.ridecredential.com/claude-connector.html",
|
|
10
|
+
"type": "module",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"mcp",
|
|
13
|
+
"model-context-protocol",
|
|
14
|
+
"mcp-server",
|
|
15
|
+
"claude",
|
|
16
|
+
"cursor",
|
|
17
|
+
"ridecredential"
|
|
18
|
+
]
|
|
19
|
+
}
|
package/README.md
DELETED