Skip to content

Inter-process schema validation cache #364

Description

@dvisockas

#363 introduced a in-process schema validation cache. The problem with this approach is that when the MCP server boots - the cache is stale and needs to be warmed, which might not always be trivial to do.

Could we extract the default cache implementation and allow users to configure a different cache store, say for an inter-process long lived cache?

MCP.configuration do |config|
  config.schema_validation_cache = FileBasedSchemaCache.new
end

Happy to put up a PR just want to align on the approach first

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