We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/medplum/medplum'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors
// SPDX-License-Identifier: Apache-2.0
import type { Resource } from '@medplum/fhirtypes';
/**
* Cleans a resource of meta data including `lastUpdated`, `versionId`, and `author`. This allows the resource to be updated without
* retaining outdated information.
*
* @param resource - The resoure to be cleened
* @returns Resource - a resource without certain meta data. This allows the resource in question to be safely updated.
*/
export function cleanResource(resource: Resource): Resource {
let meta = resource.meta;
if (meta) {
meta = {
...meta,
lastUpdated: undefined,
versionId: undefined,
author: undefined,
};
}
return {
...resource,
meta,
};
}