tender-mcp 1.2.4 → 1.2.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 CHANGED
@@ -1,3 +1,9 @@
1
+ ## [1.2.5] - 2026-04-28
2
+
3
+ ### Changed
4
+ - Payment links updated to prepaid bundle URLs: 500 searches for $8 -- calls never expire
5
+ - Free tier limit errors now direct agents to prepaid bundle purchase link directly
6
+
1
7
  ## [1.2.4] - 2026-04-27
2
8
 
3
9
  ### Added
package/LICENSE CHANGED
@@ -1,6 +1,21 @@
1
- UNLICENSED
1
+ MIT License
2
2
 
3
- Copyright (c) 2026 Kord Agencies
3
+ Copyright (c) 2026 Kord Agencies Pte Ltd
4
4
 
5
- All rights reserved. This software and its source code are proprietary and confidential.
6
- Unauthorized copying, modification, distribution, or use is strictly prohibited.
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:
11
+
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": "tender-mcp",
3
3
  "mcpName": "io.github.OjasKord/tender-mcp",
4
- "version": "1.2.4",
4
+ "version": "1.2.5",
5
5
  "description": "Government tender search and AI opportunity scoring for AI agents. UK Contracts Finder, EU TED, US SAM.gov.",
6
6
  "main": "src/server.js",
7
7
  "scripts": {
@@ -28,7 +28,7 @@
28
28
  "validator"
29
29
  ],
30
30
  "author": "Kord Agencies Pte Ltd <ojas@kordagencies.com>",
31
- "license": "UNLICENSED",
31
+ "license": "MIT",
32
32
  "homepage": "https://kordagencies.com",
