Skip to content

Support MCP tools caching #178

Description

@NicoleMGomes

Describe the Problem

When listing tools, cache should be enabled and evicted when case consumer want.

Note: It should use similar approach for what is already in place for token caching

Propose a Solution

# caches MCP tools for 600 ms and resets in case callback_to_evict is called
options = { ttl="600", envict=callback_to_evict }
agw_client.list_tools(cache=options)

Describe Alternatives

No response

Affected Development Phase

Development

Impact

No Impact

Timeline

No response

Activity

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

Metadata

Metadata

Assignees

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