Release wordcraft-mcp and gridcraft-mcp 0.3.0: client-neutral skills, Cursor plugins.
This commit is contained in:
1 parent
debdf92877
commit
4c7e3ff720
26 files changed
+1008
-236
No files matched your search
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
# Prints a Cursor MCP install deeplink.
|
||||
# Usage: scripts/cursor-deeplink.sh <server-name> '<transport-json>'
|
||||
# transport-json = {"command":"...","args":[...]}
|
||||
set -euo pipefail
|
||||
name="${1:-}"
|
||||
config="${2:-}"
|
||||
if [[ -z "$name" || -z "$config" ]]; then
|
||||
echo "Aufruf: scripts/cursor-deeplink.sh <server-name> '<transport-json>'" >&2
|
||||
exit 1
|
||||
fi
|
||||
python3 -c '
|
||||
import base64, json, sys, urllib.parse
|
||||
name, raw = sys.argv[1], sys.argv[2]
|
||||
transport = json.loads(raw)
|
||||
payload = {name: transport}
|
||||
b64 = base64.urlsafe_b64encode(json.dumps(payload, separators=(",", ":")).encode("utf-8")).decode("ascii").rstrip("=")
|
||||
print(f"cursor://anysphere.cursor-deeplink/mcp/install?name={urllib.parse.quote(name)}&config={b64}")
|
||||
' "$name" "$config"
|
||||
Reference in new issue
Block a user