@modelfetch/node
Version:
Node.js runtime adapter for MCP servers built with ModelFetch
11 lines • 549 B
TypeScript
import type { ServerOrConfig } from "@modelfetch/core";
import type { AddressInfo } from "node:net";
import type { Except } from "type-fest";
import { serve } from "@hono/node-server";
type Args = Parameters<typeof serve>;
export declare function getEndpoint(address: AddressInfo): string;
export type Callback = Args[1];
export type Options = Except<Args[0], "fetch">;
export default function handle(arg: ServerOrConfig, callback?: Callback, options?: Options): import("@hono/node-server").ServerType;
export {};
//# sourceMappingURL=index.d.ts.map