@modelfetch/azure-functions
Version:
Azure Functions runtime adapter for MCP servers built with ModelFetch
14 lines • 492 B
JavaScript
import { app } from "@azure/functions";
import { azureHonoHandler } from "@marplex/hono-azurefunc-adapter";
import { createApp } from "@modelfetch/core";
export default function handle(arg) {
const honoApp = createApp(arg);
app.setup({ enableHttpStream: true });
app.http("default", {
methods: ["GET", "POST", "DELETE"],
route: "{*path}",
authLevel: "anonymous",
handler: azureHonoHandler(honoApp.fetch),
});
}
//# sourceMappingURL=index.js.map