nlalpha-capability 0.3.0__tar.gz → 0.3.1__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.
- {nlalpha_capability-0.3.0 → nlalpha_capability-0.3.1}/PKG-INFO +2 -2
- {nlalpha_capability-0.3.0 → nlalpha_capability-0.3.1}/pyproject.toml +2 -2
- {nlalpha_capability-0.3.0 → nlalpha_capability-0.3.1}/src/nlalpha_capability/server.py +13 -5
- {nlalpha_capability-0.3.0 → nlalpha_capability-0.3.1}/.gitignore +0 -0
- {nlalpha_capability-0.3.0 → nlalpha_capability-0.3.1}/Dockerfile +0 -0
- {nlalpha_capability-0.3.0 → nlalpha_capability-0.3.1}/LICENSE +0 -0
- {nlalpha_capability-0.3.0 → nlalpha_capability-0.3.1}/README.md +0 -0
- {nlalpha_capability-0.3.0 → nlalpha_capability-0.3.1}/README.zh.md +0 -0
- {nlalpha_capability-0.3.0 → nlalpha_capability-0.3.1}/src/nlalpha_capability/__init__.py +0 -0
- {nlalpha_capability-0.3.0 → nlalpha_capability-0.3.1}/tests/test_family_helper_discovery.py +0 -0
- {nlalpha_capability-0.3.0 → nlalpha_capability-0.3.1}/tests/test_provider_discovery.py +0 -0
- {nlalpha_capability-0.3.0 → nlalpha_capability-0.3.1}/tests/test_self_description.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: nlalpha-capability
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.1
|
|
4
4
|
Summary: NLAlpha capability discovery MCP server.
|
|
5
5
|
Project-URL: Homepage, https://github.com/ruimarj/nlalpha-capability
|
|
6
6
|
Project-URL: Repository, https://github.com/ruimarj/nlalpha-capability
|
|
@@ -9,7 +9,7 @@ License-Expression: AGPL-3.0-or-later
|
|
|
9
9
|
License-File: LICENSE
|
|
10
10
|
Requires-Python: <3.13,>=3.12
|
|
11
11
|
Requires-Dist: mcp<2.0,>=1.6.0
|
|
12
|
-
Requires-Dist: nlalpha-core[json-log,telemetry]>=0.7.
|
|
12
|
+
Requires-Dist: nlalpha-core[json-log,telemetry]>=0.7.1
|
|
13
13
|
Requires-Dist: starlette>=0.37
|
|
14
14
|
Requires-Dist: uvicorn>=0.30
|
|
15
15
|
Description-Content-Type: text/markdown
|
|
@@ -4,14 +4,14 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "nlalpha-capability"
|
|
7
|
-
version = "0.3.
|
|
7
|
+
version = "0.3.1"
|
|
8
8
|
description = "NLAlpha capability discovery MCP server."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "AGPL-3.0-or-later"
|
|
11
11
|
license-files = ["LICENSE"]
|
|
12
12
|
requires-python = ">=3.12,<3.13"
|
|
13
13
|
dependencies = [
|
|
14
|
-
"nlalpha-core[telemetry,json-log]>=0.7.
|
|
14
|
+
"nlalpha-core[telemetry,json-log]>=0.7.1",
|
|
15
15
|
"mcp>=1.6.0,<2.0",
|
|
16
16
|
"uvicorn>=0.30",
|
|
17
17
|
"starlette>=0.37",
|
|
@@ -55,18 +55,18 @@ _helpers_histogram = _meter.create_histogram("nlalpha.capability.helpers.count")
|
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
def about(sections: list[str] | None = None) -> dict[str, Any]:
|
|
58
|
-
"""
|
|
58
|
+
"""Start here: describe installed providers, helper domains, families, and diagnostics; task workflows use the strategy service's list_skills and load_skill."""
|
|
59
59
|
with start_span("mcp.about"):
|
|
60
60
|
try:
|
|
61
61
|
return describe_document("service", "nlalpha-capability", "nlalpha-capability", version("nlalpha-capability"), {
|
|
62
62
|
"principles": common_description(),
|
|
63
63
|
"navigation": {
|
|
64
|
-
"about": "
|
|
64
|
+
"about": "Start here: read shared principles, installed capability providers, and helper domains.",
|
|
65
65
|
"list_capability_providers": "Discover selectable capability providers and their installed identities.",
|
|
66
66
|
"list_capability_domains": "Discover domains from actual available helper declarations.",
|
|
67
67
|
"list_capabilities_by_domain": "Read available helpers in a selected helper domain.",
|
|
68
68
|
"list_family_helpers": "Read helpers from the same cached family contract used by strategy validation.",
|
|
69
|
-
"confess": "Read a provider's manifest, methods, helpers, and
|
|
69
|
+
"confess": "Read a provider's manifest, methods, helpers, and guidance before using its capabilities.",
|
|
70
70
|
"diagnose_providers": "Inspect installed providers or families that failed discovery or are unavailable.",
|
|
71
71
|
},
|
|
72
72
|
"providers": CapabilityPluginRegistry.list_provider_records(),
|
|
@@ -79,7 +79,7 @@ def about(sections: list[str] | None = None) -> dict[str, Any]:
|
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
def confess(provider_id: str, sections: list[str] | None = None) -> dict[str, Any]:
|
|
82
|
-
"""
|
|
82
|
+
"""Read a cached provider's manifest, helpers, and guidance before using its capabilities."""
|
|
83
83
|
with start_span("mcp.confess", attributes={"provider_id": provider_id}):
|
|
84
84
|
try:
|
|
85
85
|
record = CapabilityPluginRegistry.get_record(provider_id)
|
|
@@ -205,7 +205,15 @@ async def _health(request):
|
|
|
205
205
|
def create_app(*, allowed_hosts: list[str] | tuple[str, ...] | None = None,
|
|
206
206
|
on_shutdown: Callable[[], None] | None = None) -> Starlette:
|
|
207
207
|
"""Create an independent MCP transport with an explicit host allowlist."""
|
|
208
|
-
mcp = FastMCP(
|
|
208
|
+
mcp = FastMCP(
|
|
209
|
+
"nlalpha-capability",
|
|
210
|
+
instructions=(
|
|
211
|
+
"NLAlpha capability MCP service. Start with `about` for navigation and `confess(provider_id)` "
|
|
212
|
+
"for provider semantics before using helpers. Task workflows are packaged as NLAlpha skills "
|
|
213
|
+
"in the strategy service: call `list_skills` then `load_skill` there when a workflow is "
|
|
214
|
+
"needed, one language per call."
|
|
215
|
+
),
|
|
216
|
+
)
|
|
209
217
|
mcp.settings.transport_security = TransportSecuritySettings(
|
|
210
218
|
enable_dns_rebinding_protection=True, allowed_hosts=resolve_allowed_hosts(allowed_hosts),
|
|
211
219
|
)
|
|
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
|