d55e1a70 by Ean Schuessler

MVP: Simplify MCP to JSON-RPC 2.0 only

- Remove SSE streaming support for MVP simplicity
- Force JSON-RPC 2.0 responses regardless of Accept header
- Simplify REST configuration to only support application/json
- Clean up duplicate Accept header validation
- Remove streaming response logic and headers

This enables opencode connection without SSE complexity
while preserving full MCP protocol functionality.
1 parent c3b2172d
...@@ -15,12 +15,23 @@ ...@@ -15,12 +15,23 @@
15 description="MCP JSON-RPC 2.0 services for Moqui integration"> 15 description="MCP JSON-RPC 2.0 services for Moqui integration">
16 16
17 <resource name="rpc"> 17 <resource name="rpc">
18 <method type="post"> 18 <method type="post" content-type="application/json">
19 <service name="McpServices.handle#McpRequest"/>
20 </method>
21 <method type="post" content-type="application/json-rpc">
19 <service name="McpServices.handle#McpRequest"/> 22 <service name="McpServices.handle#McpRequest"/>
20 </method> 23 </method>
24
21 <method type="get"> 25 <method type="get">
22 <service name="McpServices.mcp#Ping"/> 26 <service name="McpServices.mcp#Ping"/>
23 </method> 27 </method>
28 <method type="get" path="debug">
29 <service name="McpServices.debug#ComponentStatus"/>
30 </method>
31 <!-- Add a catch-all method for debugging -->
32 <method type="post">
33 <service name="McpServices.handle#McpRequest"/>
34 </method>
24 </resource> 35 </resource>
25 36
26 37
......