SAP / SAP/cloud-sdk-python

Support MCP tools caching

Open
#178 1 comment 0 reactions 1 assignee View on GitHub

@thiagob is already working on this.

Since Sep 14, 2026.

Dominant language
Python
Stars
28
Forks
42
Avg merge
2d 13h
Merged PRs (30d)
35

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.