Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,192
  • Linux
  • Apple
getSSLVersion.test.ts2.13 kB
import { computeLibSSLSpecificPaths, getArchFromUname, getSSLVersion } from '../../src/getPlatform' import { jestContext } from '..' const describeIf = (condition: boolean) => (condition ? describe : describe.skip) const ctx = jestContext.new().assemble() describeIf(process.platform === 'linux')('computeLibSSLSpecificPaths', () => { // eslint-disable-next-line jest/no-identical-title it('should not return an error', () => { const arch = 'x64' const archFromUname = 'x86_64' computeLibSSLSpecificPaths({ familyDistro: 'debian', arch, archFromUname }) }) }) describeIf(process.platform === 'linux')('getSSLVersion', () => { // eslint-disable-next-line jest/no-identical-title it('should not return an error', async () => { const archFromUname = await getArchFromUname() await getSSLVersion([]) await getSSLVersion(['/lib64']) await getSSLVersion([`/usr/lib/${archFromUname}-linux-gnu`]) }) describe('strategy: "libssl-specific-path"', () => { const focusedStrategy = 'libssl-specific-path' it('falls back with nss only', async () => { ctx.fixture('libssl-specific-path/with-nss-only') const { strategy } = await getSSLVersion([ctx.tmpDir]) expect(strategy).not.toEqual(focusedStrategy) }) it('falls back with unknown versions only', async () => { ctx.fixture('libssl-specific-path/with-unknown-versions-only') const { strategy } = await getSSLVersion([ctx.tmpDir]) expect(strategy).not.toEqual(focusedStrategy) }) it('selects the oldest libssl version, excluding libssl-0.x.x', async () => { ctx.fixture('libssl-specific-path/with-libssl-0') const { libssl, strategy } = await getSSLVersion([ctx.tmpDir]) expect(strategy).toEqual(focusedStrategy) expect(libssl).toEqual('1.0.x') }) it('skips libssl.so without version in filename', async () => { ctx.fixture('libssl-specific-path/with-versionless-libssl') const { libssl, strategy } = await getSSLVersion([ctx.tmpDir]) expect(strategy).toEqual(focusedStrategy) expect(libssl).toEqual('1.0.x') }) }) })

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/prisma/prisma'

If you have feedback or need assistance with the MCP directory API, please join our Discord server