@mastyf_ai/openai-agents-middleware
v0.1.1
Published
Mastyf AI security middleware for OpenAI Agents SDK — intercepts tool calls through the Mastyf policy proxy
Maintainers
Readme
@mastyf_ai/openai-agents-middleware
OpenAI Agents SDK middleware for mastyf.ai — the open-source MCP runtime security proxy.
Intercept and enforce security policy on every tool call made by OpenAI Agents.
Install
npm install @mastyf_ai/openai-agents-middlewareUsage
import { MastyfOpenAIAgentsMiddleware } from '@mastyf_ai/openai-agents-middleware';
const middleware = new MastyfOpenAIAgentsMiddleware({
policyPath: './policy.yaml',
});
// Wrap your agent
const agent = middleware.wrap(myAgent);Related
- mastyf.ai — Main project
- Cloud dashboard — Policy editor and fleet management
- Python SDK
