fix: handle numbered object conversion and update MCP tool URL

Add `convertNumberedObjectToArray` utility for handling numbered object to array conversion, addressing MCP tool allOf behavior. Adjust MCP tool URL in configuration and ensure default inspect options in development environment. Minor improvement in role enumeration handling for auth.
This commit is contained in:
dswbx committed 2025-09-14 17:03:23 +02:00
1 parent 92656523ff
commit fea2812688
5 files changed
+30 -7

No files matched your search

+7
View File
@@ -473,3 +473,10 @@ export function deepFreeze<T extends object>(object: T): T {
return Object.freeze(object);
}
export function convertNumberedObjectToArray(obj: object): any[] | object {
if (Object.keys(obj).every((key) => Number.isInteger(Number(key)))) {
return Object.values(obj);
}
return obj;
}