diff --git a/mcptools/batch_create_beads.sh b/mcptools/batch_create_beads.sh new file mode 100755 index 0000000..fc7c153 --- /dev/null +++ b/mcptools/batch_create_beads.sh @@ -0,0 +1,17 @@ +#!/bin/bash +# capabilities: beads +# description: Batch create beads from JSON array +# Usage: batch_create_beads.sh +set -euo pipefail + +if cat /etc/passwd >/dev/null 2>&1; then + echo "Error: This script must be run via execute_code tool" >&2 + exit 1 +fi + +if [ $# -lt 1 ]; then + echo "usage: batch_create_beads.sh " >&2 + exit 1 +fi + +echo "batch-create $1" | 9p write agent/beads/ctl diff --git a/mcptools/delete_bead.sh b/mcptools/delete_bead.sh new file mode 100755 index 0000000..4590659 --- /dev/null +++ b/mcptools/delete_bead.sh @@ -0,0 +1,17 @@ +#!/bin/bash +# capabilities: beads +# description: Delete a bead +# Usage: delete_bead.sh +set -euo pipefail + +if cat /etc/passwd >/dev/null 2>&1; then + echo "Error: This script must be run via execute_code tool" >&2 + exit 1 +fi + +if [ $# -lt 1 ]; then + echo "usage: delete_bead.sh " >&2 + exit 1 +fi + +echo "delete $1" | 9p write agent/beads/ctl diff --git a/mcptools/init_beads.sh b/mcptools/init_beads.sh new file mode 100755 index 0000000..96f3b03 --- /dev/null +++ b/mcptools/init_beads.sh @@ -0,0 +1,12 @@ +#!/bin/bash +# capabilities: beads +# description: Initialize beads project with issue prefix +# Usage: init_beads.sh [prefix] +set -euo pipefail + +if cat /etc/passwd >/dev/null 2>&1; then + echo "Error: This script must be run via execute_code tool" >&2 + exit 1 +fi + +echo "init ${1:-bd}" | 9p write agent/beads/ctl diff --git a/mcptools/sync_beads.sh b/mcptools/sync_beads.sh new file mode 100755 index 0000000..e1bf852 --- /dev/null +++ b/mcptools/sync_beads.sh @@ -0,0 +1,17 @@ +#!/bin/bash +# capabilities: beads +# description: Sync a mounted beads project +# Usage: sync_beads.sh +set -euo pipefail + +if cat /etc/passwd >/dev/null 2>&1; then + echo "Error: This script must be run via execute_code tool" >&2 + exit 1 +fi + +if [ $# -lt 1 ]; then + echo "usage: sync_beads.sh " >&2 + exit 1 +fi + +echo "sync $1" | 9p write agent/beads/ctl