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 { Binary } from '@medplum/fhirtypes';
import { randomUUID } from 'crypto';
import { loadTestConfig } from '../../config/loader';
import { getPresignedUrl } from './signer';
describe('Signer', () => {
beforeAll(async () => {
jest.useFakeTimers();
await loadTestConfig();
});
afterAll(() => {
jest.useRealTimers();
});
test('Presign URL', () => {
jest.setSystemTime(new Date('2023-02-10T00:00:00.000Z'));
const binary = {
resourceType: 'Binary',
id: randomUUID(),
meta: {
versionId: randomUUID(),
},
} as Binary;
expect(getPresignedUrl(binary)).toMatch(/\?Expires=1675990800&Key-Pair-Id=/);
});
});