Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Ean Schuessler
/
mo-mcp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
b1278149
authored
2025-12-07 20:04:07 -0600
by
Ean Schuessler
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Revert to direct content return for screen execution - opencode expects direct response
1 parent
2fb806c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
21 deletions
service/McpServices.xml
service/McpServices.xml
View file @
b127814
...
...
@@ -1127,27 +1127,7 @@ def startTime = System.currentTimeMillis()
isError: false
]
// Queue result as notification for real-time delivery
try {
def servlet = ec.getWeb()?.getServletContext()?.getAttribute("enhancedMcpServlet")
if (servlet
&&
sessionId) {
def notification = [
method: "notifications/tool_result",
params: [
toolName: "screen_" + screenPath.replace("/", "_").replace(".", "_"),
result: result,
executionTime: executionTime,
timestamp: System.currentTimeMillis()
]
]
servlet.queueNotification(sessionId, notification)
ec.logger.info("MCP Screen Execution: Queued result as notification for screen ${screenPath} in ${executionTime}s")
} else {
ec.logger.warn("MCP Screen Execution: No servlet or sessionId available for notification queuing")
}
} catch (Exception e) {
ec.logger.warn("MCP Screen Execution: Failed to queue notification: ${e.message}")
}
ec.logger.info("MCP Screen Execution: Returned result directly for screen ${screenPath} in ${executionTime}s")
]]>
</script>
</actions>
</service>
...
...
Please
register
or
sign in
to post a comment