mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-15 20:17:22 +00:00
@@ -6,18 +6,12 @@ import { writeFile, readFile } from "node:fs/promises";
|
||||
|
||||
const config = {
|
||||
mcpConfig: "./mcp.json",
|
||||
outFile: "./content/docs/(documentation)/modules/server/mcp.mdx",
|
||||
outFile: "./content/docs/(documentation)/usage/mcp/tools-resources.mdx",
|
||||
};
|
||||
|
||||
async function generate() {
|
||||
console.info("Generating MCP documentation...");
|
||||
|
||||
try {
|
||||
console.log("bun version", Bun.version);
|
||||
} catch (e) {
|
||||
console.log("bun failed");
|
||||
}
|
||||
|
||||
await cleanup();
|
||||
const mcpConfig = JSON.parse(await readFile(config.mcpConfig, "utf-8"));
|
||||
const document = await generateDocument(mcpConfig);
|
||||
@@ -34,7 +28,7 @@ async function generateDocument({
|
||||
}) {
|
||||
return `---
|
||||
title: "MCP"
|
||||
description: "Built-in full featured MCP server."
|
||||
description: "Tools & Resources of the built-in full featured MCP server."
|
||||
tags: ["documentation"]
|
||||
---
|
||||
import { JsonSchemaTypeTable } from '@/components/McpTool';
|
||||
|
||||
Reference in New Issue
Block a user