hcb-cli-and-mcp

module
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2026 License: MIT

README

hcb-cli-and-mcp

This is a little repo that exposes the read-only API calls from HCB's v4 API as an MCP server and a CLI app. It's meant to help agents answer read-only questions about HCB, like: "what is Stardance spending its money on?".

Setup / Install

MCP

Use the URL https://hcb-mcp.k.hackclub.dev/mcp and add it as a connector to Claude / ChatGPT / etc. The server brokers the OAuth flow itself (a sub-authorization-server — see cmd/hcb-mcp/oauth.go), so any MCP client's callback URL works with PKCE and no per-client registration on the HCB OAuth app; each user authorizes on HCB's real consent page and sees exactly what their own HCB account can see.

CLI

With Homebrew (macOS and Linux):

brew tap hackclub/hcb-cli-and-mcp https://github.com/hackclub/hcb-cli-and-mcp
brew install hcb

This installs both binaries: the hcb CLI and the hcb-mcp server. Then:

hcb login          # authorize in your browser — no client id/secret needed
hcb orgs           # list your organizations

hcb login brokers through the hosted server's OAuth bridge by default; pass --client-id/--client-secret to use your own HCB OAuth app directly.

License

MIT

Directories

Path Synopsis
cmd
hcb command
Command hcb is a read-only CLI for the HCB v4 API.
Command hcb is a read-only CLI for the HCB v4 API.
hcb-mcp command
Command hcb-mcp is a read-only MCP server for the HCB v4 API.
Command hcb-mcp is a read-only MCP server for the HCB v4 API.
internal
scripts
e2e-mcp command
Manual E2E for the MCP server: spawns the real hcb-mcp binary over stdio and calls every tool against production HCB (read-only).
Manual E2E for the MCP server: spawns the real hcb-mcp binary over stdio and calls every tool against production HCB (read-only).
e2e-mcp-http command
Live check for a hosted hcb-mcp instance over streamable HTTP.
Live check for a hosted hcb-mcp instance over streamable HTTP.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL