nocfo-cli 1.4.1__tar.gz → 1.4.2__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.4.1 → nocfo_cli-1.4.2}/PKG-INFO +1 -1
- {nocfo_cli-1.4.1 → nocfo_cli-1.4.2}/pyproject.toml +1 -1
- {nocfo_cli-1.4.1 → nocfo_cli-1.4.2}/src/nocfo_toolkit/mcp/server.py +6 -16
- {nocfo_cli-1.4.1 → nocfo_cli-1.4.2}/LICENSE +0 -0
- {nocfo_cli-1.4.1 → nocfo_cli-1.4.2}/README.md +0 -0
- {nocfo_cli-1.4.1 → nocfo_cli-1.4.2}/src/nocfo_toolkit/__init__.py +0 -0
- {nocfo_cli-1.4.1 → nocfo_cli-1.4.2}/src/nocfo_toolkit/api_client.py +0 -0
- {nocfo_cli-1.4.1 → nocfo_cli-1.4.2}/src/nocfo_toolkit/cli/__init__.py +0 -0
- {nocfo_cli-1.4.1 → nocfo_cli-1.4.2}/src/nocfo_toolkit/cli/app.py +0 -0
- {nocfo_cli-1.4.1 → nocfo_cli-1.4.2}/src/nocfo_toolkit/cli/commands/__init__.py +0 -0
- {nocfo_cli-1.4.1 → nocfo_cli-1.4.2}/src/nocfo_toolkit/cli/commands/_helpers.py +0 -0
- {nocfo_cli-1.4.1 → nocfo_cli-1.4.2}/src/nocfo_toolkit/cli/commands/accounts.py +0 -0
- {nocfo_cli-1.4.1 → nocfo_cli-1.4.2}/src/nocfo_toolkit/cli/commands/auth.py +0 -0
- {nocfo_cli-1.4.1 → nocfo_cli-1.4.2}/src/nocfo_toolkit/cli/commands/businesses.py +0 -0
- {nocfo_cli-1.4.1 → nocfo_cli-1.4.2}/src/nocfo_toolkit/cli/commands/contacts.py +0 -0
- {nocfo_cli-1.4.1 → nocfo_cli-1.4.2}/src/nocfo_toolkit/cli/commands/documents.py +0 -0
- {nocfo_cli-1.4.1 → nocfo_cli-1.4.2}/src/nocfo_toolkit/cli/commands/files.py +0 -0
- {nocfo_cli-1.4.1 → nocfo_cli-1.4.2}/src/nocfo_toolkit/cli/commands/invoices.py +0 -0
- {nocfo_cli-1.4.1 → nocfo_cli-1.4.2}/src/nocfo_toolkit/cli/commands/products.py +0 -0
- {nocfo_cli-1.4.1 → nocfo_cli-1.4.2}/src/nocfo_toolkit/cli/commands/purchase_invoices.py +0 -0
- {nocfo_cli-1.4.1 → nocfo_cli-1.4.2}/src/nocfo_toolkit/cli/commands/reports.py +0 -0
- {nocfo_cli-1.4.1 → nocfo_cli-1.4.2}/src/nocfo_toolkit/cli/commands/schema.py +0 -0
- {nocfo_cli-1.4.1 → nocfo_cli-1.4.2}/src/nocfo_toolkit/cli/commands/tags.py +0 -0
- {nocfo_cli-1.4.1 → nocfo_cli-1.4.2}/src/nocfo_toolkit/cli/commands/user.py +0 -0
- {nocfo_cli-1.4.1 → nocfo_cli-1.4.2}/src/nocfo_toolkit/cli/context.py +0 -0
- {nocfo_cli-1.4.1 → nocfo_cli-1.4.2}/src/nocfo_toolkit/cli/output.py +0 -0
- {nocfo_cli-1.4.1 → nocfo_cli-1.4.2}/src/nocfo_toolkit/config.py +0 -0
- {nocfo_cli-1.4.1 → nocfo_cli-1.4.2}/src/nocfo_toolkit/mcp/__init__.py +0 -0
- {nocfo_cli-1.4.1 → nocfo_cli-1.4.2}/src/nocfo_toolkit/mcp/auth.py +0 -0
- {nocfo_cli-1.4.1 → nocfo_cli-1.4.2}/src/nocfo_toolkit/mcp/contract_validation.py +0 -0
- {nocfo_cli-1.4.1 → nocfo_cli-1.4.2}/src/nocfo_toolkit/mcp/error_handling.py +0 -0
- {nocfo_cli-1.4.1 → nocfo_cli-1.4.2}/src/nocfo_toolkit/mcp/http_error_capture.py +0 -0
- {nocfo_cli-1.4.1 → nocfo_cli-1.4.2}/src/nocfo_toolkit/mcp/middleware.py +0 -0
- {nocfo_cli-1.4.1 → nocfo_cli-1.4.2}/src/nocfo_toolkit/openapi.py +0 -0
|
@@ -66,26 +66,16 @@ def _normalize_mcp_namespace_token(value: str) -> str:
|
|
|
66
66
|
def build_mcp_component_name(
|
|
67
67
|
operation_id: str, extensions: dict[str, Any] | None
|
|
68
68
|
) -> str:
|
|
69
|
-
"""Build MCP name
|
|
69
|
+
"""Build MCP component name from ``operation_id``.
|
|
70
70
|
|
|
71
|
-
Namespace
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
Namespace extension values are preserved in metadata but are not used for
|
|
72
|
+
display-name generation to keep backend ``operationId`` as the single source
|
|
73
|
+
of truth.
|
|
74
74
|
"""
|
|
75
|
+
del extensions
|
|
75
76
|
if not operation_id or not str(operation_id).strip():
|
|
76
77
|
return operation_id
|
|
77
|
-
|
|
78
|
-
if not isinstance(raw, str) or not raw.strip():
|
|
79
|
-
return operation_id
|
|
80
|
-
ns = _normalize_mcp_namespace_token(raw)
|
|
81
|
-
if not ns:
|
|
82
|
-
return operation_id
|
|
83
|
-
# Avoid duplicating the namespace if operation_id already starts with it.
|
|
84
|
-
# Example: operation_id "invoicing.contact.create" with ns "invoicing"
|
|
85
|
-
# should become "invoicing_contact_create", not "invoicing_invoicing_contact_create".
|
|
86
|
-
if operation_id.startswith(f"{ns}."):
|
|
87
|
-
operation_id = operation_id[len(ns) + 1 :]
|
|
88
|
-
return f"{ns}_{operation_id.replace('.', '_')}"
|
|
78
|
+
return operation_id.replace(".", "_")
|
|
89
79
|
|
|
90
80
|
|
|
91
81
|
def _resource_uri_with_name(uri: str | AnyUrl, display_name: str) -> AnyUrl:
|
|
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
|
|
File without changes
|