@scorehub/mcp-server 0.1.1 → 0.1.3

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 +2 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -53,6 +53,7 @@ async function callRemoteTool(name, args) {
53
53
  creator_performance: "/mcp/tools/creator-performance",
54
54
  create_conversation: "/mcp/tools/create-conversation",
55
55
  send_message: "/mcp/tools/send-message",
56
+ get_categories: "/mcp/tools/get-categories",
56
57
  };
57
58
  const endpoint = toolEndpoints[name];
58
59
  if (!endpoint) {
@@ -133,7 +134,7 @@ server.setRequestHandler(types_js_1.CallToolRequestSchema, async (request) => {
133
134
  catch { /* headless env: user opens manually */ }
134
135
  try {
135
136
  const { code } = await callbackPromise;
136
- const baseUrl = REMOTE_MCP_URL.replace(/\/mcp.*$/, "");
137
+ const baseUrl = new URL(REMOTE_MCP_URL).origin;
137
138
  const tokenResp = await fetch(`${baseUrl}/token`, {
138
139
  method: "POST",
139
140
  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.3",
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": {