• Stefy Lanza (nextime / spora )'s avatar
    Make the CLI wait for the MCP tool shim; bump to 0.99.87 · da972924
    Stefy Lanza (nextime / spora ) authored
    A claude_think request with tools registered none: the CLI reported tools:[] at
    init with the shim still "pending", so the model had nothing to call and instead
    described the calls in prose ("[Tool: list_dir]") with stop_reason=end_turn. The
    turn looked successful, so this surfaced as a wrong answer rather than an error.
    
    The CLI connects --mcp-config servers "fully async (nonblocking)" and starts the
    turn without waiting, so whether any tools exist is a race between the shim's
    handshake and the first API request. Marking the server alwaysLoad puts it on
    the CLI's blocking path instead (its own two code paths: alwaysLoad servers are
    awaited, the rest are fire-and-forget).
    
    The race is host-dependent, which is why local testing never caught it — my box
    won it every time and registered the tools. Confirmed on the box that loses it,
    with identical CLI versions:
    
      without alwaysLoad -> tools=[],                        mcp=pending
      with    alwaysLoad -> tools=['mcp__aisbf__get_weather'], mcp=connected
    
    Ruled out first: the shim is deployed there, both interpreters run it in ~20ms,
    and it answers initialize/tools-list correctly under production's python.
    Co-Authored-By: 's avatarClaude Opus 4.8 (1M context) <noreply@anthropic.com>
    da972924
Name
Last commit
Last update
aisbf Loading commit data...
config Loading commit data...
docs Loading commit data...
static Loading commit data...
templates Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
AI.PROMPT Loading commit data...
API_EXAMPLES.md Loading commit data...
BUILD_DEPLOY.md Loading commit data...
CHANGELOG.md Loading commit data...
DEBUG_GUIDE.md Loading commit data...
DOCUMENTATION.md Loading commit data...
ENDPOINTS.md Loading commit data...
KILO_OAUTH2.md Loading commit data...
LICENSE.txt Loading commit data...
MANIFEST.in Loading commit data...
MISSING_ENDPOINTS.md Loading commit data...
PYPI.md Loading commit data...
QUICK_START_PAYMENT.md Loading commit data...
README.md Loading commit data...
RUNPOD_IMPLEMENTATION_PLAN.md Loading commit data...
SUBSCRIPTION_PRICING_FEATURE.md Loading commit data...
TODO.md Loading commit data...
TORRC_SETUP.md Loading commit data...
aisbf.sh Loading commit data...
build.sh Loading commit data...
chatgpt-api-implementation-guide.md Loading commit data...
clean.sh Loading commit data...
cli.py Loading commit data...
codex-oauth-implementation-guide.md Loading commit data...
main.py Loading commit data...
main.py.bak Loading commit data...
minio-archive-plan.md Loading commit data...
pyproject.toml Loading commit data...
requirements.txt Loading commit data...
screenshot.png Loading commit data...
setup.py Loading commit data...
start_proxy.sh Loading commit data...
verify_release.sh Loading commit data...