@ktmcp-cli/nowpayments 1.0.0 → 1.0.1

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 KTMCP
3
+ Copyright (c) 2026 Tom Granot
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,12 +1,11 @@
1
- # NOWPayments CLI
2
-
3
- <p align="center">
4
- <img src="banner.png" alt="KTMCP Banner" width="100%">
5
- </p>
1
+ ![Banner](https://raw.githubusercontent.com/ktmcp-cli/nowpayments/main/banner.svg)
6
2
 
3
+ # NOWPayments CLI
7
4
 
8
5
  A production-ready command-line interface for the [NOWPayments](https://nowpayments.io) cryptocurrency payment processing API. Built with Commander.js for robust API integration and automation.
9
6
 
7
+ > **⚠️ Unofficial CLI** - This tool is not officially sponsored, endorsed, or maintained by NOWPayments. It is an independent project built on the public NOWPayments API. Official site: https://nowpayments.io | API docs: https://documenter.getpostman.com/view/7907941/S1a32n38
8
+
10
9
  ## Why CLI > MCP
11
10
 
12
11
  While Model Context Protocol (MCP) servers provide AI integration, a dedicated CLI offers superior advantages:
package/banner.svg ADDED
@@ -0,0 +1,25 @@
1
+ <svg width="1200" height="300" xmlns="http://www.w3.org/2000/svg">
2
+ <defs>
3
+ <linearGradient id="bg" x1="0%" y1="0%" x2="100%" y2="100%">
4
+ <stop offset="0%" style="stop-color:#0a0a0a;stop-opacity:1" />
5
+ <stop offset="100%" style="stop-color:#1a1a1a;stop-opacity:1" />
6
+ </linearGradient>
7
+ </defs>
8
+
9
+ <rect width="1200" height="300" fill="url(#bg)"/>
10
+ <rect x="0" y="0" width="8" height="300" fill="#00ff7f"/>
11
+
12
+ <text x="60" y="100" font-family="system-ui, -apple-system, sans-serif" font-size="72" font-weight="800" fill="#ffffff">Nowpayments CLI</text>
13
+ <text x="60" y="150" font-family="system-ui, -apple-system, sans-serif" font-size="28" fill="#888888">Cryptocurrency payment processing</text>
14
+
15
+ <rect x="60" y="190" width="600" height="60" rx="8" fill="#1e1e1e"/>
16
+ <text x="90" y="230" font-family="monospace" font-size="20" fill="#00ff7f">npm install -g @ktmcp-cli/nowpayments</text>
17
+
18
+ <!-- Terminal window badge -->
19
+ <rect x="980" y="100" width="180" height="100" rx="4" fill="#0a0e0f" stroke="#00ff7f" stroke-width="2"/>
20
+ <circle cx="995" cy="115" r="3" fill="#ff5f56"/>
21
+ <circle cx="1010" cy="115" r="3" fill="#ffbd2e"/>
22
+ <circle cx="1025" cy="115" r="3" fill="#27c93f"/>
23
+ <text x="1070" y="150" font-family="monospace" font-size="14" fill="#8b9d9f" text-anchor="middle">$ kill -9</text>
24
+ <text x="1070" y="180" font-family="monospace" font-size="24" font-weight="900" fill="#00ff7f" text-anchor="middle">MCP</text>
25
+ </svg>
@@ -1,5 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
 
3
+ const { showWelcomeMessage } = require('../src/lib/welcome');
4
+ showWelcomeMessage('nowpayments');
5
+
3
6
  /**
4
7
  * NOWPayments CLI Entry Point
5
8
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ktmcp-cli/nowpayments",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Production-ready CLI for NOWPayments cryptocurrency payment processing API",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -0,0 +1,47 @@
1
+ const fs = require('fs');
2
+ const path = require('path');
3
+ const os = require('os');
4
+
5
+ function showWelcomeMessage(cliName) {
6
+ const configDir = path.join(os.homedir(), `.${cliName}`);
7
+ const welcomeFile = path.join(configDir, '.welcome-shown');
8
+
9
+ // Check if welcome was already shown
10
+ if (fs.existsSync(welcomeFile)) {
11
+ return; // Already shown
12
+ }
13
+
14
+ // Show welcome message
15
+ console.log('\n╔════════════════════════════════════════════════════════════╗');
16
+ console.log('║ ║');
17
+ console.log('║ 👋 Welcome to the Kill The MCP Project! ║');
18
+ console.log('║ ║');
19
+ console.log('║ This CLI is part of KTMCP - a project that generates ║');
20
+ console.log('║ production-ready command-line tools for APIs. ║');
21
+ console.log('║ ║');
22
+ console.log('║ 🎯 Why CLI over MCP? ║');
23
+ console.log('║ • Faster: Direct API calls, no server overhead ║');
24
+ console.log('║ • Cheaper: No tokens, no server costs ║');
25
+ console.log('║ • Simpler: Standard Unix tools, pipe & compose ║');
26
+ console.log('║ • Deterministic: Same input = same output ║');
27
+ console.log('║ ║');
28
+ console.log('║ 🤖 Perfect for AI Agents! ║');
29
+ console.log('║ Agents can use these CLIs directly via bash commands ║');
30
+ console.log('║ without needing MCP server setup. ║');
31
+ console.log('║ ║');
32
+ console.log('║ 📚 Learn more: https://killthemcp.com ║');
33
+ console.log('║ ║');
34
+ console.log('╚════════════════════════════════════════════════════════════╝\n');
35
+
36
+ // Create config dir and mark as shown
37
+ try {
38
+ if (!fs.existsSync(configDir)) {
39
+ fs.mkdirSync(configDir, { recursive: true });
40
+ }
41
+ fs.writeFileSync(welcomeFile, new Date().toISOString());
42
+ } catch (err) {
43
+ // Silently fail if can't create file
44
+ }
45
+ }
46
+
47
+ module.exports = { showWelcomeMessage };