@mfukushim/map-traveler-mcp
Version:
Virtual traveler library for MCP
20 lines (19 loc) • 613 B
JavaScript
/*! map-traveler-mcp | MIT License | https://github.com/mfukushim/map-traveler-mcp */
import { Effect } from "effect";
import { McpService, McpServiceLive } from "./McpService.js";
export class AnswerError extends Error {
_tag = "AnswerError";
constructor(message) {
super(message);
this.name = "AnswerError";
Object.setPrototypeOf(this, AnswerError.prototype);
}
}
async function main() {
await Effect.runPromise(Effect.gen(function* () {
yield* McpService.run();
}).pipe(Effect.provide([McpServiceLive])));
}
main().catch((error) => {
});