Skip to content

feat: add refreshSchemaBeforeCall to cached MCP tools config#1730

Open
radugheo wants to merge 1 commit into
mainfrom
feat/mcp-cached-refresh-schema
Open

feat: add refreshSchemaBeforeCall to cached MCP tools config#1730
radugheo wants to merge 1 commit into
mainfrom
feat/mcp-cached-refresh-schema

Conversation

@radugheo

@radugheo radugheo commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator
  • Add refreshSchemaBeforeCall field (default true) to CachedToolsConfig
  • Bump version to 2.11.5
  • Add tests for the default value, the refreshSchemaBeforeCall alias round-trip, and MCP resource parsing of cached and dynamic discovery modes

Development Packages

uipath

[project]
dependencies = [
  # Exact version (copy-paste ready):
  "uipath==2.11.5.dev1017306806",

  # Any version from this PR (uncomment to use a range instead):
  # "uipath>=2.11.5.dev1017300000,<2.11.5.dev1017310000",
]

[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true

[tool.uv.sources]
uipath = { index = "testpypi" }

Copilot AI review requested due to automatic review settings June 17, 2026 12:25
@github-actions github-actions Bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-integrations labels Jun 17, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the agent MCP tools discovery configuration model by adding a refreshSchemaBeforeCall flag (defaulting to true) to CachedToolsConfig, and updates the package version accordingly. It also adds tests to validate defaulting, alias round-tripping, and MCP resource parsing for both cached and dynamic discovery modes.

Changes:

  • Added refresh_schema_before_call (alias refreshSchemaBeforeCall, default True) to CachedToolsConfig.
  • Added unit tests covering the new flag’s default behavior, alias serialization/parsing, and MCP resource parsing for cached vs dynamic discovery modes.
  • Bumped uipath package version from 2.11.4 to 2.11.5 (including lockfile update).

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
packages/uipath/src/uipath/agent/models/agent.py Adds the new cached-tools refresh flag to the MCP tools discovery configuration model.
packages/uipath/tests/agent/models/test_agent.py Adds tests validating default value, alias round-trip, and MCP resource parsing for cached/dynamic discovery modes.
packages/uipath/pyproject.toml Bumps the package version to 2.11.5.
packages/uipath/uv.lock Updates the lockfile to reflect the 2.11.5 version bump.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sonarqubecloud

Copy link
Copy Markdown

@radugheo radugheo added the build:dev Create a dev build from the pr label Jun 17, 2026
@github-actions

Copy link
Copy Markdown

🚨 Heads up: uipath-integrations cross-tests are FAILING 🚨

Your changes may break one or more integrations in uipath-integrations-python:

  • uipath-openai-agents
  • uipath-google-adk
  • uipath-agent-framework
  • uipath-llamaindex
  • uipath-pydantic-ai

⚠️ These checks are NOT enforced by branch protection rules. Please review the failures before merging.

🔍 Inspect the failed run →

@github-actions

Copy link
Copy Markdown

🚨 Heads up: uipath-langchain cross-tests are FAILING 🚨

Your changes may break the uipath-langchain-python integration.

⚠️ These checks are NOT enforced by branch protection rules. Please review the failures before merging.

🔍 Inspect the failed run →

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

Labels

build:dev Create a dev build from the pr test:uipath-integrations test:uipath-langchain Triggers tests in the uipath-langchain-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants