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.
Files changed (40) hide show
  1. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/Cargo.lock +2 -2
  2. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/Cargo.toml +1 -1
  3. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/PKG-INFO +2 -2
  4. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/README.md +1 -1
  5. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/mcp.rs +7 -1
  6. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/pyproject.toml +1 -1
  7. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/python/webcortex/__init__.py +1 -1
  8. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/LICENSE +0 -0
  9. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/Cargo.toml +0 -0
  10. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/agent/provider.rs +0 -0
  11. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/agent/registry.rs +0 -0
  12. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/agent/session.rs +0 -0
  13. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/agent.rs +0 -0
  14. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/app.rs +0 -0
  15. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/audit.rs +0 -0
  16. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/auth.rs +0 -0
  17. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/bridge.rs +0 -0
  18. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/context.rs +0 -0
  19. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/db.rs +0 -0
  20. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/files.rs +0 -0
  21. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/flow.rs +0 -0
  22. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/http.rs +0 -0
  23. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/ledger.rs +0 -0
  24. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/lib.rs +0 -0
  25. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/manifest.rs +0 -0
  26. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/middleware.rs +0 -0
  27. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/openapi.rs +0 -0
  28. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/router.rs +0 -0
  29. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/server.rs +0 -0
  30. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/templates.rs +0 -0
  31. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-core/src/typegen.rs +0 -0
  32. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-py/Cargo.toml +0 -0
  33. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-py/src/behaviour.rs +0 -0
  34. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/crates/webcortex-py/src/lib.rs +0 -0
  35. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/python/webcortex/_bridge.py +0 -0
  36. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/python/webcortex/app.py +0 -0
  37. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/python/webcortex/cli.py +0 -0
  38. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/python/webcortex/contextpack.py +0 -0
  39. {web_cortex_framework-2.1.0 → web_cortex_framework-2.1.1}/python/webcortex/schema.py +0 -0
  40. {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.0"
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.0"
2646
+ version = "2.1.1"
2647
2647
  dependencies = [
2648
2648
  "bytes",
2649
2649
  "futures",
@@ -3,7 +3,7 @@ members = ["crates/webcortex-core", "crates/webcortex-py"]
3
3
  resolver = "3"
4
4
 
5
5
  [workspace.package]
6
- version = "2.1.0"
6
+ version = "2.1.1"
7
7
  edition = "2024"
8
8
  license = "Apache-2.0"
9
9
  rust-version = "1.85"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: web-cortex-framework
3
- Version: 2.1.0
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.0. Working and tested: the manifest IR, router, native ops (static /
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.0. Working and tested: the manifest IR, router, native ops (static /
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": value,
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.0"
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"
@@ -17,7 +17,7 @@ server exposing six tools — from nine lines.
17
17
  from ._bridge import HTTPError, Request, Response, free_threaded
18
18
  from .app import WebCortex, Resource
19
19
 
20
- __version__ = "2.1.0"
20
+ __version__ = "2.1.1"
21
21
 
22
22
  __all__ = [
23
23
  "WebCortex",