Repository navigation
Conversation
Register the pi-claude-code native provider so bots can use Claude models through the owner's claude CLI login. Cap MCP tool name prefixes at 25 characters so the names fit Claude Code's tool name limit, and let the packages that import its TypeScript sources type-check them.
Proxy credentials in HTTP(S)_PROXY broke clients that drop or mishandle proxy auth, such as the claude CLI. The per-run token now signs each placeholder as an HMAC tag, so only placeholders from this daemon run are swapped; the proxy still accepts loopback connections only.
|
Hey Vasco, pushed a small fix on top: Claude Code now shows up in Providers as "sign in from a terminal" with One thing I'd like your call on, the MCP tool name prefix going from 35 to 25 in
Are you OK keeping 25 and accepting that one-off, or would you rather push for the mapping upstream? Feel free to correct me if I'm missing something on the Claude Code side. |
|
Thanks for the Providers fix, that's better than a button that always fails. Let's keep 25. The 50-character limit comes from pi-claude-code itself ( |
Summary
Lets bots run on Claude models through the owner's Claude Pro/Max subscription, using the pi-claude-code provider, which drives the
claude -pCLI.makeProviderServiceregisterscreateClaudeCodeProvider()as a native provider. Its models show up in provider settings next to the others.@earendil-works/pi-claude-code, pinned to commitd5b5e04from GitHub (it is not on npm). It ships TypeScript sources, so the runtime, server and daemon tsconfigs gainallowImportingTsExtensionsand the DOM libs needed to type-check them.mcp_<server>_<tool>_<hash>fits Claude Code's tool name limit.HTTP(S)_PROXY, and clients that drop proxy auth (theclaudeCLI among them) got a 403. The token now signs each placeholder as an HMAC tag (bots-secret-<NAME>-<tag>-placeholder), and the proxy URL carries no credentials. Only placeholders from the current daemon run are swapped, and the proxy still accepts loopback connections only.Validation
bun run checkandbun run lintpass.bun install --frozen-lockfilepasses. The lockfile diff contains only the pi-claude-code lines.pnpm viewwork, andclaudereaches Anthropic.