@luaward/mcp 0.2.1 → 0.2.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/cli.js CHANGED
@@ -1621,7 +1621,7 @@ function matchesWindowTarget(w, filter) {
1621
1621
  }
1622
1622
 
1623
1623
  // src/index.ts
1624
- var MCP_BRIDGE_VERSION = "0.2.1";
1624
+ var MCP_BRIDGE_VERSION = "0.2.2";
1625
1625
  var DEFAULT_MCP_URL = "https://luaward.com/mcp";
1626
1626
  var TOKEN_SHAPE = /^lwm_[0-9a-f]{48}$/;
1627
1627
  function resolveStoredToken(configDir) {
@@ -2852,7 +2852,7 @@ ${lines.join("\n")}` }]
2852
2852
  return JSON.stringify({ jsonrpc: "2.0", id, result: localResult });
2853
2853
  }
2854
2854
  try {
2855
- if (toolName === "exec" && rawArgs.file_path !== void 0) {
2855
+ if ((toolName === "exec" || toolName === "run_and_collect") && rawArgs.file_path !== void 0) {
2856
2856
  this.resolveLocalFileArg(rawArgs, "code");
2857
2857
  msg.params = { ...msg.params, arguments: rawArgs };
2858
2858
  } else if ((toolName === "create_script" || toolName === "deploy_script") && rawArgs.file_path !== void 0) {
@@ -2908,7 +2908,7 @@ ${lines.join("\n")}` }]
2908
2908
  const existingNames = new Set(resultObj.tools.map((t) => String(t.name ?? "")));
2909
2909
  for (const tool of resultObj.tools) {
2910
2910
  const tName = String(tool.name ?? "");
2911
- if ((tName === "exec" || tName === "create_script" || tName === "deploy_script") && tool.inputSchema && typeof tool.inputSchema === "object") {
2911
+ if ((tName === "exec" || tName === "run_and_collect" || tName === "create_script" || tName === "deploy_script") && tool.inputSchema && typeof tool.inputSchema === "object") {
2912
2912
  const schema = tool.inputSchema;
2913
2913
  schema.properties = {
2914
2914
  ...schema.properties ?? {},
@@ -2917,7 +2917,7 @@ ${lines.join("\n")}` }]
2917
2917
  description: "Optional local .luau/.lua file path on disk; @luaward/mcp reads it automatically so you do not need to paste large code in JSON."
2918
2918
  }
2919
2919
  };
2920
- if (tName === "exec" && Array.isArray(schema.required)) {
2920
+ if ((tName === "exec" || tName === "run_and_collect") && Array.isArray(schema.required)) {
2921
2921
  schema.required = schema.required.filter((r) => r !== "code");
2922
2922
  }
2923
2923
  if ((tName === "create_script" || tName === "deploy_script") && Array.isArray(schema.required)) {