skiller 0.11.0 → 0.11.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/agents/CodexCliAgent.js +20 -14
- package/package.json +1 -1
|
@@ -95,20 +95,26 @@ class CodexCliAgent {
|
|
|
95
95
|
}
|
|
96
96
|
// Add the skiller servers
|
|
97
97
|
for (const [serverName, serverConfig] of Object.entries(skillerServers)) {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
98
|
+
const mcpServer = {};
|
|
99
|
+
if (serverConfig.url) {
|
|
100
|
+
mcpServer.url = serverConfig.url;
|
|
101
|
+
const httpHeaders = serverConfig.http_headers ?? serverConfig.headers;
|
|
102
|
+
if (httpHeaders) {
|
|
103
|
+
mcpServer.http_headers = httpHeaders;
|
|
104
|
+
}
|
|
104
105
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
106
|
+
else if (serverConfig.command) {
|
|
107
|
+
mcpServer.command = serverConfig.command;
|
|
108
|
+
if (serverConfig.args) {
|
|
109
|
+
mcpServer.args = serverConfig.args;
|
|
110
|
+
}
|
|
111
|
+
// Format env as an inline table
|
|
112
|
+
if (serverConfig.env) {
|
|
113
|
+
mcpServer.env = serverConfig.env;
|
|
114
|
+
}
|
|
115
|
+
if (serverConfig.headers) {
|
|
116
|
+
mcpServer.headers = serverConfig.headers;
|
|
117
|
+
}
|
|
112
118
|
}
|
|
113
119
|
if (updatedConfig.mcp_servers) {
|
|
114
120
|
updatedConfig.mcp_servers[serverName] = mcpServer;
|
|
@@ -131,7 +137,7 @@ class CodexCliAgent {
|
|
|
131
137
|
return true;
|
|
132
138
|
}
|
|
133
139
|
supportsMcpRemote() {
|
|
134
|
-
return
|
|
140
|
+
return true;
|
|
135
141
|
}
|
|
136
142
|
supportsNativeSkills() {
|
|
137
143
|
return true;
|