@scorehub/mcp-server 0.1.1 → 0.1.2
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 +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -133,7 +133,7 @@ server.setRequestHandler(types_js_1.CallToolRequestSchema, async (request) => {
|
|
|
133
133
|
catch { /* headless env: user opens manually */ }
|
|
134
134
|
try {
|
|
135
135
|
const { code } = await callbackPromise;
|
|
136
|
-
const baseUrl = REMOTE_MCP_URL.
|
|
136
|
+
const baseUrl = new URL(REMOTE_MCP_URL).origin;
|
|
137
137
|
const tokenResp = await fetch(`${baseUrl}/token`, {
|
|
138
138
|
method: "POST",
|
|
139
139
|
headers: { "Content-Type": "application/json" },
|