@avidian/mcp-openapi 0.1.2 → 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.
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -277,7 +277,8 @@ function assignToolNames(drafts, reservedNames) {
|
|
|
277
277
|
let name = base;
|
|
278
278
|
let counter = 2;
|
|
279
279
|
while (used.has(name)) {
|
|
280
|
-
|
|
280
|
+
const suffix = `_${counter}`;
|
|
281
|
+
name = `${base.slice(0, 128 - suffix.length)}${suffix}`;
|
|
281
282
|
counter += 1;
|
|
282
283
|
}
|
|
283
284
|
used.add(name);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avidian/mcp-openapi",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "MCP server for OpenAPI/Swagger — gives AI agents the ability to discover, search, and call any REST API described by an OpenAPI document.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|