Add token passthrough feature#12
Open
bettercallsaulj wants to merge 7 commits into
Open
Conversation
added 7 commits
June 30, 2026 21:05
Summary:\n- Move third_party/gopher-orch from 05667fdf to c78ca8cc on br_release.\n- Pull in the nested gopher-mcp update at 21167aa0 and dynamic MCP header support.
Add ctypes bindings for gopher_orch_agent_options_t and optional *_with_options agent creation symbols. Route non-empty runtime options through the new native symbols and fail clearly when the loaded native library is too old. Cover options struct conversion, fallback behavior without runtime options, and missing-symbol errors with focused tests.
Forward configured runtime options into API-key and JSON native agent creation. Add runtime_options parameters to the direct server, gateway, and URL factory helpers. Cover public passthrough and old-native-library errors with fake-library tests.
Add a Python header example showing create_with_url with runtime access_token and headers options. Default the MCP URL to the local gateway address used by the token-flow examples and keep examples/api unchanged.
Add create_by_url_run.sh for the Python header example using the copied local gateway and MCP server helpers. The runner releases ports 5000/5001, starts the helpers with GOPHER_SDK_TEST token-flow logging, runs deterministic MCP curl calls, and optionally runs the Python SDK client when ANTHROPIC_API_KEY is available. Copy create_by_url_gateway and create_by_url_server helper executables from the gopher-mcp-js header example.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.