Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/host_secrets/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ class Service(NamedTuple):


CATALOG: dict[str, Service] = {
"anthropic": Service("ANTHROPIC_AUTH_TOKEN", (Upstream("api.anthropic.com"),)),
# Claude Code calls claude.ai connectors at mcp-proxy with the same bearer.
"anthropic": Service(
"ANTHROPIC_AUTH_TOKEN",
(Upstream("api.anthropic.com"), Upstream("mcp-proxy.anthropic.com")),
),
# git's smart HTTP refuses a bearer. It takes Basic with x-access-token as the user.
"github": Service(
"GH_TOKEN",
Expand Down
4 changes: 2 additions & 2 deletions src/providers/docker_sbx/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ async def fake_exec(*args, **kwargs):

CUSTOM SECRETS
SCOPE TARGETS ENV PLACEHOLDER SECRET
sb-test api.anthropic.com ANTHROPIC_AUTH_TOKEN drk.0123.anthropic.abc cmd (on-demand)
sb-test api.anthropic.com, mcp-proxy.anthropic.com ANTHROPIC_AUTH_TOKEN drk.0123.anthropic.abc cmd (on-demand)
sb-test api.acme.test, acme.example ACME_TOKEN drk.0123.acme.def cmd (on-demand)
"""
""" # noqa: E501


@pytest.mark.asyncio
Expand Down
2 changes: 1 addition & 1 deletion src/providers/docker_sbx/tests/test_secrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async def test_any_other_secret_is_a_custom_secret_on_its_host_from_a_file(tmp_p
assert stat.S_IMODE(path.parent.stat().st_mode) == 0o700
api.set_custom_secret.assert_awaited_once_with(
sandbox="sb-one",
hosts=["api.anthropic.com"],
hosts=["api.anthropic.com", "mcp-proxy.anthropic.com"],
env="ANTHROPIC_AUTH_TOKEN",
placeholder=str(placeholder),
command=f"cat {path}",
Expand Down
1 change: 1 addition & 0 deletions src/secrets_exchange/tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ async def test_the_upstreams_are_the_hosts_with_a_registered_secret(edge) -> Non
"api.anthropic.com",
"api.github.com",
"github.com",
"mcp-proxy.anthropic.com",
"uploads.github.com",
]

Expand Down
Loading