LangChain and CrewAI
Your Python agent keeps its tools. The tools lose their raw PII.
Wrap each MCP server with a gateway URL. For model calls, use the proxy endpoint instead of the provider base URL, and pass the workspace session so multi-step runs share one dictionary.
Session discipline
Create one session id per agent run and send it on every hop. Tokens from the first tool call must still resolve when a later tool writes. A new session is an empty dictionary.
Credentials
The agent process should hold an mp_live_ key, not the Postgres password. The upstream secret stays in the Maskio workspace.
Questions
Do I rewrite the agent graph?+–
You change endpoints and headers. Tool schemas stay the same because the gateway speaks MCP.
What scope does the key need?+–
proxy:mcp for the gateway and proxy:llm for the chat proxy. The workspace key button can mint both.
See it on a payload you control.
The sandbox and the free tools run before you create an account.