universal-mcp 0.1.18rc4__py3-none-any.whl → 0.1.19__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.
- universal_mcp/config.py +1 -1
- universal_mcp/servers/server.py +3 -2
- universal_mcp/utils/agentr.py +6 -3
- {universal_mcp-0.1.18rc4.dist-info → universal_mcp-0.1.19.dist-info}/METADATA +1 -1
- {universal_mcp-0.1.18rc4.dist-info → universal_mcp-0.1.19.dist-info}/RECORD +8 -8
- {universal_mcp-0.1.18rc4.dist-info → universal_mcp-0.1.19.dist-info}/WHEEL +0 -0
- {universal_mcp-0.1.18rc4.dist-info → universal_mcp-0.1.19.dist-info}/entry_points.txt +0 -0
- {universal_mcp-0.1.18rc4.dist-info → universal_mcp-0.1.19.dist-info}/licenses/LICENSE +0 -0
universal_mcp/config.py
CHANGED
@@ -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"
|
universal_mcp/servers/server.py
CHANGED
@@ -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,
|
221
|
-
self.api_key = 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)
|
universal_mcp/utils/agentr.py
CHANGED
@@ -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
|
-
|
23
|
-
|
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
|
)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: universal-mcp
|
3
|
-
Version: 0.1.
|
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
|
@@ -1,7 +1,7 @@
|
|
1
1
|
universal_mcp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
2
|
universal_mcp/analytics.py,sha256=Dkv8mkc_2T2t5NxLSZzcr3BlmOispj1RKtbB86V1i4M,2306
|
3
3
|
universal_mcp/cli.py,sha256=Xcdm4UMIlwxK6f0FHvmu5b6lZ8q14S3vZexRM32zAK4,10298
|
4
|
-
universal_mcp/config.py,sha256=
|
4
|
+
universal_mcp/config.py,sha256=HaAZvf-XzQZpqGGWUuT5zojWloO8GL5Acfa5_0sDs_Q,3321
|
5
5
|
universal_mcp/exceptions.py,sha256=-pbeZhpNieJfnSd2-WM80pU8W8mK8VHXcSjky0BHwdk,665
|
6
6
|
universal_mcp/logger.py,sha256=VmH_83efpErLEDTJqz55Dp0dioTXfGvMBLZUx5smOLc,2116
|
7
7
|
universal_mcp/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -13,7 +13,7 @@ universal_mcp/integrations/__init__.py,sha256=X8iEzs02IlXfeafp6GMm-cOkg70QdjnlTR
|
|
13
13
|
universal_mcp/integrations/integration.py,sha256=QvZlq3G5OU4tHPv9uq9Nv5NFe30NdUsJU-Av474n0_o,13154
|
14
14
|
universal_mcp/servers/README.md,sha256=ytFlgp8-LO0oogMrHkMOp8SvFTwgsKgv7XhBVZGNTbM,2284
|
15
15
|
universal_mcp/servers/__init__.py,sha256=eBZCsaZjiEv6ZlRRslPKgurQxmpHLQyiXv2fTBygHnM,532
|
16
|
-
universal_mcp/servers/server.py,sha256=
|
16
|
+
universal_mcp/servers/server.py,sha256=X-CM5bCbMUVm7NkAT5RNeiyc38MbiFrwlZE3dbX10SM,12810
|
17
17
|
universal_mcp/stores/README.md,sha256=jrPh_ow4ESH4BDGaSafilhOVaN8oQ9IFlFW-j5Z5hLA,2465
|
18
18
|
universal_mcp/stores/__init__.py,sha256=quvuwhZnpiSLuojf0NfmBx2xpaCulv3fbKtKaSCEmuM,603
|
19
19
|
universal_mcp/stores/store.py,sha256=mxnmOVlDNrr8OKhENWDtCIfK7YeCBQcGdS6I2ogRCsU,6756
|
@@ -24,7 +24,7 @@ universal_mcp/tools/func_metadata.py,sha256=zIDXgIBvu5Gh8aNlg-Q7cZZos9Iky75MS0Me
|
|
24
24
|
universal_mcp/tools/manager.py,sha256=eNYEGCeTvtSsyPkPWo4ciuJEqNw4ux-XCr0r5OyBejg,7981
|
25
25
|
universal_mcp/tools/tools.py,sha256=8YBTaJCM38Nhan9Al6Vlq4FtSULrKlxg1q_o8OL1_FM,3322
|
26
26
|
universal_mcp/utils/__init__.py,sha256=8wi4PGWu-SrFjNJ8U7fr2iFJ1ktqlDmSKj1xYd7KSDc,41
|
27
|
-
universal_mcp/utils/agentr.py,sha256=
|
27
|
+
universal_mcp/utils/agentr.py,sha256=YmX6hvFW84keJKTZqP3jPz4rP9DM5wHZ0vTMHfxO6AI,3360
|
28
28
|
universal_mcp/utils/common.py,sha256=HEZC2Mhilb8DrGXQG2tboAIw1r4veGilGWjfnPF1lyA,888
|
29
29
|
universal_mcp/utils/docstring_parser.py,sha256=6oIeCjOUirFdVpXdGZt5zDKje6jmCY42-GeYOc_7r2I,11317
|
30
30
|
universal_mcp/utils/installation.py,sha256=ItOfBFhKOh4DLz237jgAz_Fn0uOMdrKXw0n5BaUZZNs,7286
|
@@ -38,8 +38,8 @@ universal_mcp/utils/openapi/preprocessor.py,sha256=qLYv4ekors5B2OU_YUvXICYQ7XYhA
|
|
38
38
|
universal_mcp/utils/openapi/readme.py,sha256=R2Jp7DUXYNsXPDV6eFTkLiy7MXbSULUj1vHh4O_nB4c,2974
|
39
39
|
universal_mcp/utils/templates/README.md.j2,sha256=Mrm181YX-o_-WEfKs01Bi2RJy43rBiq2j6fTtbWgbTA,401
|
40
40
|
universal_mcp/utils/templates/api_client.py.j2,sha256=972Im7LNUAq3yZTfwDcgivnb-b8u6_JLKWXwoIwXXXQ,908
|
41
|
-
universal_mcp-0.1.
|
42
|
-
universal_mcp-0.1.
|
43
|
-
universal_mcp-0.1.
|
44
|
-
universal_mcp-0.1.
|
45
|
-
universal_mcp-0.1.
|
41
|
+
universal_mcp-0.1.19.dist-info/METADATA,sha256=wPKF-GWj2l1ZK430vl25Su_RCi56JiyzV4opj_Lp4Rs,12122
|
42
|
+
universal_mcp-0.1.19.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
43
|
+
universal_mcp-0.1.19.dist-info/entry_points.txt,sha256=QlBrVKmA2jIM0q-C-3TQMNJTTWOsOFQvgedBq2rZTS8,56
|
44
|
+
universal_mcp-0.1.19.dist-info/licenses/LICENSE,sha256=NweDZVPslBAZFzlgByF158b85GR0f5_tLQgq1NS48To,1063
|
45
|
+
universal_mcp-0.1.19.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|