Skip to content

Additional work on tools/call and resources/read - #118

Open
dawid-nowak wants to merge 7 commits into
mainfrom
dawid.nowak/additional_work_for_tools_and_resources
Open

Additional work on tools/call and resources/read#118
dawid-nowak wants to merge 7 commits into
mainfrom
dawid.nowak/additional_work_for_tools_and_resources

Conversation

@dawid-nowak

@dawid-nowak dawid-nowak commented Aug 26, 2026

Copy link
Copy Markdown
Contributor
  1. Extra unit tests to cover modern to modern, legacy to modern, modern to legacy and legacy to legacy flows.
  2. Additional configuration parameters needs to be sent from the control plane:
  • protocol version
  1. Enabled filtering by tool name and resource uri alias.

…filter by tool name, resource uri

Signed-off-by: Dawid Nowak <nowakd@gmail.com>
…filter by tool name, resource uri.Fixing unit tests

Signed-off-by: Dawid Nowak <nowakd@gmail.com>
…filter by tool name, resource uri.Adding extra tests

Signed-off-by: Dawid Nowak <nowakd@gmail.com>
…filter by tool name, resource uri.Adding extra tests.2

Signed-off-by: Dawid Nowak <nowakd@gmail.com>
Signed-off-by: Dawid Nowak <nowakd@gmail.com>
Signed-off-by: Dawid Nowak <nowakd@gmail.com>

@lucarlig lucarlig 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.

Requesting changes for three blocking correctness and test-coverage issues.

Comment thread crates/contextforge-data-plane-apis/src/user_store.rs Outdated
Comment thread crates/contextforge-data-plane-lib/tests/gateway_call_tools.rs Outdated
…d tools and resources due to overlap with aliases

Signed-off-by: Dawid Nowak <nowakd@gmail.com>
@dawid-nowak
dawid-nowak requested a review from lucarlig August 27, 2026 12:16
@@ -39,60 +34,36 @@ pub(super) fn resolve_tool_route<'a, N: AsRef<str>>(
alias.or_else(|| route_identifier(name, backend_names))

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.

Alias misses bypass filtering. Route only configured aliases.

Suggested change
alias.or_else(|| route_identifier(name, backend_names))
alias

Implementation::new("contextforge-data-plane", env!("CARGO_PKG_VERSION")),
)
.with_protocol_version(ProtocolVersion::V_2026_07_28);
.with_protocol_version(backend.mcp_protocol_version.clone());

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.

Use the configured version in the lifecycle too:

ClientLifecycleMode::Auto {
    preferred_versions: vec![backend.mcp_protocol_version.clone()],
    legacy_version: Some(backend.mcp_protocol_version.clone()),
}

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants