universal-mcp 0.1.11__py3-none-any.whl → 0.1.12__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30,20 +30,20 @@ class FalaiApp(APIApplication):
30
30
  def fal_client(self) -> AsyncClient:
31
31
  if self._fal_client is None:
32
32
  credentials = self.integration.get_credentials()
33
- if isinstance(credentials, dict) and "api_key" in credentials:
34
- fal_api_key = credentials["api_key"]
35
- else:
33
+ logger.info(f"Credentials: {credentials}")
34
+ api_key = (
35
+ credentials.get("api_key")
36
+ or credentials.get("API_KEY")
37
+ or credentials.get("apiKey")
38
+ )
39
+ if not api_key:
36
40
  logger.error(
37
41
  f"Integration {type(self.integration).__name__} returned credentials in unexpected format."
38
42
  )
39
- raise ValueError(
40
- "Integration did not provide credentials in the expected 'api_key' format."
41
- )
42
- if not fal_api_key:
43
43
  raise NotAuthorizedError(
44
44
  "Integration returned empty or invalid API key."
45
45
  )
46
- self._fal_client = AsyncClient(key=fal_api_key)
46
+ self._fal_client = AsyncClient(key=api_key)
47
47
  return self._fal_client
48
48
 
49
49
  async def run(
universal_mcp/cli.py CHANGED
@@ -168,6 +168,5 @@ def install(app_name: str = typer.Argument(..., help="Name of app to install")):
168
168
  raise typer.Exit(1) from e
169
169
 
170
170
 
171
-
172
171
  if __name__ == "__main__":
173
172
  app()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: universal-mcp
3
- Version: 0.1.11
3
+ Version: 0.1.12
4
4
  Summary: Universal MCP acts as a middle ware for your API applications. It can store your credentials, authorize, enable disable apps on the fly and much more.
5
5
  Author-email: Manoj Bajaj <manojbajaj95@gmail.com>
6
6
  Requires-Python: >=3.11
@@ -1,6 +1,6 @@
1
1
  universal_mcp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  universal_mcp/analytics.py,sha256=aGCg0Okpcy06W70qCA9I8_ySOiCgAtzJAIWAdhBsOeA,2212
3
- universal_mcp/cli.py,sha256=Sv-sgUWD7wVwNUaNUQu44K3vjkn_72tuKzrtkAvnQ2Q,5259
3
+ universal_mcp/cli.py,sha256=DG-Qxc5vQIdbhAIQuU7bKKJuRGzwyOigjfCKSWBRhBI,5258
4
4
  universal_mcp/config.py,sha256=sJaPI4q51CDPPG0z32rMJiE7a64eaa9nxbjJgYnaFA4,838
5
5
  universal_mcp/exceptions.py,sha256=WApedvzArNujD0gZfUofYBxjQo97ZDJLqDibtLWZoRk,373
6
6
  universal_mcp/logger.py,sha256=D947u1roUf6WqlcEsPpvmWDqGc8L41qF3MO1suK5O1Q,308
@@ -29,7 +29,7 @@ universal_mcp/applications/elevenlabs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCe
29
29
  universal_mcp/applications/elevenlabs/app.py,sha256=A43xAyQNIbdH8Y1MHw_fmnjmH9MR14TTzeFjg4h8Pek,66722
30
30
  universal_mcp/applications/falai/README.md,sha256=fc31zlKe09FsOw6W5KY7VipxvKhon4KQoWjTdoMlPfc,1449
31
31
  universal_mcp/applications/falai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
32
- universal_mcp/applications/falai/app.py,sha256=S6gaXLWBgTm_EBqH8aBUKih5iM2EL6gbRSAJ5Xmcfzg,12323
32
+ universal_mcp/applications/falai/app.py,sha256=XLHmuRkOCHhVsF3h0TKql4SmQ4h5LbkWKudcvs6Ydhc,12244
33
33
  universal_mcp/applications/figma/README.md,sha256=qA9UMf5PsPhfJrnteGVQOudhLuevwZ4-D_1xM6gAjgQ,4393
34
34
  universal_mcp/applications/figma/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
35
35
  universal_mcp/applications/figma/app.py,sha256=sr-ednZinHdIcXmDWuWAA_Ri21iBbAYPRZ0-uLeiEkM,50392
@@ -113,7 +113,7 @@ universal_mcp/utils/docstring_parser.py,sha256=j7aE-LLnBOPTJI0qXayf0NlYappzxICv5
113
113
  universal_mcp/utils/dump_app_tools.py,sha256=9bQePJ4ZKzGtcIYrBgLxbKDOZmL7ajIAHhXljT_AlyA,2041
114
114
  universal_mcp/utils/installation.py,sha256=KPBojDlt2YfFY2DfJ9pUr5evFJ9QQGp99KQUsRkz9GQ,10235
115
115
  universal_mcp/utils/openapi.py,sha256=AgmcyntPyovic2mRqr-a7P4kEc7hU-yk9gRVIsO4078,20673
116
- universal_mcp-0.1.11.dist-info/METADATA,sha256=ZLPfXsWhJ5s2bFX6CCAJQM6Tup_mVCK9lPBgBUBDVwE,12432
117
- universal_mcp-0.1.11.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
118
- universal_mcp-0.1.11.dist-info/entry_points.txt,sha256=QlBrVKmA2jIM0q-C-3TQMNJTTWOsOFQvgedBq2rZTS8,56
119
- universal_mcp-0.1.11.dist-info/RECORD,,
116
+ universal_mcp-0.1.12.dist-info/METADATA,sha256=W25m860U86z4x6Wux7UsD21xfL65bjHWThA8THw0b0k,12432
117
+ universal_mcp-0.1.12.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
118
+ universal_mcp-0.1.12.dist-info/entry_points.txt,sha256=QlBrVKmA2jIM0q-C-3TQMNJTTWOsOFQvgedBq2rZTS8,56
119
+ universal_mcp-0.1.12.dist-info/RECORD,,