inspector icon indicating copy to clipboard operation
inspector copied to clipboard

Cache tool call params

Open matteo8p opened this issue 5 months ago • 1 comments

We cache tool parameters after you run the tool

Screenshot 2025-07-25 at 1 25 57 PM

Motivation and Context

This is a quality of life improvement. The tool parameters get saved when you run the tool. That way, when you switch in and out of a tool, the parameters are saved and can be re-used.

See this suggestion: https://github.com/modelcontextprotocol/inspector/issues/609

How Has This Been Tested?

Did a functional test. The params are saved after tool execution.

Breaking Changes

No

Types of changes

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [X] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to change)
  • [ ] Documentation update

Checklist

  • [X] I have read the MCP Documentation
  • [X] My code follows the repository's style guidelines
  • [X] New and existing tests pass locally
  • [X I have added appropriate error handling
  • [X] I have added or updated documentation as needed

Additional context

matteo8p avatar Jul 25 '25 20:07 matteo8p

@olaservo I wondered about that so I did some searching, and it seems like localStorage allows quite a range of key names: https://stackoverflow.com/questions/19897374/can-an-html5-localstorage-key-be-any-string Have you seen limitations in practical use, however?

pamelafox avatar Aug 05 '25 05:08 pamelafox