mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5281] [Engine] Streaming MCP tool call lands in content #3146
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3146
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @txdyzdy on GitHub (Nov 5, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5281
[Engine] Streaming MCP tool call lands in
contentArea
[Engine] (speed, kernels, models, the server and API)
Desktop app, Terminal or source?
Source (setup.sh)
What happened
In an asset inventory workflow using DeepSeek Harness, we declared the following functions in the
toolsarray sent to Strata. DeepSeek Harness registers the tools whose names start withmcp__assets__through its MCP client plugin.read_skill_resourcereads a reference file from the loaded Skill.mcp__assets__get_asset_inforetrieves details about an asset.mcp__assets__get_maintenance_planretrieves the maintenance plan for an asset.In the same HTTP 200 stream, Strata returned
read_skill_resourceas a structured call inchoices[].delta.tool_callsand the asset lookup as XML inchoices[].delta.content. The XML used the short nameget_asset_info. The client ran the resource lookup and continued without the asset details.On the next step, the request still declared
mcp__assets__get_maintenance_plan. The maintenance plan lookup came back as XML with the short nameget_maintenance_plan. The harness receivedstopand ended the turn without a maintenance plan result.We expected the lookups to arrive in
choices[].delta.tool_callswith their full declared function names so the harness could execute them.Reproduction status
Reproduced locally.
Strata version
Reported setup uses Strata 0.2.10 (build 0.1.56) with Python 3.12.3 at
/usr/bin/python3.Graphics card, memory and system
NVIDIA GeForce RTX 4070 Ti SUPER (16 GiB VRAM), 94 GiB RAM, Ubuntu Linux (
7.0.0-38-generic #38~24.04.4-Ubuntu).Model, size and settings
qwen3.8-flash-next-q2_0, context window 32,768, maximum output 8,192 tokens.0.2.1-rc.2with pi-ai1.3.0.Smallest steps or command that reproduce it
We reproduced the failure by sending the captured JSON body for the failing request directly to Strata. The body uses
stream: true, declares the full names of all 12 tools, and includes workflow instructions that refer to the lookup by purpose. The relevant declared function ismcp__assets__get_asset_info.The JSON below is the anonymized
C01.request.json. It preserves the message order, all 12 tool declarations, and the original generation parameters. The prompts, identifiers, and tool descriptions use the asset inventory scenario. This anonymized body has not been replayed.Save it as
failing-request.jsonand inspect the returned SSE.Logs
The following deltas come from a failing replay, with anonymized names and intermediate chunks omitted. The second delta contains the opening
<tool_call>tag inchoices[].delta.content, where it is returned as assistant text.read_skill_resourcewas the only structured call in this stream. The overallfinish_reasonwas stilltool_calls, so an agent checking only that field could miss the asset lookup that appeared as text.The anonymized
C01.summary.jsonbelow shows the response assembled from the captured SSE. Internal experiment metadata is omitted.@github-actions[bot] commented on GitHub (Nov 5, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
@github-actions[bot] commented on GitHub (Nov 6, 2026):
Thanks, this follows the format now.
@Niko1221 commented on GitHub (Nov 7, 2026):
Fixed: a call written with the last segment of an MCP tool name (for example
get_asset_infoformcp__assets__get_asset_info) is now matched to the declared tool when exactly one declared tool ends that way, and comes back intool_callswith the full name (05506f953).Released in Strata v0.2.12: https://github.com/Niko1221/Strata/releases/tag/v0.2.12