MCPcopy
hub / github.com/TaskingAI/TaskingAI / load_default

Method load_default

plugin/app/models/credentials.py:54–63  ·  view source on GitHub ↗
(self, bundle_id)

Source from the content-addressed store, hash-verified

52 raise ValueError(f"error loading credentials from input: {e}")
53
54 def load_default(self, bundle_id):
55 try:
56 from app.cache import get_bundle
57
58 default_credentials = get_bundle(bundle_id).allowed_credential_names()
59 for name in default_credentials:
60 self.credentials[name] = load_str_env(name, required=True)
61 return self
62 except Exception as e:
63 raise ValueError(f"error loading credentials from env: {e}")
64
65 def to_dict(self, bundle_id):
66 from app.cache import get_bundle

Callers 1

Calls 3

get_bundleFunction · 0.90
load_str_envFunction · 0.90

Tested by

no test coverage detected