Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/core-candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ jobs:
assert core_path == installed.locate_file("apcore/__init__.py").resolve()
assert toolkit_path == toolkit_expected.resolve()
if os.environ["CORE_MODE"] == "candidate":
assert installed.version == "1.0.0a3"
assert installed.version == "1.0.0a4"
origin = json.loads(installed.read_text("direct_url.json") or "{}")
assert origin.get("url") == Path(os.environ["CORE_INSTALL"]).resolve().as_uri()
assert callable(getattr(Executor, "stream_with_completion", None))
Expand Down Expand Up @@ -340,7 +340,7 @@ jobs:
assert.ok(coreEntry.startsWith(core + sep));
assert.equal(toolkitEntry, realpathSync(resolve(process.env.TOOLKIT_ROOT, 'dist/index.js')));
if (process.env.CORE_MODE === 'candidate') {
assert.equal(coreVersion, '1.0.0-alpha.3');
assert.equal(coreVersion, '1.0.0-alpha.4');
assert.equal(typeof Executor.prototype.streamWithCompletion, 'function');
assert.equal(typeof APCore.prototype.streamWithCompletion, 'function');
} else {
Expand Down Expand Up @@ -406,7 +406,7 @@ jobs:
crate="${crates[0]}"
version="${crate##*/apcore-}"
version="${version%.crate}"
if [[ "$version" != 1.0.0-alpha.3 ]]; then
if [[ "$version" != 1.0.0-alpha.4 ]]; then
echo "Expected the alpha.3 Core crate." >&2
exit 1
fi
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ permissions:
contents: read

env:
CORE_REF: 9ba719587d9a288c22b8b5ff2a10a187a9a21cee
CORE_REF: 625aa3ecbd1d0343fe62ab18c0a9943c17495199

jobs:
test:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ permissions:
env:
# The released lockfiles already reference these prereleases. Bootstrap CI
# from the reviewed Core commit while those versions are unpublished.
CORE_REF: 9ba719587d9a288c22b8b5ff2a10a187a9a21cee
CORE_CRATE_VERSION: 1.0.0-alpha.3
CORE_CRATE_SHA256: 2813101192ceac629d58114dfafd4f6b519eb7dea2313cb253e1410a2ac52f65
CORE_REF: 625aa3ecbd1d0343fe62ab18c0a9943c17495199
CORE_CRATE_VERSION: 1.0.0-alpha.4
CORE_CRATE_SHA256: 7d5e08c5bbc5cddf5c72b121cbec90c1c551993dbee7c7cc88e30950941b63ad

jobs:
source:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/typescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ permissions:
contents: read

env:
CORE_REF: 9ba719587d9a288c22b8b5ff2a10a187a9a21cee
CORE_REF: 625aa3ecbd1d0343fe62ab18c0a9943c17495199

jobs:
test:
Expand Down
2 changes: 1 addition & 1 deletion a2a/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ classifiers = [
"Framework :: AsyncIO",
]
dependencies = [
"apcore[config,discovery]==1.0.0a3",
"apcore[config,discovery]==1.0.0a4",
"apcore-toolkit==0.15.1a2",
"a2a-sdk[http-server]>=1.1.2",
"starlette>=0.40.0",
Expand Down
4 changes: 2 additions & 2 deletions a2a/rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion a2a/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ default = []
openapi = ["apcore-toolkit/http-proxy"]

[dependencies]
apcore = { version = "=1.0.0-alpha.3", default-features = false, features = ["discovery", "sys-modules"] }
apcore = { version = "=1.0.0-alpha.4", default-features = false, features = ["discovery", "sys-modules"] }
# `default-features = false` so `http-proxy` — a *default* feature of the
# toolkit — is reached through this crate's `openapi` feature instead of being
# enabled unconditionally. The unconditional import (`deep_resolve_refs`) is
Expand Down
2 changes: 1 addition & 1 deletion a2a/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"dependencies": {
"@a2a-js/sdk": ">=1.0.1",
"apcore-js": "1.0.0-alpha.3",
"apcore-js": "1.0.0-alpha.4",
"apcore-toolkit": "0.15.1-alpha.2",
"express": "^5.1.0",
"jsonwebtoken": "^9.0.3",
Expand Down
12 changes: 6 additions & 6 deletions a2a/typescript/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cli/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ classifiers = [
"Environment :: Console",
]
dependencies = [
"apcore[config,discovery]==1.0.0a3",
"apcore[config,discovery]==1.0.0a4",
"apcore-toolkit[http-proxy]==0.15.1a2",
"click>=8.1",
"jsonschema>=4.20",
Expand Down
4 changes: 2 additions & 2 deletions cli/rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cli/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ name = "apcore_cli"
path = "src/lib.rs"

[dependencies]
apcore = { version = "=1.0.0-alpha.3", default-features = false, features = ["config"] }
apcore = { version = "=1.0.0-alpha.4", default-features = false, features = ["config"] }
async-trait = "0.1"
clap = { version = "4", features = ["derive", "env", "string"] }
serde = { version = "1", features = ["derive"] }
Expand Down
4 changes: 2 additions & 2 deletions cli/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"node": ">=20.0.0"
},
"peerDependencies": {
"apcore-js": "1.0.0-alpha.3",
"apcore-js": "1.0.0-alpha.4",
"apcore-toolkit": "0.15.1-alpha.2"
},
"dependencies": {
Expand All @@ -47,7 +47,7 @@
"@typescript-eslint/eslint-plugin": "^8.59.0",
"@typescript-eslint/parser": "^8.59.0",
"@vitest/coverage-v8": "^5.1.0",
"apcore-js": "1.0.0-alpha.3",
"apcore-js": "1.0.0-alpha.4",
"apcore-toolkit": "0.15.1-alpha.2",
"apdev-js": "^0.2.4",
"eslint": "^10.2.1",
Expand Down
12 changes: 6 additions & 6 deletions cli/typescript/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions mcp/conformance/fixtures/system_surface.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"description": "The nine canonical system.* modules -> exact MCP primitive, name/URI. Pins aiperceivable/apcore-mcp#15's classification table (system.health.*/system.usage.*/system.manifest.* are resources or resource templates; system.control.* stays a tool) and operationalizes the issue's 'byte-identical tools/list, resources/list, resources/templates/list across TypeScript, Python and Rust' acceptance criterion: given a registry produced by the SAME real registerSysModules()/register_sys_modules() call (sys_modules.enabled=true, sys_modules.events.enabled=true), each adapter's own tool/resource projection MUST produce exactly the entries below -- not merely an equivalent shape. A single-language fix (e.g. only one adapter emitting the RFC 6570 '{?period}' query-expansion on a template) is exactly the drift this fixture exists to catch.",
"description": "The ten canonical system.* modules -> exact MCP primitive, name/URI. Pins aiperceivable/apcore-mcp#15's classification table (administrative system.health, system.usage, and system.manifest reads are resources; control modules and system.manifest.search are tools) and operationalizes the issue's 'byte-identical tools/list, resources/list, resources/templates/list across TypeScript, Python and Rust' acceptance criterion: given a registry produced by the SAME real registerSysModules()/register_sys_modules() call (sys_modules.enabled=true, sys_modules.events.enabled=true), each adapter's own tool/resource projection MUST produce exactly the entries below -- not merely an equivalent shape. A single-language fix (e.g. only one adapter emitting the RFC 6570 '{?period}' query-expansion on a template) is exactly the drift this fixture exists to catch.",
"spec": "PROTOCOL_SPEC.md#6.6.2 (classification by module_id prefix only), aiperceivable/apcore-mcp#15 (URI convention table), aiperceivable/apcore-mcp#16 Phase A (surfaces grouping)",
"setup": {
"description": "Build the registry that produces all nine module ids: sys_modules.enabled=true AND sys_modules.events.enabled=true. Without the events flag only the six read-only modules register and 'system.control.*' matches nothing -- see aiperceivable/apcore-mcp#15's registration-ladder table (0 / 6 / 9 modules).",
"description": "Build the registry that produces all ten module ids: sys_modules.enabled=true AND sys_modules.events.enabled=true. Without the events flag only the seven read-only modules register and 'system.control.*' matches nothing -- see aiperceivable/apcore-mcp#15's registration-ladder table (0 / 7 / 10 modules).",
"config": {
"sys_modules": {
"enabled": true,
Expand All @@ -13,7 +13,8 @@
"tools": [
{ "module_id": "system.control.update_config", "name": "system.control.update_config" },
{ "module_id": "system.control.reload_module", "name": "system.control.reload_module" },
{ "module_id": "system.control.toggle_feature", "name": "system.control.toggle_feature" }
{ "module_id": "system.control.toggle_feature", "name": "system.control.toggle_feature" },
{ "module_id": "system.manifest.search", "name": "system.manifest.search" }
],
"not_tools": [
"system.health.summary",
Expand All @@ -33,7 +34,7 @@
{
"module_id": "system.usage.module",
"uri_template": "apcore://system.usage.module/{module_id}{?period}",
"note": "The only one of the nine modules whose declared template carries the RFC 6570 form-style query expansion '{?period}' -- system.usage.summary's optional ?period= is accepted at read time but is NOT part of its (non-template) resource's declared uri, since a concrete Resource.uri cannot carry template syntax."
"note": "The only one module whose declared template carries the RFC 6570 form-style query expansion '{?period}' -- system.usage.summary's optional ?period= is accepted at read time but is NOT part of its (non-template) resource's declared uri, since a concrete Resource.uri cannot carry template syntax."
},
{ "module_id": "system.manifest.module", "uri_template": "apcore://system.manifest.module/{module_id}" }
],
Expand Down
1 change: 1 addition & 0 deletions mcp/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ If you have already built modules using the `apcore` framework (which focuses on
- **Three transports** — stdio (default, for desktop clients), Streamable HTTP, and SSE.
- **Annotation mapping** — apcore annotations (readonly, destructive, idempotent) map to MCP ToolHints.
- **Schema conversion** — JSON Schema `$ref`/`$defs` inlining, strict mode for OpenAI Structured Outputs.
- **Caller-aware discovery** — Core-backed servers filter the standard tool list and module documentation resources using the current caller's ACL visibility. The tool list retains complete input schemas. When enabled, `system.manifest.search` provides lightweight, paginated summaries under its own ACL.
- **Tool Explorer** — Built-in browser UI for exploring and testing MCP tools (like Swagger UI for MCP).
- **JWT Authentication** — Optional Bearer token auth for HTTP-based transports.
- **Approval Mechanism** — Bridges MCP elicitation to apcore's runtime approval system.
Expand Down
2 changes: 1 addition & 1 deletion mcp/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ classifiers = [
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"apcore[config,discovery]==1.0.0a3",
"apcore[config,discovery]==1.0.0a4",
"mcp>=1.26,<2.0",
"jsonschema>=4.20,<5",
"referencing>=0.30,<1",
Expand Down
6 changes: 5 additions & 1 deletion mcp/python/src/apcore_mcp/apcore_mcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,10 @@ def _build_server_components(self) -> tuple[Any, Any, list, Any, str]:

factory = MCPServerFactory()
server = factory.create_server(name=self._name, version=version)
tools = factory.build_tools(self._registry, tags=self._tags, prefix=self._prefix)
discovery_sources: dict[int, str] = {}
tools = factory.build_tools(
self._registry, tags=self._tags, prefix=self._prefix, discovery_sources=discovery_sources,
)

router = ExecutionRouter(
self._executor,
Expand Down Expand Up @@ -757,6 +760,7 @@ def _build_server_components(self) -> tuple[Any, Any, list, Any, str]:
async_bridge=async_bridge,
approval_bridge=approval_bridge,
descriptor_lookup=descriptor_lookup,
discovery_sources=discovery_sources,
)
factory.register_resource_handlers(server, self._registry, router)

Expand Down
Loading
Loading