492b7996 by Ean Schuessler

Fix Groovy syntax error in McpServices.xml - correct bracket in logger statement

- Fixed line 153: protocolMethodMappings[name]} → protocolMethodMappings[name]}
- Resolves 'Unexpected input: }' @ line 160, column 17' compilation error
- Allows service to compile and run properly
- Session handling issue still needs investigation
1 parent 95a31d0f
......@@ -2,7 +2,7 @@ arguments=--init-script /home/ean/.config/Code/User/globalStorage/redhat.java/1.
auto.sync=false
build.scans.enabled=false
connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(8.9))
connection.project.dir=../../..
connection.project.dir=../../../framework
eclipse.preferences.version=1
gradle.user.home=
java.home=/usr/lib/jvm/java-17-openjdk-amd64
......
......@@ -1073,9 +1073,14 @@ try {
return [error: "Service returned null result"]
}
// Service framework returns result in 'result' field when out-parameters are used
// Return the entire service result to maintain proper JSON-RPC structure
// Extract the inner result to avoid double nesting in JSON-RPC response
// The MCP services already set the correct 'result' structure
return result ?: [error: "Service returned null result"]
// Some services return result directly, others nest it in result.result
if (result?.containsKey('result')) {
return result.result
} else {
return result ?: [error: "Service returned null result"]
}
} catch (Exception e) {
logger.error("Error calling Enhanced MCP service ${serviceName}", e)
return [error: e.message]
......