Skip to content

Cache tool parameter inputs locally for ease of repetitive testing of same tool #609

@pamelafox

Description

@pamelafox

Is your feature request related to a problem? Please describe.

A common way that I use the MCP dev inspector is for repetitive testing of a tool with the same values. Currently I have to re-fill in the tool input parameters each time the server re-connects, which gets annoying after many reloads.

Image

Describe the solution you'd like

I suggest using localStorage to remember the tool input parameter values. The localStorage key could be a hash of the server + toolname + input parameter names.

Describe alternatives you've considered

  • sessionStorage: not persistent enough
  • local database: too much setup, inspector already uses localStorage

Additional context

I don't think you'd fill up localStorage with the keys, but if you were worried about that, you could set an expiration using my lscache library:
https://github.com/pamelafox/lscache

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions