Import mcp-to-cli from the rhema workspace
ci / checks (push) Failing after 14s

The crate maps MCP tool catalogs to clap commands and back, and has no
rhema dependencies — it was in-tree only because the workspace glob
reached it. Its own repository gives it its own release cadence and
its own crates.io token, scoped to this crate alone.
This commit is contained in:
vhaudiquet committed 2026-11-12 12:20:25 +01:00
commit a7e1de76ac
24 files changed
+3817

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
# Fetch github-mcp-server's real tool definitions (the `__toolsnaps__`
# the upstream test suite snapshots) into a scratch directory, for the
# catalog example to build a full command tree from. Not a test
# fixture: the full set lives out of the tree, the trimmed fixtures in
# tests/fixtures/ are the committed matrix.
#
# crates/mcp-to-cli/examples/fetch-github-snaps.sh /tmp/snaps
set -eu
dir=${1:?usage: fetch-github-snaps.sh <target-dir>}
mkdir -p "$dir"
base=https://raw.githubusercontent.com/github/github-mcp-server/main/pkg/github/__toolsnaps__
curl -sfL "https://api.github.com/repos/github/github-mcp-server/contents/pkg/github/__toolsnaps__" |
jq -r '.[].name' |
xargs -P 8 -I{} curl -sfL "$base/{}" -o "$dir/{}"
echo "$(ls "$dir" | wc -l | tr -d ' ') tool definitions in $dir"