web-cortex-framework 2.1.0__tar.gz → 2.1.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.
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/Cargo.lock +2 -2
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/Cargo.toml +1 -1
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/PKG-INFO +2 -2
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/README.md +1 -1
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/mcp.rs +7 -1
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/pyproject.toml +1 -1
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/python/webcortex/__init__.py +1 -1
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/LICENSE +0 -0
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/Cargo.toml +0 -0
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/agent/provider.rs +0 -0
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/agent/registry.rs +0 -0
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/agent/session.rs +0 -0
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/agent.rs +0 -0
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/app.rs +0 -0
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/audit.rs +0 -0
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/auth.rs +0 -0
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/bridge.rs +0 -0
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/context.rs +0 -0
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/db.rs +0 -0
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/files.rs +0 -0
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/flow.rs +0 -0
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/http.rs +0 -0
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/ledger.rs +0 -0
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/lib.rs +0 -0
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/manifest.rs +0 -0
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/middleware.rs +0 -0
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/openapi.rs +0 -0
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/router.rs +0 -0
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/server.rs +0 -0
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/templates.rs +0 -0
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/typegen.rs +0 -0
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-py/Cargo.toml +0 -0
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-py/src/behaviour.rs +0 -0
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-py/src/lib.rs +0 -0
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/python/webcortex/_bridge.py +0 -0
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/python/webcortex/app.py +0 -0
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/python/webcortex/cli.py +0 -0
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/python/webcortex/contextpack.py +0 -0
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/python/webcortex/schema.py +0 -0
- {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/python/webcortex/starters.py +0 -0
|
@@ -2616,7 +2616,7 @@ dependencies = [
|
|
|
2616
2616
|
|
|
2617
2617
|
[[package]]
|
|
2618
2618
|
name = "webcortex-core"
|
|
2619
|
-
version = "2.1.
|
|
2619
|
+
version = "2.1.1"
|
|
2620
2620
|
dependencies = [
|
|
2621
2621
|
"base64 0.23.1",
|
|
2622
2622
|
"bytes",
|
|
@@ -2643,7 +2643,7 @@ dependencies = [
|
|
|
2643
2643
|
|
|
2644
2644
|
[[package]]
|
|
2645
2645
|
name = "webcortex-py"
|
|
2646
|
-
version = "2.1.
|
|
2646
|
+
version = "2.1.1"
|
|
2647
2647
|
dependencies = [
|
|
2648
2648
|
"bytes",
|
|
2649
2649
|
"futures",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: web-cortex-framework
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.1
|
|
4
4
|
Classifier: Development Status :: 3 - Alpha
|
|
5
5
|
Classifier: Intended Audience :: Developers
|
|
6
6
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
@@ -432,7 +432,7 @@ tested, the known limits, and what v2 added to the surface.
|
|
|
432
432
|
|
|
433
433
|
## Status
|
|
434
434
|
|
|
435
|
-
v2.1.
|
|
435
|
+
v2.1.1. Working and tested: the manifest IR, router, native ops (static /
|
|
436
436
|
query / proxy / page / files / flow), the free-threaded Python bridge,
|
|
437
437
|
authentication and scopes, rate limiting, CORS, security headers, graceful
|
|
438
438
|
shutdown, Behaviours with concurrent leaves, the agent runtime with handoffs,
|
|
@@ -404,7 +404,7 @@ tested, the known limits, and what v2 added to the surface.
|
|
|
404
404
|
|
|
405
405
|
## Status
|
|
406
406
|
|
|
407
|
-
v2.1.
|
|
407
|
+
v2.1.1. Working and tested: the manifest IR, router, native ops (static /
|
|
408
408
|
query / proxy / page / files / flow), the free-threaded Python bridge,
|
|
409
409
|
authentication and scopes, rate limiting, CORS, security headers, graceful
|
|
410
410
|
shutdown, Behaviours with concurrent leaves, the agent runtime with handoffs,
|
|
@@ -152,9 +152,15 @@ async fn call_tool(app: &App, params: &Value, caller: &Principal) -> Result<Valu
|
|
|
152
152
|
match app.call_tool_as(name, &args, caller).await {
|
|
153
153
|
Ok(value) => {
|
|
154
154
|
let text = serde_json::to_string_pretty(&value).unwrap_or_else(|_| value.to_string());
|
|
155
|
+
// MCP requires `structuredContent` to be a JSON object. A tool whose result is a
|
|
156
|
+
// list or a scalar — every `list_*` resource route, for one — is wrapped as
|
|
157
|
+
// `{"result": …}`; an object passes through unchanged. Strict clients (Claude
|
|
158
|
+
// Code among them) reject the bare value as malformed, which turned a working
|
|
159
|
+
// list route into a tool the model could not use.
|
|
160
|
+
let structured = if value.is_object() { value.clone() } else { json!({"result": value}) };
|
|
155
161
|
Ok(json!({
|
|
156
162
|
"content": [{"type": "text", "text": text}],
|
|
157
|
-
"structuredContent":
|
|
163
|
+
"structuredContent": structured,
|
|
158
164
|
"isError": false,
|
|
159
165
|
}))
|
|
160
166
|
}
|
|
@@ -7,7 +7,7 @@ build-backend = "maturin"
|
|
|
7
7
|
# The split is for ergonomics, the same way djangorestframework imports as
|
|
8
8
|
# `rest_framework`.
|
|
9
9
|
name = "web-cortex-framework"
|
|
10
|
-
version = "2.1.
|
|
10
|
+
version = "2.1.1"
|
|
11
11
|
description = "A Rust-cored Python web framework where every route is also an agent tool."
|
|
12
12
|
readme = "README.md"
|
|
13
13
|
requires-python = ">=3.12"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/agent/session.rs
RENAMED
|
File without changes
|
{web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/agent.rs
RENAMED
|
File without changes
|
|
File without changes
|
{web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/audit.rs
RENAMED
|
File without changes
|
|
File without changes
|
{web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/bridge.rs
RENAMED
|
File without changes
|
{web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/context.rs
RENAMED
|
File without changes
|
|
File without changes
|
{web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/files.rs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/ledger.rs
RENAMED
|
File without changes
|
|
File without changes
|
{web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/manifest.rs
RENAMED
|
File without changes
|
{web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/middleware.rs
RENAMED
|
File without changes
|
{web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/openapi.rs
RENAMED
|
File without changes
|
{web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/router.rs
RENAMED
|
File without changes
|
{web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/server.rs
RENAMED
|
File without changes
|
{web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/templates.rs
RENAMED
|
File without changes
|
{web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/typegen.rs
RENAMED
|
File without changes
|
|
File without changes
|
{web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-py/src/behaviour.rs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|