@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/index.js CHANGED
@@ -1615,7 +1615,7 @@ function matchesWindowTarget(w, filter) {
1615
1615
  }
1616
1616
 
1617
1617
  // src/index.ts
1618
- var MCP_BRIDGE_VERSION = "0.2.1";
1618
+ var MCP_BRIDGE_VERSION = "0.2.2";
1619
1619
  var DEFAULT_MCP_URL = "https://luaward.com/mcp";
1620
1620
  var TOKEN_SHAPE = /^lwm_[0-9a-f]{48}$/;
1621
1621
  function resolveStoredToken(configDir) {
@@ -2846,7 +2846,7 @@ ${lines.join("\n")}` }]
2846
2846
  return JSON.stringify({ jsonrpc: "2.0", id, result: localResult });
2847
2847
  }
2848
2848
  try {
2849
- if (toolName === "exec" && rawArgs.file_path !== void 0) {
2849
+ if ((toolName === "exec" || toolName === "run_and_collect") && rawArgs.file_path !== void 0) {
2850
2850
  this.resolveLocalFileArg(rawArgs, "code");
2851
2851
  msg.params = { ...msg.params, arguments: rawArgs };
2852
2852
  } else if ((toolName === "create_script" || toolName === "deploy_script") && rawArgs.file_path !== void 0) {
@@ -2902,7 +2902,7 @@ ${lines.join("\n")}` }]
2902
2902
  const existingNames = new Set(resultObj.tools.map((t) => String(t.name ?? "")));
2903
2903
  for (const tool of resultObj.tools) {
2904
2904
  const tName = String(tool.name ?? "");
2905
- if ((tName === "exec" || tName === "create_script" || tName === "deploy_script") && tool.inputSchema && typeof tool.inputSchema === "object") {
2905
+ if ((tName === "exec" || tName === "run_and_collect" || tName === "create_script" || tName === "deploy_script") && tool.inputSchema && typeof tool.inputSchema === "object") {
2906
2906
  const schema = tool.inputSchema;
2907
2907
  schema.properties = {
2908
2908
  ...schema.properties ?? {},
@@ -2911,7 +2911,7 @@ ${lines.join("\n")}` }]
2911
2911
  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."
2912
2912
  }
2913
2913
  };
2914
- if (tName === "exec" && Array.isArray(schema.required)) {
2914
+ if ((tName === "exec" || tName === "run_and_collect") && Array.isArray(schema.required)) {
2915
2915
  schema.required = schema.required.filter((r) => r !== "code");
2916
2916
  }
2917
2917
  if ((tName === "create_script" || tName === "deploy_script") && Array.isArray(schema.required)) {