feat: scripted MCP client (auth_headers + connect/list/call); offline tests pass

This commit is contained in:
2026-06-18 10:14:21 -04:00
parent dfc7f6a589
commit 30d19d42eb
4 changed files with 53 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
from lib.mcp_client import auth_headers
def test_auth_headers_sets_key_and_user():
h = auth_headers("k_test", "user-a@servicetitan.com")
assert h["Authorization"] == "Bearer k_test"
assert h["Arcade-User-ID"] == "user-a@servicetitan.com"
def test_auth_headers_distinct_users():
a = auth_headers("k", "alice")
b = auth_headers("k", "bob")
assert a["Arcade-User-ID"] != b["Arcade-User-ID"]