touchdesigner-mcp-server 0.4.0-alpha.2 → 0.4.0-alpha.3
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
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import
|
|
2
|
+
import { resolve } from "node:path";
|
|
3
3
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
4
4
|
import { config } from "dotenv";
|
|
5
5
|
import { TouchDesignerServer } from "./server/touchDesignerServer.js";
|
|
@@ -29,10 +29,7 @@ export async function startServer() {
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
// Start server if this file is executed directly
|
|
32
|
-
|
|
33
|
-
const currentFilePath = path.normalize(fileURLToPath(import.meta.url));
|
|
34
|
-
const argvFilePath = path.normalize(process.argv[1]);
|
|
35
|
-
if (currentFilePath === argvFilePath) {
|
|
32
|
+
if (process.argv[1]) {
|
|
36
33
|
startServer().catch((error) => {
|
|
37
34
|
console.error("Failed to start server:", error);
|
|
38
35
|
process.exit(1);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* TouchDesigner API
|
|
5
5
|
* OpenAPI schema for generating TouchDesigner API client code
|
|
6
|
-
* OpenAPI spec version: 0.4.0-alpha.
|
|
6
|
+
* OpenAPI spec version: 0.4.0-alpha.3
|
|
7
7
|
*/
|
|
8
8
|
import { customInstance } from '../../api/customInstance.js';
|
|
9
9
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|