Skip to content

Commit 7a81ca0

Browse files
committed
Added dynamic tool store
1 parent a346ca1 commit 7a81ca0

File tree

2 files changed

+341
-204
lines changed

2 files changed

+341
-204
lines changed

src/oci-db-dynamic-mcp-server/oracle/oci_db_dynamic_mcp_server/dynamic_tools_loader.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -269,21 +269,17 @@ def build_registry(api_spec: Dict[str, Any]) -> Dict[str, OperationMeta]:
269269
return registry
270270

271271

272-
def build_tools_from_latest_spec(
273-
allowed_resources: List[str] = None,
274-
) -> List[Dict[str, Any]]:
272+
def build_tools_from_latest_spec() -> List[Dict[str, Any]]:
273+
"""
274+
Loads ALL available tools from the OCI spec.
275+
"""
275276
api_spec = load_yaml_from_public_docs()
276277
if not api_spec:
277278
return []
278279
registry = build_registry(api_spec)
279280
exposed_tools = []
280281

281-
allowed_set = {r.lower() for r in allowed_resources} if allowed_resources else None
282-
283282
for op_id, meta in registry.items():
284-
285-
if allowed_set and meta.relatedResource.lower() not in allowed_set:
286-
continue
287283
if meta.description.startswith("**Deprecated"):
288284
continue
289285

0 commit comments

Comments
 (0)