Skip to main content
Glama
ssv445

Lorem Ipsum MCP Server

by ssv445
TestLive.ts1.57 kB
/** * @since 2.0.0 */ import * as Context from "./Context.js" import type * as DefaultServices from "./DefaultServices.js" import type * as Effect from "./Effect.js" import * as core from "./internal/core.js" import * as defaultServices from "./internal/defaultServices.js" /** * @since 2.0.0 */ export const TestLiveTypeId: unique symbol = Symbol.for("effect/TestLive") /** * @since 2.0.0 */ export type TestLiveTypeId = typeof TestLiveTypeId /** * The `Live` trait provides access to the "live" default Effect services from * within tests for workflows such as printing test results to the console or * timing out tests where it is necessary to access the real implementations of * these services. * * @since 2.0.0 */ export interface TestLive { readonly [TestLiveTypeId]: TestLiveTypeId provide<A, E, R>(effect: Effect.Effect<A, E, R>): Effect.Effect<A, E, R> } /** * @since 2.0.0 */ export const TestLive: Context.Tag<TestLive, TestLive> = Context.GenericTag<TestLive>("effect/TestLive") /** @internal */ class LiveImpl implements TestLive { readonly [TestLiveTypeId]: TestLiveTypeId = TestLiveTypeId constructor(readonly services: Context.Context<DefaultServices.DefaultServices>) {} provide<A, E, R>(effect: Effect.Effect<A, E, R>): Effect.Effect<A, E, R> { return core.fiberRefLocallyWith( defaultServices.currentServices, Context.merge(this.services) )(effect) } } /** * @since 2.0.0 */ export const make = (services: Context.Context<DefaultServices.DefaultServices>): TestLive => new LiveImpl(services)

Latest Blog Posts

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/ssv445/lorem-ipsum-mcp'

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