nocfo-cli 1.2.3__tar.gz → 1.2.4__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.
- {nocfo_cli-1.2.3 → nocfo_cli-1.2.4}/PKG-INFO +1 -1
- {nocfo_cli-1.2.3 → nocfo_cli-1.2.4}/pyproject.toml +1 -1
- {nocfo_cli-1.2.3 → nocfo_cli-1.2.4}/src/nocfo_toolkit/openapi.py +7 -3
- {nocfo_cli-1.2.3 → nocfo_cli-1.2.4}/LICENSE +0 -0
- {nocfo_cli-1.2.3 → nocfo_cli-1.2.4}/README.md +0 -0
- {nocfo_cli-1.2.3 → nocfo_cli-1.2.4}/src/nocfo_toolkit/__init__.py +0 -0
- {nocfo_cli-1.2.3 → nocfo_cli-1.2.4}/src/nocfo_toolkit/api_client.py +0 -0
- {nocfo_cli-1.2.3 → nocfo_cli-1.2.4}/src/nocfo_toolkit/cli/__init__.py +0 -0
- {nocfo_cli-1.2.3 → nocfo_cli-1.2.4}/src/nocfo_toolkit/cli/app.py +0 -0
- {nocfo_cli-1.2.3 → nocfo_cli-1.2.4}/src/nocfo_toolkit/cli/commands/__init__.py +0 -0
- {nocfo_cli-1.2.3 → nocfo_cli-1.2.4}/src/nocfo_toolkit/cli/commands/_helpers.py +0 -0
- {nocfo_cli-1.2.3 → nocfo_cli-1.2.4}/src/nocfo_toolkit/cli/commands/accounts.py +0 -0
- {nocfo_cli-1.2.3 → nocfo_cli-1.2.4}/src/nocfo_toolkit/cli/commands/auth.py +0 -0
- {nocfo_cli-1.2.3 → nocfo_cli-1.2.4}/src/nocfo_toolkit/cli/commands/businesses.py +0 -0
- {nocfo_cli-1.2.3 → nocfo_cli-1.2.4}/src/nocfo_toolkit/cli/commands/contacts.py +0 -0
- {nocfo_cli-1.2.3 → nocfo_cli-1.2.4}/src/nocfo_toolkit/cli/commands/documents.py +0 -0
- {nocfo_cli-1.2.3 → nocfo_cli-1.2.4}/src/nocfo_toolkit/cli/commands/files.py +0 -0
- {nocfo_cli-1.2.3 → nocfo_cli-1.2.4}/src/nocfo_toolkit/cli/commands/invoices.py +0 -0
- {nocfo_cli-1.2.3 → nocfo_cli-1.2.4}/src/nocfo_toolkit/cli/commands/products.py +0 -0
- {nocfo_cli-1.2.3 → nocfo_cli-1.2.4}/src/nocfo_toolkit/cli/commands/purchase_invoices.py +0 -0
- {nocfo_cli-1.2.3 → nocfo_cli-1.2.4}/src/nocfo_toolkit/cli/commands/reports.py +0 -0
- {nocfo_cli-1.2.3 → nocfo_cli-1.2.4}/src/nocfo_toolkit/cli/commands/schema.py +0 -0
- {nocfo_cli-1.2.3 → nocfo_cli-1.2.4}/src/nocfo_toolkit/cli/commands/tags.py +0 -0
- {nocfo_cli-1.2.3 → nocfo_cli-1.2.4}/src/nocfo_toolkit/cli/commands/user.py +0 -0
- {nocfo_cli-1.2.3 → nocfo_cli-1.2.4}/src/nocfo_toolkit/cli/context.py +0 -0
- {nocfo_cli-1.2.3 → nocfo_cli-1.2.4}/src/nocfo_toolkit/cli/output.py +0 -0
- {nocfo_cli-1.2.3 → nocfo_cli-1.2.4}/src/nocfo_toolkit/config.py +0 -0
- {nocfo_cli-1.2.3 → nocfo_cli-1.2.4}/src/nocfo_toolkit/mcp/__init__.py +0 -0
- {nocfo_cli-1.2.3 → nocfo_cli-1.2.4}/src/nocfo_toolkit/mcp/auth.py +0 -0
- {nocfo_cli-1.2.3 → nocfo_cli-1.2.4}/src/nocfo_toolkit/mcp/error_handling.py +0 -0
- {nocfo_cli-1.2.3 → nocfo_cli-1.2.4}/src/nocfo_toolkit/mcp/http_error_capture.py +0 -0
- {nocfo_cli-1.2.3 → nocfo_cli-1.2.4}/src/nocfo_toolkit/mcp/middleware.py +0 -0
- {nocfo_cli-1.2.3 → nocfo_cli-1.2.4}/src/nocfo_toolkit/mcp/server.py +0 -0
|
@@ -49,7 +49,7 @@ def load_openapi_spec(
|
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
def filter_mcp_spec(spec: dict[str, Any], mcp_tag: str = "MCP") -> dict[str, Any]:
|
|
52
|
-
"""Return spec containing only operations
|
|
52
|
+
"""Return spec containing only MCP-visible operations."""
|
|
53
53
|
|
|
54
54
|
filtered_paths: dict[str, Any] = {}
|
|
55
55
|
for path, methods in spec.get("paths", {}).items():
|
|
@@ -59,9 +59,13 @@ def filter_mcp_spec(spec: dict[str, Any], mcp_tag: str = "MCP") -> dict[str, Any
|
|
|
59
59
|
for method, meta in methods.items():
|
|
60
60
|
if not isinstance(meta, dict):
|
|
61
61
|
continue
|
|
62
|
+
|
|
62
63
|
tags = meta.get("tags", [])
|
|
63
|
-
if mcp_tag in tags:
|
|
64
|
-
|
|
64
|
+
if mcp_tag not in tags:
|
|
65
|
+
continue
|
|
66
|
+
if meta.get("x-mcp-exclude") is True:
|
|
67
|
+
continue
|
|
68
|
+
kept_methods[method] = meta
|
|
65
69
|
if kept_methods:
|
|
66
70
|
filtered_paths[path] = kept_methods
|
|
67
71
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|