mcp: sorting tools, fixed cloudflare example, fixed some styling

This commit is contained in:
dswbx
2025-08-20 18:26:48 +02:00
parent 8ec03afbe8
commit bc1ab0f6d3
10 changed files with 63 additions and 24 deletions

View File

@@ -1,12 +1,11 @@
/**
* Optionally wrapping the configuration with the `withPlatformProxy` function
* enables programmatic access to the bindings, e.g. for generating types.
*
* We're using separate files, so that "wrangler" doesn't get bundled with your worker.
*/
import { withPlatformProxy } from "bknd/adapter/cloudflare";
import config from "./config.ts";
export default withPlatformProxy({
d1: {
session: true,
},
});
export default withPlatformProxy(config);

View File

@@ -0,0 +1,7 @@
import type { CloudflareBkndConfig } from "bknd/adapter/cloudflare";
export default {
d1: {
session: true,
},
} satisfies CloudflareBkndConfig;

View File

@@ -1,4 +1,4 @@
import { serve } from "bknd/adapter/cloudflare";
import config from "../bknd.config";
import config from "../config";
export default serve(config);

View File

@@ -11,6 +11,7 @@
"isolatedModules": true,
"noImplicitAny": false,
"allowSyntheticDefaultImports": true,
"allowImportingTsExtensions": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true