@sudobility/raidr_lib
v0.1.19
Published
Business logic for raidr apps: catalog hooks, MCP connection docs, skill install helpers
Readme
raidr_lib
Business logic for raidr front ends: catalog hooks with session-persistent
search and paging, MCP/skill/site detail hooks, connection snippets for MCP
clients, skill install instructions, and the API playground: a domain
browser, an API inspector with an endpoint flow map, and an endpoint
playground with typed parameter validation and per-host credentials kept in
the browser. When the raidr browser extension is installed, the playground's
sign-in goes through it (createExtensionBridge) and the site token is filled
in automatically; otherwise it opens the site's sign-in page in a popup for the
user to copy the token by hand. No UI.
bun add @sudobility/raidr_libconst { items, search, setSearch, page, setPage } = useMcpCatalog({ networkClient, baseUrl });
const { manifest, tools, connect } = useMcp({ networkClient, baseUrl, apiHost, isAuthenticated, apiKey, siteToken });
connect.claudeCode.cli; // claude mcp add --transport http … --header "X-Raidr-Token: …"
const play = useEndpointPlayground({ networkClient, baseUrl, endpointRef, isAuthenticated });
play.setValue('clip_id', '…'); play.execute(); // play.result: status, headers, body
play.openLogin(); // play.extension, play.loginWindow ('open' → 'captured' | 'closed'), play.tokenVerifiedLayer: raidr_types → raidr_client → raidr_lib → raidr_app.
