universal-mcp 0.1.18rc4__tar.gz → 0.1.19__tar.gz

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.
Files changed (55) hide show
  1. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/PKG-INFO +1 -1
  2. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/pyproject.toml +1 -1
  3. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/config.py +1 -1
  4. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/servers/server.py +3 -2
  5. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/utils/agentr.py +6 -3
  6. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/.gitignore +0 -0
  7. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/LICENSE +0 -0
  8. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/README.md +0 -0
  9. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/tests/__init__.py +0 -0
  10. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/tests/conftest.py +0 -0
  11. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/tests/test_api_generator.py +0 -0
  12. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/tests/test_api_integration.py +0 -0
  13. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/tests/test_applications.py +0 -0
  14. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/tests/test_localserver.py +0 -0
  15. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/tests/test_stores.py +0 -0
  16. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/tests/test_tool.py +0 -0
  17. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/tests/test_tool_manager.py +0 -0
  18. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/tests/test_zenquotes.py +0 -0
  19. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/__init__.py +0 -0
  20. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/analytics.py +0 -0
  21. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/applications/README.md +0 -0
  22. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/applications/__init__.py +0 -0
  23. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/applications/application.py +0 -0
  24. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/cli.py +0 -0
  25. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/exceptions.py +0 -0
  26. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/integrations/README.md +0 -0
  27. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/integrations/__init__.py +0 -0
  28. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/integrations/integration.py +0 -0
  29. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/logger.py +0 -0
  30. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/py.typed +0 -0
  31. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/servers/README.md +0 -0
  32. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/servers/__init__.py +0 -0
  33. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/stores/README.md +0 -0
  34. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/stores/__init__.py +0 -0
  35. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/stores/store.py +0 -0
  36. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/tools/README.md +0 -0
  37. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/tools/__init__.py +0 -0
  38. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/tools/adapters.py +0 -0
  39. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/tools/func_metadata.py +0 -0
  40. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/tools/manager.py +0 -0
  41. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/tools/tools.py +0 -0
  42. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/utils/__init__.py +0 -0
  43. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/utils/common.py +0 -0
  44. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/utils/docstring_parser.py +0 -0
  45. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/utils/installation.py +0 -0
  46. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/utils/openapi/__inti__.py +0 -0
  47. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/utils/openapi/api_generator.py +0 -0
  48. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/utils/openapi/api_splitter.py +0 -0
  49. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/utils/openapi/docgen.py +0 -0
  50. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/utils/openapi/openapi.py +0 -0
  51. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/utils/openapi/preprocessor.py +0 -0
  52. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/utils/openapi/readme.py +0 -0
  53. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/utils/singleton.py +0 -0
  54. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/utils/templates/README.md.j2 +0 -0
  55. {universal_mcp-0.1.18rc4 → universal_mcp-0.1.19}/src/universal_mcp/utils/templates/api_client.py.j2 +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: universal-mcp
3
- Version: 0.1.18rc4
3
+ Version: 0.1.19
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
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "universal-mcp"
7
- version = "0.1.18-rc4"
7
+ version = "0.1.19"
8
8
  description = "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."
9
9
  readme = "README.md"
10
10
  authors = [
@@ -46,7 +46,7 @@ class ServerConfig(BaseSettings):
46
46
 
47
47
  name: str = Field(default="Universal MCP", description="Name of the MCP server")
48
48
  description: str = Field(default="Universal MCP", description="Description of the MCP server")
49
- api_key: SecretStr | None = Field(default=None, description="API key for authentication")
49
+ api_key: SecretStr | None = Field(default=None, description="API key for authentication", alias="AGENTR_API_KEY")
50
50
  type: Literal["local", "agentr"] = Field(default="agentr", description="Type of server deployment")
51
51
  transport: Literal["stdio", "sse", "streamable-http"] = Field(
52
52
  default="stdio", description="Transport protocol to use"
@@ -217,8 +217,9 @@ class AgentRServer(BaseServer):
217
217
  **kwargs: Additional keyword arguments passed to FastMCP
218
218
  """
219
219
 
220
- def __init__(self, config: ServerConfig, api_key: str | None = None, **kwargs):
221
- self.api_key = api_key or str(config.api_key)
220
+ def __init__(self, config: ServerConfig, **kwargs):
221
+ self.api_key = config.api_key.get_secret_value() if config.api_key else None
222
+ logger.info(f"Initializing AgentR server with API key: {self.api_key}")
222
223
  self.client = AgentrClient(api_key=self.api_key)
223
224
  super().__init__(config, **kwargs)
224
225
  self.integration = AgentRIntegration(name="agentr", api_key=self.client.api_key)
@@ -18,9 +18,12 @@ class AgentrClient:
18
18
  base_url (str, optional): Base URL for AgentR API. Defaults to https://api.agentr.dev
19
19
  """
20
20
 
21
- def __init__(self, api_key: str = None, base_url: str = None):
22
- self.api_key = api_key or os.getenv("AGENTR_API_KEY")
23
- if not self.api_key:
21
+ def __init__(self, api_key: str | None = None, base_url: str | None = None):
22
+ if api_key:
23
+ self.api_key = api_key
24
+ elif os.getenv("AGENTR_API_KEY"):
25
+ self.api_key = os.getenv("AGENTR_API_KEY")
26
+ else:
24
27
  logger.error(
25
28
  "API key for AgentR is missing. Please visit https://agentr.dev to create an API key, then set it as AGENTR_API_KEY environment variable."
26
29
  )