create-settld-paid-tool
v0.1.5
Published
Scaffold a paid HTTP/MCP-compatible tool server powered by `@settld/provider-kit`.
Readme
create-settld-paid-tool
Scaffold a paid HTTP/MCP-compatible tool server powered by @settld/provider-kit.
Usage
npx create-settld-paid-tool my-paid-toolOr with explicit provider id:
npx create-settld-paid-tool my-paid-tool --provider-id prov_example_1Bridge scaffold for an existing upstream API:
npx create-settld-paid-tool my-paid-tool --from-http https://api.example.comBridge scaffold from a local OpenAPI JSON spec:
npx create-settld-paid-tool my-paid-tool --from-openapi ./openapi.jsonWhat it creates
server.mjspaid tool server (402challenge + offline SettldPay verify + provider signatures).env.exampleruntime config templatepackage.jsonstarter withnpm startREADME.mdusage notes- When using bridge modes (
--from-http/--from-openapi):paid-tool-manifest.jsondeclarative tool/pricing configmcp-bridge.mjsMCP stdio bridge that calls paid endpoints with autopay
Local (repo) usage
node scripts/scaffold/create-settld-paid-tool.mjs my-paid-tool