local-model-suitability-mcp 1.1.4 → 1.1.5
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/CHANGELOG.md +6 -0
- package/LICENSE +17 -5
- package/package.json +2 -2
- package/src/server.js +7 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.1.5] - 2026-04-28
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
- Payment links updated to prepaid bundle URLs: 500 calls for $20 -- calls never expire
|
|
7
|
+
- Free tier limit errors now direct agents to prepaid bundle purchase link directly
|
|
8
|
+
|
|
3
9
|
## [1.1.4] - 2026-04-27
|
|
4
10
|
|
|
5
11
|
### Added
|
package/LICENSE
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
MIT License
|
|
2
2
|
|
|
3
3
|
Copyright (c) 2026 Kord Agencies Pte Ltd
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
and
|
|
7
|
-
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
8
11
|
|
|
9
|
-
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "local-model-suitability-mcp",
|
|
3
3
|
"mcpName": "io.github.OjasKord/local-model-suitability-mcp",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.5",
|
|
5
5
|
"description": "Check whether a task can run on a local model instead of cloud. Save money on every call that does not need cloud inference.",
|
|
6
6
|
"main": "src/server.js",
|
|
7
7
|
"type": "module",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"llama"
|
|
27
27
|
],
|
|
28
28
|
"author": "Kord Agencies Pte Ltd <ojas@kordagencies.com>",
|
|
29
|
-
"license": "
|
|
29
|
+
"license": "MIT",
|
|
30
30
|
"homepage": "https://kordagencies.com",
|
|
31
31
|
"repository": {
|
|
32
32
|
"type": "git",
|
package/src/server.js
CHANGED
|
@@ -3,7 +3,9 @@ import { createHmac, timingSafeEqual } from 'crypto';
|
|
|
3
3
|
import { readFileSync, writeFileSync } from 'fs';
|
|
4
4
|
import Anthropic from '@anthropic-ai/sdk';
|
|
5
5
|
|
|
6
|
-
const VERSION = '1.1.
|
|
6
|
+
const VERSION = '1.1.5';
|
|
7
|
+
const PRO_UPGRADE_URL = 'https://buy.stripe.com/cNibJ08wd7zf6NS0h2ebu0p';
|
|
8
|
+
const ENTERPRISE_UPGRADE_URL = 'https://buy.stripe.com/28E9AS27PbPvfkoe7Sebu0q';
|
|
7
9
|
const PERSIST_FILE = '/tmp/lms_stats.json';
|
|
8
10
|
const LEGAL_DISCLAIMER = 'AI-powered routing analysis. We do not log or store your task content. Results are for cost-optimisation guidance only. Provider maximum liability is limited to subscription fees paid in the preceding 3 months. Full terms: kordagencies.com/terms.html';
|
|
9
11
|
|
|
@@ -393,7 +395,7 @@ const server = createServer(async (req, res) => {
|
|
|
393
395
|
if (!access.allowed) {
|
|
394
396
|
response = {
|
|
395
397
|
jsonrpc: '2.0', id: request.id,
|
|
396
|
-
result: { content: [{ type: 'text', text: JSON.stringify({ error: `Free tier limit
|
|
398
|
+
result: { content: [{ type: 'text', text: JSON.stringify({ error: `Free tier limit reached. Get 500 calls for $20 at ${PRO_UPGRADE_URL} -- calls never expire.`, agent_action: `Inform user free tier quota is exhausted. Get 500 calls for $20 at ${PRO_UPGRADE_URL} -- calls never expire.`, upgrade_url: PRO_UPGRADE_URL }) }] }
|
|
397
399
|
};
|
|
398
400
|
} else {
|
|
399
401
|
if (access.tier === 'free') incrementFreeTier(clientIp);
|
|
@@ -411,12 +413,12 @@ const server = createServer(async (req, res) => {
|
|
|
411
413
|
analysis_type: result.analysis_type,
|
|
412
414
|
checked_at: result.checked_at,
|
|
413
415
|
_disclaimer: result._disclaimer,
|
|
414
|
-
upgrade_url:
|
|
416
|
+
upgrade_url: PRO_UPGRADE_URL
|
|
415
417
|
};
|
|
416
418
|
if (access.remaining <= 4) {
|
|
417
|
-
freeResult._notice = `Warning: ${access.remaining} free calls remaining this month.
|
|
419
|
+
freeResult._notice = `Warning: ${access.remaining} free calls remaining this month. Get 500 calls for $20 at ${PRO_UPGRADE_URL} -- calls never expire.`;
|
|
418
420
|
} else {
|
|
419
|
-
freeResult._notice = `${FREE_TIER_LIMIT - access.remaining + 1}/${FREE_TIER_LIMIT} free calls used.
|
|
421
|
+
freeResult._notice = `${FREE_TIER_LIMIT - access.remaining + 1}/${FREE_TIER_LIMIT} free calls used. Get 500 calls for $20 at ${PRO_UPGRADE_URL} -- calls never expire. Includes full cost savings and model recommendations.`;
|
|
420
422
|
}
|
|
421
423
|
response = { jsonrpc: '2.0', id: request.id, result: { content: [{ type: 'text', text: JSON.stringify(freeResult) }] } };
|
|
422
424
|
} else {
|