@holin-work/holin-cli 1.1.0 → 1.1.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/bin/holin-cli.js +3 -1
- package/package.json +1 -1
package/bin/holin-cli.js
CHANGED
|
@@ -155,11 +155,13 @@ function createProxyServer() {
|
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
// Build upstream request
|
|
158
|
+
// MCP streamable-http has a single endpoint; forward directly to upstream path.
|
|
159
|
+
// Accio requests http://127.0.0.1:18787/mcp → upstream https://api.holin.work/icbu/mcp
|
|
158
160
|
const upstreamUrl = new URL(UPSTREAM_URL);
|
|
159
161
|
const options = {
|
|
160
162
|
hostname: upstreamUrl.hostname,
|
|
161
163
|
port: upstreamUrl.port || 443,
|
|
162
|
-
path: upstreamUrl.pathname
|
|
164
|
+
path: upstreamUrl.pathname,
|
|
163
165
|
method: req.method,
|
|
164
166
|
headers: {
|
|
165
167
|
...req.headers,
|