
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
The main Python client for Metorial - The open source integration platform for agentic AI. This is the primary package that provides the core client and session management functionality.
pip install metorial
# or
uv add metorial
# or
poetry add metorial
import asyncio
from metorial import Metorial
async def main():
# Initialize Metorial client
metorial = Metorial(api_key="your-metorial-api-key")
# Create session with your server deployments
async with metorial.session(["your-server-deployment-id"]) as session:
# Access tool manager
tool_manager = session.tool_manager
# Use with provider-specific packages
# See provider packages for specific integrations
asyncio.run(main())
Use metorial with provider-specific packages:
import asyncio
from metorial import Metorial
from metorial_openai import MetorialOpenAISession
from openai import OpenAI
async def main():
# Initialize clients
metorial = Metorial(api_key="your-metorial-api-key")
openai_client = OpenAI(api_key="your-openai-api-key")
# Create session
async with metorial.session(["deployment-id"]) as session:
# Use with OpenAI
openai_session = MetorialOpenAISession(session.tool_manager)
response = openai_client.chat.completions.create(
model="gpt-4",
messages=[{"role": "user", "content": "Help me"}],
tools=openai_session.tools
)
# Handle tool calls
if response.choices[0].message.tool_calls:
tool_responses = await openai_session.call_tools(
response.choices[0].message.tool_calls
)
asyncio.run(main())
Metorial
Main client class for Metorial.
client = Metorial(api_key="your-api-key")
Parameters:
api_key
: Your Metorial API keyMethods:
async session(deployment_ids)
: Create a session with specified deploymentsasync with metorial.session(["deployment-id"]) as session:
# session.tool_manager provides access to tools
Properties:
tool_manager
: Manager for executing toolsThis package works with provider-specific packages:
metorial-openai
: OpenAI integrationmetorial-anthropic
: Anthropic (Claude) integrationmetorial-google
: Google (Gemini) integrationmetorial-mistral
: Mistral AI integrationmetorial-xai
: XAI (Grok) integrationmetorial-deepseek
: DeepSeek integrationmetorial-togetherai
: Together AI integrationfrom metorial import MetorialAPIError
try:
async with metorial.session(["deployment-id"]) as session:
# Your code here
pass
except MetorialAPIError as e:
print(f"API Error: {e.message} (Status: {e.status})")
except Exception as e:
print(f"Unexpected error: {e}")
You can also configure the client using environment variables:
export METORIAL_API_KEY="your-api-key"
# Will use METORIAL_API_KEY if no api_key provided
metorial = Metorial()
metorial-core>=1.0.0
metorial-mcp-session>=1.0.0
typing-extensions>=4.0.0
MIT License - see LICENSE file for details.
FAQs
Python SDK for Metorial - AI-powered tool calling and session management
We found that metorial demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.