@velaro/mcp-server 0.6.57 → 0.6.58

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/server.js +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velaro/mcp-server",
3
- "version": "0.6.57",
3
+ "version": "0.6.58",
4
4
  "description": "Velaro MCP server — connect Claude and other AI agents directly to your Velaro account: KB, workflows, bots, conversations, contacts, routing, and more.",
5
5
  "type": "module",
6
6
  "bin": {
package/server.js CHANGED
@@ -170,6 +170,8 @@ const messagingPatch = (path, body) => messagingRequest('PATCH', path, body);
170
170
  const messagingDel = (path) => messagingRequest('DELETE', path);
171
171
 
172
172
  async function api(method, path, body, base = API_BASE) {
173
+ // Normalize: a path without a leading slash would glue onto the host ("...comScraperJobs/...") and fail as "fetch failed".
174
+ if (!path.startsWith('/')) path = '/' + path;
173
175
  const res = await fetch(`${base}${path}`, {
174
176
  method,
175
177
  headers: { Authorization: authHeader(), 'Content-Type': 'application/json' },