lola-mcp-server 0.2.1__py3-none-any.whl → 0.2.2__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.
- {lola_mcp_server-0.2.1.dist-info → lola_mcp_server-0.2.2.dist-info}/METADATA +2 -2
- lola_mcp_server-0.2.2.dist-info/RECORD +6 -0
- public_mcp_server.py +5 -11
- lola_mcp_server-0.2.1.dist-info/RECORD +0 -6
- {lola_mcp_server-0.2.1.dist-info → lola_mcp_server-0.2.2.dist-info}/WHEEL +0 -0
- {lola_mcp_server-0.2.1.dist-info → lola_mcp_server-0.2.2.dist-info}/entry_points.txt +0 -0
- {lola_mcp_server-0.2.1.dist-info → lola_mcp_server-0.2.2.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
public_mcp_server.py,sha256=rbgiVeBk0Yyzv7B0m6Su9ctKbfU56dxxPGcX8F1XtPI,2145
|
|
2
|
+
lola_mcp_server-0.2.2.dist-info/METADATA,sha256=gi7xBfF5Ok4xiMmKXn7sSrTCGgP1rrXtxo-kNQOa98k,135
|
|
3
|
+
lola_mcp_server-0.2.2.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
4
|
+
lola_mcp_server-0.2.2.dist-info/entry_points.txt,sha256=7ohrLpfi22BMGEDWSgn0tQLet94CcyP5AX1Tk5DbalI,59
|
|
5
|
+
lola_mcp_server-0.2.2.dist-info/top_level.txt,sha256=mEMxVolBhbIAki_wnZGkv3e8U-6xFTL2TvC-iP2_MxU,18
|
|
6
|
+
lola_mcp_server-0.2.2.dist-info/RECORD,,
|
public_mcp_server.py
CHANGED
|
@@ -44,9 +44,6 @@ def allowed_tools():
|
|
|
44
44
|
async def register_tools():
|
|
45
45
|
allowed = allowed_tools()
|
|
46
46
|
|
|
47
|
-
# Normalize allowed tool names from token
|
|
48
|
-
allowed_normalized = {t.lower().strip() for t in allowed}
|
|
49
|
-
|
|
50
47
|
async with httpx.AsyncClient() as client:
|
|
51
48
|
res = await client.get(f"{BASE_URL}/tools_lola", headers=headers())
|
|
52
49
|
res.raise_for_status()
|
|
@@ -54,21 +51,19 @@ async def register_tools():
|
|
|
54
51
|
|
|
55
52
|
for tool in tools:
|
|
56
53
|
name = tool["name"]
|
|
57
|
-
normalized_name = name.lower().strip()
|
|
58
54
|
|
|
59
|
-
#
|
|
60
|
-
if
|
|
55
|
+
# Only expose tools allowed by token
|
|
56
|
+
if name not in allowed:
|
|
61
57
|
continue
|
|
62
58
|
|
|
63
|
-
schema = tool["input_schema"]
|
|
64
59
|
desc = tool.get("description", "")
|
|
65
60
|
|
|
66
|
-
#
|
|
67
|
-
async def dynamic_tool(name=name
|
|
61
|
+
# FastMCP derives schema from function signature
|
|
62
|
+
async def dynamic_tool(arguments: dict, name=name):
|
|
68
63
|
async with httpx.AsyncClient() as client:
|
|
69
64
|
r = await client.post(
|
|
70
65
|
f"{BASE_URL}/call_lola",
|
|
71
|
-
json={"name": name, "arguments":
|
|
66
|
+
json={"name": name, "arguments": arguments},
|
|
72
67
|
headers=headers(),
|
|
73
68
|
)
|
|
74
69
|
r.raise_for_status()
|
|
@@ -77,7 +72,6 @@ async def register_tools():
|
|
|
77
72
|
mcp.tool(
|
|
78
73
|
name=name,
|
|
79
74
|
description=desc,
|
|
80
|
-
input_schema=schema
|
|
81
75
|
)(dynamic_tool)
|
|
82
76
|
|
|
83
77
|
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
public_mcp_server.py,sha256=RcB7GkIRPFN0DWFeX93_Ntch3Nny5Wyzz1pJQWz-Iig,2371
|
|
2
|
-
lola_mcp_server-0.2.1.dist-info/METADATA,sha256=stzIOuIYDt2FtHasFRChULjDnc9DrRoIMzbbIZHSXl4,145
|
|
3
|
-
lola_mcp_server-0.2.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
4
|
-
lola_mcp_server-0.2.1.dist-info/entry_points.txt,sha256=7ohrLpfi22BMGEDWSgn0tQLet94CcyP5AX1Tk5DbalI,59
|
|
5
|
-
lola_mcp_server-0.2.1.dist-info/top_level.txt,sha256=mEMxVolBhbIAki_wnZGkv3e8U-6xFTL2TvC-iP2_MxU,18
|
|
6
|
-
lola_mcp_server-0.2.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|