imcp 0.0.9 → 0.0.10
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/README.md +5 -94
- package/dist/cli/index.js +3 -6
- package/package.json +1 -1
- package/src/cli/index.ts +3 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# IMCP
|
|
2
2
|
|
|
3
|
-
IMCP is a
|
|
3
|
+
IMCP is a Node.js SDK for MCP servers, offering a streamlined, powerful experience of managing MCP servers to your agents (e.g. code agents such as Cline/Github Copilot/Roo), through a unified interface – currently we support coding, browser and Bing tools but can expand more. Let’s use it to weapon your agents
|
|
4
4
|
|
|
5
5
|
## Overview
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@ IMCP allows you to:
|
|
|
10
10
|
- Run a local UI interface with simple click experience to manage MCP servers
|
|
11
11
|
- (in progress) Distribute your own MCP servers to others
|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## Get started
|
|
14
14
|
- Quick usage with latest version
|
|
15
15
|
```
|
|
16
16
|
npx -y imcp@latest serve
|
|
@@ -20,6 +20,9 @@ npx -y imcp@latest serve
|
|
|
20
20
|
```bash
|
|
21
21
|
npm install -g imcp
|
|
22
22
|
```
|
|
23
|
+
```
|
|
24
|
+
imcp serve
|
|
25
|
+
```
|
|
23
26
|
|
|
24
27
|
## Commands
|
|
25
28
|
|
|
@@ -44,98 +47,6 @@ Example:
|
|
|
44
47
|
imcp serve --port 8080
|
|
45
48
|
```
|
|
46
49
|
|
|
47
|
-
### list
|
|
48
|
-
|
|
49
|
-
Lists all available MCP servers from configured feeds.
|
|
50
|
-
|
|
51
|
-
```bash
|
|
52
|
-
imcp list [options]
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
Options:
|
|
56
|
-
- `--pull`: Sync with remote feeds before listing
|
|
57
|
-
|
|
58
|
-
Example:
|
|
59
|
-
```bash
|
|
60
|
-
# List servers after syncing with remote feeds
|
|
61
|
-
imcp list --pull
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
### install
|
|
65
|
-
|
|
66
|
-
Installs specific MCP servers.
|
|
67
|
-
|
|
68
|
-
```bash
|
|
69
|
-
imcp install [options]
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
Options:
|
|
73
|
-
- `--category <category>`: Server category (required)
|
|
74
|
-
- `--name <name>`: Server name to install (required)
|
|
75
|
-
- `--force`: Force installation even if server already exists
|
|
76
|
-
- `--clients <clients>`: Target clients (semicolon separated). Supported values: Cline, MSRooCode, GithubCopilot
|
|
77
|
-
- `--envs <envs>`: Environment variables (semicolon separated key=value pairs)
|
|
78
|
-
|
|
79
|
-
Examples:
|
|
80
|
-
```bash
|
|
81
|
-
# Install a server
|
|
82
|
-
imcp install --category ai-coder-tools --name git-tools
|
|
83
|
-
|
|
84
|
-
# Install with specific client targets
|
|
85
|
-
imcp install --category ai-coder-tools --name git-tools --clients "MSRooCode;GithubCopilot"
|
|
86
|
-
|
|
87
|
-
# Install with environment variables
|
|
88
|
-
imcp install --category ai-coder-tools --name git-tools --envs "GITHUB_TOKEN=abc123;API_KEY=xyz789"
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
### pull
|
|
92
|
-
|
|
93
|
-
Pulls MCP server configurations from remote feed sources to update local feeds.
|
|
94
|
-
|
|
95
|
-
```bash
|
|
96
|
-
imcp pull
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
Example:
|
|
100
|
-
```bash
|
|
101
|
-
# Update local feeds with the latest server configurations
|
|
102
|
-
imcp pull
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
## Development
|
|
106
|
-
|
|
107
|
-
### Prerequisites
|
|
108
|
-
|
|
109
|
-
- Node.js
|
|
110
|
-
- npm
|
|
111
|
-
|
|
112
|
-
### Setup
|
|
113
|
-
|
|
114
|
-
```bash
|
|
115
|
-
# Clone the repository
|
|
116
|
-
git clone <repository-url>
|
|
117
|
-
cd imcp
|
|
118
|
-
|
|
119
|
-
# Install dependencies
|
|
120
|
-
npm install
|
|
121
|
-
|
|
122
|
-
# Build the project
|
|
123
|
-
npm run build
|
|
124
|
-
|
|
125
|
-
# Run in development mode
|
|
126
|
-
npm run dev
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
### Scripts
|
|
130
|
-
|
|
131
|
-
- `npm run build`: Builds the project and copies necessary files
|
|
132
|
-
- `npm run dev`: Runs TypeScript in watch mode
|
|
133
|
-
- `npm run start`: Starts the web server
|
|
134
|
-
- `npm run dev:server`: Starts the development server with hot reloading
|
|
135
|
-
- `npm run test`: Runs tests
|
|
136
|
-
- `npm run lint`: Lints the source code
|
|
137
|
-
- `npm run format`: Formats the source code
|
|
138
|
-
|
|
139
50
|
## License
|
|
140
51
|
|
|
141
52
|
MIT
|
package/dist/cli/index.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { Command } from 'commander';
|
|
3
3
|
import { createServeCommand } from './commands/serve.js';
|
|
4
|
-
import { createListCommand } from './commands/list.js';
|
|
5
|
-
import { createInstallCommand } from './commands/install.js';
|
|
6
|
-
import { createPullCommand } from './commands/pull.js';
|
|
7
4
|
import { Logger } from '../utils/logger.js';
|
|
8
5
|
import axios from 'axios';
|
|
9
6
|
import path from 'path';
|
|
@@ -30,10 +27,10 @@ async function main() {
|
|
|
30
27
|
Logger.setVerbose(!!opts.verbose);
|
|
31
28
|
// Add all commands
|
|
32
29
|
program.addCommand(createServeCommand());
|
|
33
|
-
program.addCommand(createListCommand());
|
|
34
|
-
program.addCommand(createInstallCommand());
|
|
30
|
+
// program.addCommand(createListCommand());
|
|
31
|
+
// program.addCommand(createInstallCommand());
|
|
35
32
|
// program.addCommand(createUninstallCommand());
|
|
36
|
-
program.addCommand(createPullCommand());
|
|
33
|
+
// program.addCommand(createPullCommand());
|
|
37
34
|
// Error handling for the entire CLI
|
|
38
35
|
program.exitOverride();
|
|
39
36
|
// Check for updates
|
package/package.json
CHANGED
package/src/cli/index.ts
CHANGED
|
@@ -42,10 +42,10 @@ async function main(): Promise<void> {
|
|
|
42
42
|
|
|
43
43
|
// Add all commands
|
|
44
44
|
program.addCommand(createServeCommand());
|
|
45
|
-
program.addCommand(createListCommand());
|
|
46
|
-
program.addCommand(createInstallCommand());
|
|
45
|
+
// program.addCommand(createListCommand());
|
|
46
|
+
// program.addCommand(createInstallCommand());
|
|
47
47
|
// program.addCommand(createUninstallCommand());
|
|
48
|
-
program.addCommand(createPullCommand());
|
|
48
|
+
// program.addCommand(createPullCommand());
|
|
49
49
|
|
|
50
50
|
// Error handling for the entire CLI
|
|
51
51
|
program.exitOverride();
|