podfetcher-tools
v0.1.0
Published
SDK, CLI, and MCP server for the Podfetcher transcript API
Downloads
94
Maintainers
Readme
podfetcher-tools
SDK + CLI + MCP server for the Podfetcher backend data-plane API.
Features
- Shared SDK for API auth, requests, and error handling
- CLI for show search, episode lookup, and transcript fetch
- MCP server exposing the same operations as tools
Requirements
- Node.js 20+
- A valid Podfetcher API key (
X-API-Key)
Install / Run
From repo root:
cd clients/podfetcher-tools
chmod +x src/cli.js src/mcp.jsYou can run scripts directly:
node src/cli.js --help
node src/mcp.js --helpOr via npm bin links (if installed globally/in a workspace setup):
podfetcherpodfetcher-mcp
Configuration
Environment variables:
PODFETCHER_BASE_URL(defaulthttp://localhost:8080)PODFETCHER_API_KEY(required)PODFETCHER_API_KEY_HEADER(defaultX-API-Key)
CLI flags can override env values:
--base-url--api-key--api-key-header--timeout-ms
CLI Usage
Search shows
node src/cli.js shows search --q "ai" --limit 5List episodes for a show
node src/cli.js shows episodes --show-id pi_1001 --order-by publishedAt --order desc --limit 10Fetch transcript for an episode
node src/cli.js transcripts fetch --episode-id ep_pi_1001_004Fetch transcript and wait until READY
node src/cli.js transcripts fetch \
--episode-id ep_pi_1001_002 \
--wait \
--poll-interval-ms 1000 \
--wait-timeout-ms 60000Machine-readable JSON output
node src/cli.js shows search --q "ai" --jsonMCP Usage
Run the MCP server over stdio:
node src/mcp.jsAvailable tools:
search_showslist_episodesfetch_transcript
Example MCP server config snippet:
{
"mcpServers": {
"podfetcher": {
"command": "node",
"args": ["/absolute/path/to/clients/podfetcher-tools/src/mcp.js"],
"env": {
"PODFETCHER_BASE_URL": "http://localhost:8080",
"PODFETCHER_API_KEY": "pfk_..."
}
}
}
}