Skip to content

Added prompt and resources stateless - #103

Open
cafalchio wants to merge 18 commits into
tool_call_statelessfrom
prompt_resources_stateless
Open

Added prompt and resources stateless#103
cafalchio wants to merge 18 commits into
tool_call_statelessfrom
prompt_resources_stateless

Conversation

@cafalchio

@cafalchio cafalchio commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Use the same pattern from tool_call for prompt and resources.
Use connect_backend_for_request and validate_stateless to connect to prompt and resources.

Increased conformance tests from 61 to 70.


Stack created with GitHub Stacks CLIGive Feedback 💬

@cafalchio
cafalchio force-pushed the prompt_resources_stateless branch from c070be9 to b604a24 Compare August 18, 2026 15:16
@cafalchio
cafalchio marked this pull request as ready for review August 18, 2026 15:21
@cafalchio
cafalchio force-pushed the prompt_resources_stateless branch from b604a24 to 9468c44 Compare August 18, 2026 15:28
@cafalchio
cafalchio requested a review from lucarlig August 18, 2026 15:37
dawid-nowak
dawid-nowak previously approved these changes Aug 19, 2026
Signed-off-by: cafalchio <mcafalchio@gmail.com>
Signed-off-by: cafalchio <mcafalchio@gmail.com>
Signed-off-by: cafalchio <mcafalchio@gmail.com>
Signed-off-by: cafalchio <mcafalchio@gmail.com>
Signed-off-by: cafalchio <mcafalchio@gmail.com>
Signed-off-by: cafalchio <mcafalchio@gmail.com>
Signed-off-by: cafalchio <mcafalchio@gmail.com>
Signed-off-by: cafalchio <mcafalchio@gmail.com>
Signed-off-by: cafalchio <mcafalchio@gmail.com>
Signed-off-by: cafalchio <mcafalchio@gmail.com>
Signed-off-by: cafalchio <mcafalchio@gmail.com>
Signed-off-by: cafalchio <mcafalchio@gmail.com>
@lucarlig
lucarlig force-pushed the prompt_resources_stateless branch from 89ca25d to 60a748e Compare August 19, 2026 09:22
Signed-off-by: cafalchio <mcafalchio@gmail.com>
Signed-off-by: cafalchio <mcafalchio@gmail.com>
Signed-off-by: cafalchio <mcafalchio@gmail.com>
Signed-off-by: cafalchio <mcafalchio@gmail.com>
@cafalchio
cafalchio force-pushed the prompt_resources_stateless branch from a8e606d to 4832716 Compare August 19, 2026 12:38
@dawid-nowak
dawid-nowak self-requested a review August 19, 2026 13:56
dawid-nowak
dawid-nowak previously approved these changes Aug 19, 2026

@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 deterministic per-request cleanup and progress ordering. The cancellation item is intentionally excluded because it is waiting on the draft RMCP fix in modelcontextprotocol/rust-sdk#1194.

Comment thread crates/contextforge-data-plane-lib/src/gateway/mcp_service/prompts.rs Outdated
Comment thread crates/contextforge-data-plane-lib/src/gateway/mcp_service/resources.rs Outdated
- server-stateless:sep-2575-discover-capabilities-match-handlers
- server-stateless:sep-2575-http-server-no-independent-requests-on-stream
- server-stateless:sep-2575-server-declares-prompts-in-discover
- tools-call-with-progress:tools-call-with-progress

@lucarlig lucarlig Aug 19, 2026

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.

Do not record this as a stable expected failure while it is timing-dependent. The same production code has both passed this check and missed it: RMCP runs on_progress in a detached task, while the final response can make the dataplane remove the token mapping and return first. Make the ordering deterministic by waiting for earlier progress forwarding before cleanup and the final response, add a regression test, and then remove this baseline entry.

Suggested change
- tools-call-with-progress:tools-call-with-progress

Signed-off-by: cafalchio <mcafalchio@gmail.com>
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.

3 participants