- remote MCP exposes governed Praxa operations to the agent;
- the read-only memory adapter recalls items from a session your backend owns.
Prerequisites
Before you begin, prepare:- the exact published Praxa package versions used by the tutorial;
- a trusted agent host with explicit tool, approval, timeout, and output policies;
- deployment-specific OAuth or backend-owned provider clients where the selected lane requires them;
- synthetic tenant, subject, prompt, and tool fixtures for positive and adversarial tests;
- an acceptance assertion that proves remote MCP and read-only session memory remain separate and both pass negative-boundary tests.
1. Connect remote MCP
requireApproval: “always” and implement
the Agents SDK interruption-and-resume flow before exposing them to a model.
2. Federate an existing session
3. Test both boundaries
Run a negative test with a wrong-scope MCP token and a separate namespace test
with two session subjects. Require both to fail closed without cross-lane data.
OpenAI Agents sessions
Review how the current Agents SDK loads and persists session items.
OpenAI Agents MCP
Review hosted MCP tools, allowlists, and human approval in the official SDK guide.
Troubleshooting
Best practices
- Enable the smallest tool or source set needed for the workflow.
- Require approval for mutations and independently for destructive actions.
- Derive tenant, subject, purpose, and credential from trusted host context.
- Bound tool inputs, output bytes, concurrent calls, retries, and total turn time.
- Verify a run, event, trace, receipt, or source status independently of model prose.
Optimize for production
- Reduce tool definitions and provider sources to the relevant set before each turn.
- Use deterministic filtering and pagination before placing results in model context.
- Cache only versioned, non-sensitive contracts and read-only metadata.
- Measure tool-selection accuracy, approval rate, p50/p95 call latency, context bytes, retries, and verified completion.
Cleanup and next steps
- Revoke disposable delegated grants and remove test host configuration.
- Delete provider fixtures through the provider’s own lifecycle when applicable.
- Disable mutation tools until their negative and approval tests pass again after upgrades.
- Retain only redacted tool, run, trace, and receipt identifiers needed for evaluation.