@shortcut/mcp 0.5.0 → 0.5.1

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/README.md CHANGED
@@ -17,7 +17,7 @@ See the [official Windsurf docs](https://codeium.com/docs/windsurf/mcp) for more
17
17
  "command": "npx",
18
18
  "args": [
19
19
  "-y",
20
- "@shortcut/mcp"
20
+ "@shortcut/mcp@latest"
21
21
  ],
22
22
  "env": {
23
23
  "SHORTCUT_API_TOKEN": "<YOUR_SHORTCUT_API_TOKEN>"
@@ -41,7 +41,7 @@ See the [official Cursor docs](https://docs.cursor.com/context/model-context-pro
41
41
  "command": "npx",
42
42
  "args": [
43
43
  "-y",
44
- "@shortcut/mcp"
44
+ "@shortcut/mcp@latest"
45
45
  ],
46
46
  "env": {
47
47
  "SHORTCUT_API_TOKEN": "<YOUR_SHORTCUT_API_TOKEN>"
@@ -68,7 +68,7 @@ _You can add a new MCP server from the Claude Code CLI. But modifying the json f
68
68
  "command": "npx",
69
69
  "args": [
70
70
  "-y",
71
- "@shortcut/mcp"
71
+ "@shortcut/mcp@latest"
72
72
  ],
73
73
  "env": {
74
74
  "SHORTCUT_API_TOKEN": "<YOUR_SHORTCUT_API_TOKEN>"
package/dist/index.js CHANGED
@@ -21563,7 +21563,7 @@ var import_client = __toESM(require_lib(), 1);
21563
21563
 
21564
21564
  // package.json
21565
21565
  var name = "@shortcut/mcp";
21566
- var version = "0.5.0";
21566
+ var version = "0.5.1";
21567
21567
 
21568
21568
  // src/tools/base.ts
21569
21569
  class BaseTools {
@@ -21710,12 +21710,17 @@ var formatUsersList = (users) => {
21710
21710
  };
21711
21711
 
21712
21712
  // src/tools/utils/search.ts
21713
+ var keyRenames = { team: "group", name: "title" };
21714
+ var mapKeyName = (key) => {
21715
+ const lowercaseKey = key.toLowerCase();
21716
+ return keyRenames[lowercaseKey] || lowercaseKey;
21717
+ };
21713
21718
  var getKey = (prop) => {
21714
21719
  if (prop.startsWith("is"))
21715
- return `is:${prop.slice(2).toLowerCase()}`;
21720
+ return `is:${mapKeyName(prop.slice(2))}`;
21716
21721
  if (prop.startsWith("has"))
21717
- return `has:${prop.slice(3).toLowerCase()}`;
21718
- return prop;
21722
+ return `has:${mapKeyName(prop.slice(3))}`;
21723
+ return mapKeyName(prop);
21719
21724
  };
21720
21725
  var buildSearchQuery = async (params, currentUser) => {
21721
21726
  const query = Object.entries(params).map(([key, value]) => {
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "modelcontextprotocol"
13
13
  ],
14
14
  "license": "MIT",
15
- "version": "0.5.0",
15
+ "version": "0.5.1",
16
16
  "type": "module",
17
17
  "main": "dist/index.js",
18
18
  "bin": {