33
33
  "repository": {
34
34
  "type": "git",
package/src/server.js CHANGED
@@ -3,7 +3,9 @@ const https = require('https');
3
3
  const crypto = require('crypto');
4
4
  const fs = require('fs');
5
5
 
6
- const VERSION = '1.2.4';
6
+ const VERSION = '1.2.5';
7
+ const PRO_UPGRADE_URL = 'https://buy.stripe.com/9B600i5k1bPv2xC6Fqebu0n';
8
+ const ENTERPRISE_UPGRADE_URL = 'https://buy.stripe.com/7sY7sKaEldXDegk0h2ebu0o';
7
9
  const PERSIST_FILE = '/tmp/tender_stats.json';
8
10
  const RESEND_API_KEY = process.env.RESEND_API_KEY || '';
9
11
  const ANTHROPIC_API_KEY = process.env.ANTHROPIC_API_KEY || '';
@@ -375,7 +377,7 @@ async function executeTool(name, args, tier) {
375
377
  message: 'Pro plan unlocks daily monitoring and award history for these keywords.',
376
378
  daily_digest: 'Get all new tenders matching "' + keyword + '" automatically every 24 hours — never miss an opportunity before competitors.',
377
379
  award_history: 'See which companies have won similar contracts and at what values — critical for bid pricing strategy.',
378
- upgrade_url: 'https://kordagencies.com'
380
+ upgrade_url: PRO_UPGRADE_URL
379
381
  };
380
382
 
381
383
  return result;
@@ -412,7 +414,7 @@ async function executeTool(name, args, tier) {
412
414
  keyword_previewed: previewKeyword,
413
415
  new_tenders_found_today: previewCount,
414
416
  message: previewCount > 0
415
- ? previewCount + ' new tenders matching "' + previewKeyword + '" were posted in the last 24 hours. Pro plan required to access them upgrade at kordagencies.com before competitors do.'
417
+ ? previewCount + ' new tenders matching "' + previewKeyword + '" were posted in the last 24 hours. Get 500 searches for $8 at ' + PRO_UPGRADE_URL + ' -- calls never expire.'
416
418
  : 'No new tenders matching "' + previewKeyword + '" today. Pro plan monitors all your keywords daily and alerts you the moment new opportunities appear.',
417
419
  what_you_get_on_pro: [
418
420
  'All new tenders matching up to 5 keywords checked daily',
@@ -420,7 +422,7 @@ async function executeTool(name, args, tier) {
420
422
  'Results from UK, EU, and US simultaneously',
421
423
  '500 searches/month'
422
424
  ],
423
- upgrade_url: 'https://kordagencies.com',
425
+ upgrade_url: PRO_UPGRADE_URL,
424
426
  checked_at: checkedAt,
425
427
  _disclaimer: LEGAL_DISCLAIMER
426
428
  };
@@ -494,7 +496,7 @@ async function executeTool(name, args, tier) {
494
496
  'Frequency analysis — who dominates your target sector',
495
497
  'Identify teaming partners or threats before bidding'
496
498
  ],
497
- upgrade_url: 'https://kordagencies.com',
499
+ upgrade_url: PRO_UPGRADE_URL,
498
500
  checked_at: checkedAt,
499
501
  _disclaimer: LEGAL_DISCLAIMER
500
502
  };
@@ -549,8 +551,8 @@ function checkAccess(req, toolName) {
549
551
  if (calls >= FREE_TIER_LIMIT) {
550
552
  return {
551
553
  allowed: false,
552
- reason: 'Free tier limit of ' + FREE_TIER_LIMIT + ' searches/month reached. You have seen it work upgrade to Pro ($199/month) at kordagencies.com for 500 searches/month.',
553
- upgrade_url: 'https://kordagencies.com',
554
+ reason: 'Free tier limit reached. Get 500 searches for $8 at ' + PRO_UPGRADE_URL + ' -- calls never expire.',
555
+ upgrade_url: PRO_UPGRADE_URL,
554
556
  tier: 'free_limit_reached'
555
557
  };
556
558
  }
@@ -559,7 +561,7 @@ function checkAccess(req, toolName) {
559
561
  const remaining = FREE_TIER_LIMIT - calls - 1;
560
562
  return {
561
563
  allowed: true, tier: 'free', remaining,
562
- warning: remaining <= 2 ? remaining + ' free search' + (remaining === 1 ? '' : 'es') + ' remaining this month. Upgrade at kordagencies.com to avoid interruption.' : null
564
+ warning: remaining <= 2 ? remaining + ' free search' + (remaining === 1 ? '' : 'es') + ' remaining this month. Get 500 searches for $8 at ' + PRO_UPGRADE_URL + ' -- calls never expire.' : null
563
565
  };
564
566
  }
565
567
 
@@ -695,7 +697,7 @@ const server = http.createServer(async (req, res) => {
695
697
 
696
698
  if (!access.allowed) {
697
699
  res.writeHead(200, { ...cors, 'Content-Type': 'application/json' });
698
- res.end(JSON.stringify({ jsonrpc: '2.0', id: request.id, result: { content: [{ type: 'text', text: JSON.stringify({ error: access.reason, agent_action: access.tier === 'invalid' ? 'PROVIDE_REQUIRED_FIELD' : 'Inform user free tier quota is exhausted. Upgrade available at kordagencies.com', upgrade_url: 'https://kordagencies.com', _disclaimer: LEGAL_DISCLAIMER }) }] } }));
700
+ res.end(JSON.stringify({ jsonrpc: '2.0', id: request.id, result: { content: [{ type: 'text', text: JSON.stringify({ error: access.reason, agent_action: access.tier === 'invalid' ? 'PROVIDE_REQUIRED_FIELD' : 'Inform user free tier quota is exhausted. Get 500 searches for $8 at ' + PRO_UPGRADE_URL + ' -- calls never expire.', upgrade_url: PRO_UPGRADE_URL, _disclaimer: LEGAL_DISCLAIMER }) }] } }));
699
701
  return;
700
702
  }
701
703
 
@@ -714,15 +716,15 @@ const server = http.createServer(async (req, res) => {
714
716
  const hidden = total - shown.length;
715
717
  result.tenders = shown;
716
718
  if (hidden > 0) {
717
- result._free_tier = 'Showing 3 of ' + total + ' results (' + hidden + ' hidden). ' + (access.remaining || 0) + ' free searches remaining this month. Upgrade to Pro ($199/month) at kordagencies.com for full results.';
719
+ result._free_tier = 'Showing 3 of ' + total + ' results (' + hidden + ' hidden). ' + (access.remaining || 0) + ' free searches remaining this month. Get 500 searches for $8 at ' + PRO_UPGRADE_URL + ' -- calls never expire.';
718
720
  }
719
721
  // Gate reasons on scoring for free tier
720
722
  if (result.scoring && result.scoring.market_insight) {
721
- result.scoring.market_insight = '[Upgrade to Pro for market insights — kordagencies.com]';
723
+ result.scoring.market_insight = '[Get 500 searches for $8 at ' + PRO_UPGRADE_URL + ' for market insights]';
722
724
  }
723
725
  if (result.tenders) {
724
726
  result.tenders = result.tenders.map(t => {
725
- if (t.reasons) { const { reasons, ...rest } = t; return { ...rest, _reasons: '[Upgrade to Pro for full scoring reasons — kordagencies.com]' }; }
727
+ if (t.reasons) { const { reasons, ...rest } = t; return { ...rest, _reasons: '[Get 500 searches for $8 at ' + PRO_UPGRADE_URL + ' for full scoring reasons]' }; }
726
728
  return t;
727
729
  });
728
730
  }
@@ -745,7 +747,7 @@ const server = http.createServer(async (req, res) => {
745
747
 
746
748
  if (req.method === 'GET' && req.url === '/') {
747
749
  res.writeHead(200, { ...cors, 'Content-Type': 'application/json' });
748
- res.end(JSON.stringify({ name: 'tender-mcp', version: VERSION, status: 'ok', tools: 2, free_tier: '10 searches/month, no API key required', description: 'Government tender search + AI fit scoring. UK, EU, US.', upgrade: 'https://kordagencies.com' }));
750
+ res.end(JSON.stringify({ name: 'tender-mcp', version: VERSION, status: 'ok', tools: 2, free_tier: '10 searches/month, no API key required', description: 'Government tender search + AI fit scoring. UK, EU, US.', upgrade: PRO_UPGRADE_URL }));
749
751
  return;
750
752
  }
751
753