add-mcp 1.2.0 → 1.2.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/dist/index.js +8 -5
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -160,11 +160,14 @@ function transformOpenCodeConfig(_serverName, config) {
|
|
|
160
160
|
}
|
|
161
161
|
function transformCodexConfig(_serverName, config) {
|
|
162
162
|
if (config.url) {
|
|
163
|
-
|
|
163
|
+
const remoteConfig = {
|
|
164
164
|
type: config.type || "http",
|
|
165
|
-
url: config.url
|
|
166
|
-
headers: config.headers
|
|
165
|
+
url: config.url
|
|
167
166
|
};
|
|
167
|
+
if (config.headers && Object.keys(config.headers).length > 0) {
|
|
168
|
+
remoteConfig.http_headers = config.headers;
|
|
169
|
+
}
|
|
170
|
+
return remoteConfig;
|
|
168
171
|
}
|
|
169
172
|
return {
|
|
170
173
|
command: config.command,
|
|
@@ -940,13 +943,13 @@ function installServer(serverName, serverConfig, agentTypes, options = {}) {
|
|
|
940
943
|
// package.json
|
|
941
944
|
var package_default = {
|
|
942
945
|
name: "add-mcp",
|
|
943
|
-
version: "1.2.
|
|
946
|
+
version: "1.2.1",
|
|
944
947
|
description: "Add MCP servers to your favorite coding agents with a single command.",
|
|
945
948
|
author: "Andre Landgraf <andre@neon.tech>",
|
|
946
949
|
license: "Apache-2.0",
|
|
947
950
|
type: "module",
|
|
948
951
|
bin: {
|
|
949
|
-
"add-mcp": "
|
|
952
|
+
"add-mcp": "dist/index.js"
|
|
950
953
|
},
|
|
951
954
|
files: [
|
|
952
955
|
"dist",
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "add-mcp",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Add MCP servers to your favorite coding agents with a single command.",
|
|
5
5
|
"author": "Andre Landgraf <andre@neon.tech>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"bin": {
|
|
9
|
-
"add-mcp": "
|
|
9
|
+
"add-mcp": "dist/index.js"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
12
|
"dist",
|