okta-mcp-server
Version:
Model Context Protocol (MCP) server for Okta API operations with support for bulk operations and caching
23 lines • 561 B
JavaScript
/**
* Utility functions for resource handlers
*/
/**
* Clean undefined values from an object
* TypeScript's exactOptionalPropertyTypes requires this
*/
export function cleanUndefined(obj) {
const cleaned = {};
for (const [key, value] of Object.entries(obj)) {
if (value !== undefined) {
cleaned[key] = value;
}
}
return cleaned;
}
/**
* Build query parameters object, removing undefined values
*/
export function buildQueryParams(params) {
return cleanUndefined(params);
}
//# sourceMappingURL=utils.js.map