Skip to content

Code mode support for SerpAPI MCP #34

Description

@jvmvik

Code mode allows to speed-up bulk search while lower token cost.

Image

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions