veris-ai 1.4.0__py3-none-any.whl → 1.5.0__py3-none-any.whl

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.

Potentially problematic release.


This version of veris-ai might be problematic. Click here for more details.

veris_ai/tool_mock.py CHANGED
@@ -60,7 +60,7 @@ class VerisSDK:
60
60
  return self._mcp
61
61
 
62
62
  def set_fastapi_mcp(self, **params_dict: Any) -> None: # noqa: ANN401
63
- """Set the FastAPI MCP server."""
63
+ """Set the FastAPI MCP server with HTTP transport."""
64
64
  from fastapi import Depends, Request # noqa: PLC0415
65
65
  from fastapi.security import OAuth2PasswordBearer # noqa: PLC0415
66
66
  from fastapi_mcp import ( # type: ignore[import-untyped] # noqa: PLC0415
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: veris-ai
3
- Version: 1.4.0
3
+ Version: 1.5.0
4
4
  Summary: A Python package for Veris AI tools
5
5
  Project-URL: Homepage, https://github.com/veris-ai/veris-python-sdk
6
6
  Project-URL: Bug Tracker, https://github.com/veris-ai/veris-python-sdk/issues
@@ -22,7 +22,7 @@ Requires-Dist: pytest>=7.4.0; extra == 'dev'
22
22
  Requires-Dist: ruff>=0.11.4; extra == 'dev'
23
23
  Provides-Extra: fastapi
24
24
  Requires-Dist: fastapi; extra == 'fastapi'
25
- Requires-Dist: fastapi-mcp; extra == 'fastapi'
25
+ Requires-Dist: fastapi-mcp>=0.4.0; extra == 'fastapi'
26
26
  Provides-Extra: instrument
27
27
  Requires-Dist: braintrust; extra == 'instrument'
28
28
  Requires-Dist: opentelemetry-api; extra == 'instrument'
@@ -139,7 +139,7 @@ async def get_data() -> dict:
139
139
 
140
140
  **Semantic Tag**: `fastapi-mcp`
141
141
 
142
- Expose FastAPI endpoints as MCP tools for AI agent consumption.
142
+ Expose FastAPI endpoints as MCP tools for AI agent consumption using HTTP transport.
143
143
 
144
144
  ```python
145
145
  from fastapi import FastAPI
@@ -147,21 +147,27 @@ from veris_ai import veris
147
147
 
148
148
  app = FastAPI()
149
149
 
150
- # Enable MCP integration
150
+ # Enable MCP integration with HTTP transport
151
151
  veris.set_fastapi_mcp(
152
152
  fastapi=app,
153
153
  name="My API Server",
154
154
  include_operations=["get_users", "create_user"],
155
155
  exclude_tags=["internal"]
156
156
  )
157
+
158
+ # Mount the MCP server with HTTP transport (recommended)
159
+ veris.fastapi_mcp.mount_http()
157
160
  ```
158
161
 
159
162
  **Key Features**:
163
+ - **HTTP Transport**: Uses Streamable HTTP protocol for better session management
160
164
  - **Automatic schema conversion**: FastAPI OpenAPI → MCP tool definitions
161
165
  - **Session management**: Bearer token → session ID mapping
162
166
  - **Filtering**: Include/exclude operations and tags
163
167
  - **Authentication**: OAuth2 integration
164
168
 
169
+ **Transport Protocol**: The SDK uses HTTP transport (via `mount_http()`) which implements the MCP Streamable HTTP specification, providing robust connection handling and fixing session routing issues with concurrent connections.
170
+
165
171
  **Configuration Reference**: See function signature in [`src/veris_ai/tool_mock.py`](src/veris_ai/tool_mock.py) for all `set_fastapi_mcp()` parameters.
166
172
 
167
173
  ## Utility Functions
@@ -3,13 +3,13 @@ veris_ai/__init__.py,sha256=Vp5yf9ZRchw0mmPwrRuNebI5cb2NGwpJGfr41l86q1U,1177
3
3
  veris_ai/braintrust_tracing.py,sha256=0i-HR6IuK3-Q5ujMjT1FojxESRZLgqEvJ44bfJfDHaw,11938
4
4
  veris_ai/logging.py,sha256=2855E8s_k6yTnzFK10EQR4WQngQk3VuWFPJW-MYiw3k,3837
5
5
  veris_ai/models.py,sha256=6HINPxNFCakCVPcyEbUswWkXwb2K4lF0A8g8EvTMal4,213
6
- veris_ai/tool_mock.py,sha256=9rb4c8OZEg6hGmyJlmgFSmbBDa7L6_XzadvtVrGy9xs,13198
6
+ veris_ai/tool_mock.py,sha256=p10k6dCZAIqG8YoefR3QyvtkInnWNPMRO_07LI5Wks0,13218
7
7
  veris_ai/utils.py,sha256=aqFFNuNiBehil6874nOHtU7G_bWHbFpVuubcz2AIx6I,9267
8
8
  veris_ai/jaeger_interface/README.md,sha256=kd9rKcE5xf3EyNaiHu0tjn-0oES9sfaK6Ih-OhhTyCM,2821
9
9
  veris_ai/jaeger_interface/__init__.py,sha256=d873a0zq3eUYU2Y77MtdjCwIARjAsAP7WDqGXDMWpYs,1158
10
10
  veris_ai/jaeger_interface/client.py,sha256=yJrh86wRR0Dk3Gq12DId99WogcMIVbL0QQFqVSevvlE,8772
11
11
  veris_ai/jaeger_interface/models.py,sha256=e64VV6IvOEFuzRUgvDAMQFyOZMRb56I-PUPZLBZ3rX0,1864
12
- veris_ai-1.4.0.dist-info/METADATA,sha256=yq1IbvlQ7qME6BdFz3tQ9-b0x9Oblcu2OJNUGS3iNVE,7702
13
- veris_ai-1.4.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
14
- veris_ai-1.4.0.dist-info/licenses/LICENSE,sha256=2g4i20atAgtD5einaKzhQrIB-JrPhyQgD3bC0wkHcCI,1065
15
- veris_ai-1.4.0.dist-info/RECORD,,
12
+ veris_ai-1.5.0.dist-info/METADATA,sha256=l-x_bBgu3DWDVgG4IFeek26y1U1ANP6F4Cz-yrm9beQ,8151
13
+ veris_ai-1.5.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
14
+ veris_ai-1.5.0.dist-info/licenses/LICENSE,sha256=2g4i20atAgtD5einaKzhQrIB-JrPhyQgD3bC0wkHcCI,1065
15
+ veris_ai-1.5.0.dist-info/RECORD,,