MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / verify

Method verify

plugin/bundles/exchangerate_api/bundle.py:7–19  ·  view source on GitHub ↗
(self, credentials: BundleCredentials)

Source from the content-addressed store, hash-verified

5
6class ExchangerateApi(BundleHandler):
7 async def verify(self, credentials: BundleCredentials):
8 from_currency: str = "USD"
9 to_currency: str = "EUR"
10 exchangerate_api_key: str = credentials.credentials.get("EXCHANGERATE_API_API_KEY")
11
12 base_url = f"https://v6.exchangerate-api.com/v6/{exchangerate_api_key}/pair/{from_currency}/{to_currency}"
13
14 async with ClientSession() as session:
15 async with session.get(base_url) as response:
16 if response.status == 200:
17 pass
18 else:
19 raise_credentials_validation_error()
20

Callers

nothing calls this directly

Calls 2

getMethod · 0.45

Tested by

no test coverage detected