npm.io
2.1.2 • Published 6d ago

@fentaris/core

Licence
MIT
Version
2.1.2
Deps
2
Size
923 kB
Vulns
0
Weekly
0
Stars
3

@fentaris/core

Runtime and TypeScript API for routing upstream MCP servers through one Fentaris endpoint.

Install

npm install @fentaris/core

Quick start

import { Policy, fentaris, stdio } from "@fentaris/core";

const app = fentaris({
  policy: Policy.allowAll(),
});

app.mcp("filesystem", {
  transport: stdio({
    command: "npx",
    args: ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"],
  }),
});

await app.start();

The default endpoint is http://localhost:4000/mcp. Policy.allowAll() is suitable for local development only; configure authentication and an allow-list policy before exposing the endpoint.

See the Fentaris documentation for transports, policy, auth, secrets, middleware, and observability.