Improve MCP instructions with specific tool guidance for common business queries
Showing
1 changed file
with
2 additions
and
1 deletions
| ... | @@ -118,7 +118,7 @@ | ... | @@ -118,7 +118,7 @@ |
| 118 | protocolVersion: "2025-06-18", | 118 | protocolVersion: "2025-06-18", |
| 119 | capabilities: serverCapabilities, | 119 | capabilities: serverCapabilities, |
| 120 | serverInfo: serverInfo, | 120 | serverInfo: serverInfo, |
| 121 | instructions: "This server provides access to Moqui ERP services and entities through MCP. Tools and resources are filtered based on your permissions.", | 121 | instructions: "This server provides access to Moqui ERP through MCP. For common business queries: Use screen_PopCommerce_screen_PopCommerceAdmin.Catalog for product catalog, screen_PopCommerce_screen_PopCommerceAdmin_Order.FindOrder for order status, screen_PopCommerce_screen_PopCommerceRoot.Customer for customer management, and screen_PopCommerce_screen_PopCommerceAdmin.QuickSearch for general searches. All screens support parameterized queries for filtering results.", |
| 122 | sessionId: visit.visitId | 122 | sessionId: visit.visitId |
| 123 | ] | 123 | ] |
| 124 | 124 | ||
| ... | @@ -1180,6 +1180,7 @@ try { | ... | @@ -1180,6 +1180,7 @@ try { |
| 1180 | def subScreenPathList = subScreenInfo?.screenPath | 1180 | def subScreenPathList = subScreenInfo?.screenPath |
| 1181 | ec.logger.info("MCP Screen Discovery: Processing subscreen entry - key: ${subScreenEntry.key}, location: ${subScreenPathList}, full info: ${subScreenInfo}") | 1181 | ec.logger.info("MCP Screen Discovery: Processing subscreen entry - key: ${subScreenEntry.key}, location: ${subScreenPathList}, full info: ${subScreenInfo}") |
| 1182 | 1182 | ||
| 1183 | // TODO: Fix these hard coded discoveries | ||
| 1183 | // Special debug for Catalog.xml | 1184 | // Special debug for Catalog.xml |
| 1184 | if (screenPath.contains("Catalog.xml")) { | 1185 | if (screenPath.contains("Catalog.xml")) { |
| 1185 | ec.logger.info("MCP Screen Discovery: *** CATALOG DEBUG *** Processing ${subScreenEntry.key} from Catalog.xml") | 1186 | ec.logger.info("MCP Screen Discovery: *** CATALOG DEBUG *** Processing ${subScreenEntry.key} from Catalog.xml") | ... | ... |
-
Please register or sign in to post a comment