mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
docs: update tools, test bun
This commit is contained in:
24
docs/package-lock.json
generated
24
docs/package-lock.json
generated
@@ -28,6 +28,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tailwindcss/postcss": "^4.1.11",
|
"@tailwindcss/postcss": "^4.1.11",
|
||||||
|
"@types/bun": "^1.2.19",
|
||||||
"@types/mdx": "^2.0.13",
|
"@types/mdx": "^2.0.13",
|
||||||
"@types/node": "24.0.10",
|
"@types/node": "24.0.10",
|
||||||
"@types/react": "^19.1.8",
|
"@types/react": "^19.1.8",
|
||||||
@@ -3281,6 +3282,16 @@
|
|||||||
"tslib": "^2.4.0"
|
"tslib": "^2.4.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@types/bun": {
|
||||||
|
"version": "1.2.19",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/bun/-/bun-1.2.19.tgz",
|
||||||
|
"integrity": "sha512-d9ZCmrH3CJ2uYKXQIUuZ/pUnTqIvLDS0SK7pFmbx8ma+ziH/FRMoAq5bYpRG7y+w1gl+HgyNZbtqgMq4W4e2Lg==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"bun-types": "1.2.19"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@types/debug": {
|
"node_modules/@types/debug": {
|
||||||
"version": "4.1.12",
|
"version": "4.1.12",
|
||||||
"resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.12.tgz",
|
"resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.12.tgz",
|
||||||
@@ -4382,6 +4393,19 @@
|
|||||||
"node": ">=8"
|
"node": ">=8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/bun-types": {
|
||||||
|
"version": "1.2.19",
|
||||||
|
"resolved": "https://registry.npmjs.org/bun-types/-/bun-types-1.2.19.tgz",
|
||||||
|
"integrity": "sha512-uAOTaZSPuYsWIXRpj7o56Let0g/wjihKCkeRqUBhlLVM/Bt+Fj9xTo+LhC1OV1XDaGkz4hNC80et5xgy+9KTHQ==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@types/node": "*"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@types/react": "^19"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/busboy": {
|
"node_modules/busboy": {
|
||||||
"version": "1.6.0",
|
"version": "1.6.0",
|
||||||
"resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz",
|
"resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz",
|
||||||
|
|||||||
@@ -36,6 +36,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tailwindcss/postcss": "^4.1.11",
|
"@tailwindcss/postcss": "^4.1.11",
|
||||||
|
"@types/bun": "^1.2.19",
|
||||||
"@types/mdx": "^2.0.13",
|
"@types/mdx": "^2.0.13",
|
||||||
"@types/node": "24.0.10",
|
"@types/node": "24.0.10",
|
||||||
"@types/react": "^19.1.8",
|
"@types/react": "^19.1.8",
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
/// <reference types="@types/bun" />
|
||||||
|
|
||||||
import type { Tool, Resource } from "jsonv-ts/mcp";
|
import type { Tool, Resource } from "jsonv-ts/mcp";
|
||||||
import { rimraf } from "rimraf";
|
import { rimraf } from "rimraf";
|
||||||
import { writeFile, readFile } from "node:fs/promises";
|
import { writeFile, readFile } from "node:fs/promises";
|
||||||
@@ -9,6 +11,13 @@ const config = {
|
|||||||
|
|
||||||
async function generate() {
|
async function generate() {
|
||||||
console.info("Generating MCP documentation...");
|
console.info("Generating MCP documentation...");
|
||||||
|
|
||||||
|
try {
|
||||||
|
console.log("bun version", Bun.version);
|
||||||
|
} catch (e) {
|
||||||
|
console.log("bun failed");
|
||||||
|
}
|
||||||
|
|
||||||
await cleanup();
|
await cleanup();
|
||||||
const mcpConfig = JSON.parse(await readFile(config.mcpConfig, "utf-8"));
|
const mcpConfig = JSON.parse(await readFile(config.mcpConfig, "utf-8"));
|
||||||
const document = await generateDocument(mcpConfig);
|
const document = await generateDocument(mcpConfig);
|
||||||
@@ -35,7 +44,7 @@ import { JsonSchemaTypeTable } from '@/components/McpTool';
|
|||||||
${tools
|
${tools
|
||||||
.map(
|
.map(
|
||||||
(t) => `
|
(t) => `
|
||||||
### ${t.name}
|
### \`${t.name}\`
|
||||||
|
|
||||||
${t.description ?? ""}
|
${t.description ?? ""}
|
||||||
|
|
||||||
@@ -50,7 +59,7 @@ ${resources
|
|||||||
.map(
|
.map(
|
||||||
(r) => `
|
(r) => `
|
||||||
|
|
||||||
### ${r.name}
|
### \`${r.name}\`
|
||||||
|
|
||||||
${r.description ?? ""}
|
${r.description ?? ""}
|
||||||
`,
|
`,
|
||||||
|
|||||||
Reference in New Issue
Block a user