@aipper/zentao-mcp-server 0.1.13 → 0.1.14

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/package.json +1 -1
  2. package/src/zentao.js +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aipper/zentao-mcp-server",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "A minimal MCP server for ZenTao (token + focused bug workflow tools).",
package/src/zentao.js CHANGED
@@ -517,7 +517,9 @@ export function createZenTaoClient(config) {
517
517
  : cleaned.startsWith("//")
518
518
  ? new URL(`${baseProtocol}${cleaned}`)
519
519
  : cleaned.startsWith("/")
520
- ? resolveAgainstDeploymentPath(cleaned)
520
+ ? (cleaned.includes("?") || cleaned.includes("#"))
521
+ ? new URL(cleaned.replace(/^\//, ""), deploymentBaseUrl)
522
+ : resolveAgainstDeploymentPath(cleaned)
521
523
  : resolveAgainstDeploymentPath(`/${cleaned.replace(/^\.?\//, "")}`);
522
524
  if (candidate.origin !== baseOrigin) return "";
523
525
  return candidate.toString();