obsbot-mcp 0.6.1 → 0.6.2
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/index.js +22 -1
- package/dist/index.js.map +1 -1
- package/dist/mcp/server.js +1 -1
- package/native/prebuilt/darwin-arm64/obsbot-helper +0 -0
- package/native/prebuilt/darwin-x64/obsbot-helper +0 -0
- package/native/prebuilt/linux-x64/obsbot-helper +0 -0
- package/native/prebuilt/win32-x64/obsbot-helper.exe +0 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { realpathSync } from "node:fs";
|
|
2
3
|
import { fileURLToPath } from "node:url";
|
|
3
4
|
import { startServer } from "./mcp/server.js";
|
|
4
5
|
export const NAME = "obsbot-mcp";
|
|
6
|
+
// npm installs a `bin` entry as a SYMLINK on POSIX:
|
|
7
|
+
//
|
|
8
|
+
// /usr/local/bin/obsbot-mcp -> ../lib/node_modules/obsbot-mcp/dist/index.js
|
|
9
|
+
//
|
|
10
|
+
// and node reports argv[1] as the path it was *invoked by*, not the file that
|
|
11
|
+
// path resolves to. Comparing the two raw strings therefore failed for every
|
|
12
|
+
// global install and every `npx` run on Linux and macOS: startServer() was never
|
|
13
|
+
// called and the process exited 0 in silence. Windows hid it — npm writes a .cmd
|
|
14
|
+
// shim that runs node against the real path, so the raw comparison held there.
|
|
15
|
+
// Resolve both sides before comparing. See test/bin-entry.test.ts.
|
|
16
|
+
const resolved = (p) => {
|
|
17
|
+
try {
|
|
18
|
+
return realpathSync(p);
|
|
19
|
+
}
|
|
20
|
+
catch {
|
|
21
|
+
// argv[1] need not name an existing file; fall back to the raw string so an
|
|
22
|
+
// unresolvable path simply fails to match rather than throwing on startup.
|
|
23
|
+
return p;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
5
26
|
const isMain = process.argv[1] !== undefined &&
|
|
6
|
-
fileURLToPath(import.meta.url) === process.argv[1];
|
|
27
|
+
resolved(fileURLToPath(import.meta.url)) === resolved(process.argv[1]);
|
|
7
28
|
if (isMain) {
|
|
8
29
|
const debug = process.argv.includes("--debug");
|
|
9
30
|
startServer({ debug }).catch((err) => {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,CAAC,MAAM,IAAI,GAAG,YAAY,CAAC;AAEjC,MAAM,MAAM,GACV,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,SAAS;IAC7B,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,CAAC,MAAM,IAAI,GAAG,YAAY,CAAC;AAEjC,oDAAoD;AACpD,EAAE;AACF,8EAA8E;AAC9E,EAAE;AACF,8EAA8E;AAC9E,6EAA6E;AAC7E,iFAAiF;AACjF,iFAAiF;AACjF,+EAA+E;AAC/E,mEAAmE;AACnE,MAAM,QAAQ,GAAG,CAAC,CAAS,EAAU,EAAE;IACrC,IAAI,CAAC;QACH,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC;IACzB,CAAC;IAAC,MAAM,CAAC;QACP,4EAA4E;QAC5E,2EAA2E;QAC3E,OAAO,CAAC,CAAC;IACX,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,MAAM,GACV,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,SAAS;IAC7B,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,KAAK,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AAEzE,IAAI,MAAM,EAAE,CAAC;IACX,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IAC/C,WAAW,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,GAAY,EAAE,EAAE;QAC5C,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACnB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/dist/mcp/server.js
CHANGED
|
@@ -71,7 +71,7 @@ export async function startServer(opts = {}) {
|
|
|
71
71
|
process.on("SIGTERM", () => { shutdown(); process.exit(0); });
|
|
72
72
|
const server = new Server(
|
|
73
73
|
// Must match package.json's version; test/version-sync.test.ts enforces it.
|
|
74
|
-
{ name: "obsbot-mcp", version: "0.6.
|
|
74
|
+
{ name: "obsbot-mcp", version: "0.6.2" }, { capabilities: { tools: {} } });
|
|
75
75
|
server.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
76
76
|
tools: tools.map((tool) => ({
|
|
77
77
|
name: tool.name,
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|