@fileverse/api 0.0.22 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +3 -7
- package/dist/cli/index.js.map +1 -1
- package/dist/commands/index.js +1 -1
- package/dist/commands/index.js.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/public/guide.md +286 -0
- package/public/llm.txt +239 -499
package/dist/index.js
CHANGED
|
@@ -18528,6 +18528,7 @@ function createMcpRouter(config3) {
|
|
|
18528
18528
|
}
|
|
18529
18529
|
|
|
18530
18530
|
// src/index.ts
|
|
18531
|
+
import { join as join2 } from "path";
|
|
18531
18532
|
var port = parseInt(config.PORT || "8001", 10);
|
|
18532
18533
|
var ip = config.IP || "0.0.0.0";
|
|
18533
18534
|
var server;
|
|
@@ -18553,6 +18554,9 @@ var startServer = async () => {
|
|
|
18553
18554
|
if (req.method === "POST" && req.path === "/" && req.body?.jsonrpc) {
|
|
18554
18555
|
req.url = "/mcp";
|
|
18555
18556
|
}
|
|
18557
|
+
if (req.method === "GET" && req.path === "/") {
|
|
18558
|
+
return _res.sendFile(join2(__dirname, "../public/guide.md"));
|
|
18559
|
+
}
|
|
18556
18560
|
next();
|
|
18557
18561
|
});
|
|
18558
18562
|
app_default.use("/mcp", createMcpRouter({ serverUrl: `http://localhost:${port}`, apiKey }));
|