generated from wesen/wesen-go-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Add a --convert-dashes flag that is useful for cursor which ... doe…
…sn't like dashes
- Loading branch information
Showing
16 changed files
with
328 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: call_sheep | ||
short: Call a sheep by name | ||
long: | | ||
This tool displays a list of all sheep currently registered in the database. | ||
It provides basic information about each sheep including their ID, name, and breed. | ||
The output is formatted in a clean, readable table format by default. | ||
flags: | ||
- name: csv | ||
type: bool | ||
help: Output results in CSV format | ||
default: false | ||
- name: headers | ||
type: bool | ||
help: Show column headers in output | ||
default: true | ||
|
||
shell-script: | | ||
#!/bin/bash | ||
set -euo pipefail | ||
echo "Here's a list of sheep" | ||
echo "1. Samantha, the white sheep" | ||
echo "2. John, the black sheep" | ||
echo "3. Jane, the brown sheep" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: sql-open | ||
short: Open a SQLite database for subsequent operations | ||
long: | | ||
This tool stores a SQLite database filename in a temporary file (/tmp/db-name.txt) | ||
so that it can be used by subsequent sqlite commands without specifying the --db parameter. | ||
Examples: | ||
- Open a database: go-go-mcp run-command sql-open.yaml --db my.db | ||
- Then run queries: go-go-mcp run-command sqlite.yaml --sql "SELECT * FROM users" | ||
flags: | ||
- name: db | ||
type: string | ||
help: Path to the SQLite database file | ||
required: true | ||
|
||
shell-script: | | ||
#!/bin/bash | ||
set -euo pipefail | ||
# Store the database filename in a temporary file | ||
echo "{{ .Args.db }}" > /tmp/db-name.txt | ||
# Check if the database file exists | ||
if [[ ! -f "{{ .Args.db }}" ]]; then | ||
echo "Warning: Database file '{{ .Args.db }}' does not exist. It will be created when you execute a CREATE statement." >&2 | ||
else | ||
echo "Database '{{ .Args.db }}' is now open for subsequent operations." | ||
fi | ||
Oops, something went wrong.