tiny-http-mcp-server 0.1.3 → 0.1.4
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.js +5 -1
- package/dist/composition.json +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { realpathSync } from "node:fs";
|
|
3
|
+
import { createRequire } from "node:module";
|
|
3
4
|
import { parseArgs } from "node:util";
|
|
4
5
|
import { pathToFileURL } from "node:url";
|
|
5
6
|
import { createHttpServer } from "./http-server.js";
|
|
6
7
|
import { loadOAuthVerifier } from "./load-oauth-verifier.js";
|
|
7
|
-
|
|
8
|
+
// createRequire instead of JSON import attributes: `with { type: "json" }` is a
|
|
9
|
+
// syntax error before Node 18.20, and engines declares >=18.18 (#517).
|
|
10
|
+
const require = createRequire(import.meta.url);
|
|
11
|
+
const packageJson = require("../package.json");
|
|
8
12
|
function readPackageInfo() {
|
|
9
13
|
return {
|
|
10
14
|
name: packageJson.name,
|
package/dist/composition.json
CHANGED