@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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. 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.replace(/\/mcp.*$/, "");
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" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scorehub/mcp-server",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "ScoreHub local MCP proxy — OAuth login, token caching, and tool forwarding to remote MCP endpoint",
5
5
  "main": "dist/index.js",
6
6
  "bin": {