@mcptoolshop/mcpt 0.2.0 → 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/package.json +3 -3
- package/README.md +0 -50
- package/bin/mcpt.js +0 -52
- package/postinstall.js +0 -25
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcptoolshop/mcpt",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "npm wrapper for mcpt - CLI for discovering and running MCP Tool Shop tools",
|
|
5
5
|
"bin": {
|
|
6
6
|
"mcpt": "./bin/mcpt.js"
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|
|
25
|
-
"url": "https://github.com/mcp-tool-shop/mcpt.git",
|
|
25
|
+
"url": "git+https://github.com/mcp-tool-shop-org/mcpt.git",
|
|
26
26
|
"directory": "npm"
|
|
27
27
|
},
|
|
28
|
-
"homepage": "https://github.com/mcp-tool-shop/mcpt#readme",
|
|
28
|
+
"homepage": "https://github.com/mcp-tool-shop-org/mcpt#readme",
|
|
29
29
|
"engines": {
|
|
30
30
|
"node": ">=18.0.0"
|
|
31
31
|
},
|
package/README.md
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
# @mikeyfrilot/mcpt
|
|
2
|
-
|
|
3
|
-
npm wrapper for [mcpt](https://pypi.org/project/mcpt/) - CLI for discovering and running MCP Tool Shop tools.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install -g @mikeyfrilot/mcpt
|
|
9
|
-
# or
|
|
10
|
-
npx @mikeyfrilot/mcpt --help
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Prerequisites
|
|
14
|
-
|
|
15
|
-
This package requires the Python `mcpt` package to be installed:
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
# Using pip
|
|
19
|
-
pip install mcpt
|
|
20
|
-
|
|
21
|
-
# Using pipx (recommended for CLI tools)
|
|
22
|
-
pipx install mcpt
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## Usage
|
|
26
|
-
|
|
27
|
-
Once both packages are installed:
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
mcpt --help
|
|
31
|
-
mcpt list
|
|
32
|
-
mcpt install tool-name
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
## Why This Wrapper?
|
|
36
|
-
|
|
37
|
-
This npm package allows Node.js projects to:
|
|
38
|
-
- Include `mcpt` in `package.json` dependencies
|
|
39
|
-
- Use `npx mcpt` without separate pip installation
|
|
40
|
-
- Integrate with npm-based toolchains
|
|
41
|
-
|
|
42
|
-
## Links
|
|
43
|
-
|
|
44
|
-
- **PyPI Package**: https://pypi.org/project/mcpt/
|
|
45
|
-
- **GitHub**: https://github.com/mcp-tool-shop/mcpt
|
|
46
|
-
- **MCP Tool Shop**: https://github.com/mcp-tool-shop
|
|
47
|
-
|
|
48
|
-
## License
|
|
49
|
-
|
|
50
|
-
MIT
|
package/bin/mcpt.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
const { spawn } = require('child_process');
|
|
3
|
-
const path = require('path');
|
|
4
|
-
const fs = require('fs');
|
|
5
|
-
|
|
6
|
-
// Check if mcpt is installed
|
|
7
|
-
function checkMcptInstalled() {
|
|
8
|
-
return new Promise((resolve) => {
|
|
9
|
-
const check = spawn('mcpt', ['--version'], { shell: true });
|
|
10
|
-
check.on('close', (code) => {
|
|
11
|
-
resolve(code === 0);
|
|
12
|
-
});
|
|
13
|
-
check.on('error', () => {
|
|
14
|
-
resolve(false);
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
async function main() {
|
|
20
|
-
const installed = await checkMcptInstalled();
|
|
21
|
-
|
|
22
|
-
if (!installed) {
|
|
23
|
-
console.error('❌ mcpt is not installed.');
|
|
24
|
-
console.error('');
|
|
25
|
-
console.error('Please install mcpt using pip:');
|
|
26
|
-
console.error(' pip install mcpt');
|
|
27
|
-
console.error('');
|
|
28
|
-
console.error('Or using pipx (recommended):');
|
|
29
|
-
console.error(' pipx install mcpt');
|
|
30
|
-
console.error('');
|
|
31
|
-
console.error('PyPI: https://pypi.org/project/mcpt/');
|
|
32
|
-
process.exit(1);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// Forward all arguments to mcpt
|
|
36
|
-
const args = process.argv.slice(2);
|
|
37
|
-
const mcpt = spawn('mcpt', args, {
|
|
38
|
-
stdio: 'inherit',
|
|
39
|
-
shell: true
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
mcpt.on('close', (code) => {
|
|
43
|
-
process.exit(code || 0);
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
mcpt.on('error', (err) => {
|
|
47
|
-
console.error('Failed to start mcpt:', err.message);
|
|
48
|
-
process.exit(1);
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
main();
|
package/postinstall.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
const { spawn } = require('child_process');
|
|
3
|
-
|
|
4
|
-
console.log('');
|
|
5
|
-
console.log('📦 @mikeyfrilot/mcpt installed!');
|
|
6
|
-
console.log('');
|
|
7
|
-
console.log('⚠️ This is an npm wrapper for the Python package "mcpt".');
|
|
8
|
-
console.log('');
|
|
9
|
-
console.log('To use mcpt, you need to install the Python package:');
|
|
10
|
-
console.log(' pip install mcpt');
|
|
11
|
-
console.log('');
|
|
12
|
-
console.log('Or using pipx (recommended for CLI tools):');
|
|
13
|
-
console.log(' pipx install mcpt');
|
|
14
|
-
console.log('');
|
|
15
|
-
console.log('PyPI: https://pypi.org/project/mcpt/');
|
|
16
|
-
console.log('');
|
|
17
|
-
|
|
18
|
-
// Try to detect if Python is available
|
|
19
|
-
const pythonCheck = spawn('python', ['--version'], { shell: true });
|
|
20
|
-
pythonCheck.on('close', (code) => {
|
|
21
|
-
if (code !== 0) {
|
|
22
|
-
console.log('⚠️ Python not found in PATH. Please install Python 3.10+');
|
|
23
|
-
console.log('');
|
|
24
|
-
}
|
|
25
|
-
});
|