Code mode allows to speed-up bulk search while lower token cost.
Fast MCP 3.0 supports this already.
mcp = FastMCP("Server", transforms=[CodeMode(sandbox_provider=sandbox)])
ref: https://gofastmcp.com/servers/transforms/code-mode
The requirements would be:
- Test if MCP mode is worth it.
- Make sure there is no security hole in the currently deploy implementation. Execution the code in the back-end is generally a terrible idea.
- Allow user to extend SerpAPI MCP server in Python (following SOLID principles).
- Allow user to define declare their own sandbox
- Document the feature, and performance benchmark associated emphasis on cost saving
Code mode allows to speed-up bulk search while lower token cost.
Fast MCP 3.0 supports this already.
ref: https://gofastmcp.com/servers/transforms/code-mode
The requirements would be: