McpPromptsData.xml
4.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<?xml version="1.0" encoding="UTF-8"?>
<!--
This software is in the public domain under CC0 1.0 Universal plus a
Grant of Patent License.
To the extent possible under law, the author(s) have dedicated all
copyright and related and neighboring rights to this software to the
public domain worldwide. This software is distributed without any warranty.
You should have received a copy of the CC0 Public Domain Dedication
along with this software. If not, see
<http://creativecommons.org/publicdomain/zero/1.0/>.
-->
<entity-facade-xml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://moqui.org/xsd/entity-facade-3.xsd">
<!-- MCP Prompts Wiki Space -->
<moqui.resource.wiki.WikiSpace wikiSpaceId="MCP_PROMPTS"
description="MCP Prompt Templates for AI assistants"
restrictView="N"
restrictUpdate="Y"
rootPageLocation="dbresource://WikiSpace/MCP_PROMPTS.md"/>
<!-- Parent DbResource for WikiSpace -->
<moqui.resource.DbResource
resourceId="WIKI_MCP_PROMPTS"
parentResourceId=""
filename="MCP_PROMPTS.md"
isFile="Y"/>
<moqui.resource.DbResourceFile
resourceId="WIKI_MCP_PROMPTS"
mimeType="text/markdown"
versionName="v1">This server provides access to Moqui ERP through MCP.
</moqui.resource.DbResourceFile>
<!-- DbResource for root page -->
<moqui.resource.DbResource
resourceId="WIKI_MCP_PROMPTS_ROOT"
parentResourceId="WIKI_MCP_PROMPTS"
filename="get-started.md"
isFile="Y"/>
<!-- "Get Started" Prompt Template -->
<moqui.resource.wiki.WikiPage
wikiPageId="MCP_PROMPTS/get-started"
wikiSpaceId="MCP_PROMPTS"
pagePath="get-started"
publishedVersionName="v1"
restrictView="N">
</moqui.resource.wiki.WikiPage>
<!-- WikiPageHistory for version tracking -->
<moqui.resource.wiki.WikiPageHistory
wikiPageId="MCP_PROMPTS/get-started"
historySeqId="1"
versionName="v1"
userId="EX_JOHN_DOE"
changeDateTime="2025-12-29 00:00:00.000"/>
<!-- DbResourceFile: Template content with Groovy GString syntax -->
<moqui.resource.DbResourceFile
resourceId="WIKI_MCP_PROMPTS_ROOT"
mimeType="text/markdown"
versionName="v1">
This server provides access to Moqui ERP through MCP.
For ${focus?.capitalize() ?: 'General'} operations:
${focus == 'catalog' ? '''
## Catalog Operations
- **FindProduct**: Use `/PopCommerce/PopCommerceAdmin/Catalog/Product/FindProduct` for product catalog
- **FindFeature**: Use `/PopCommerce/PopCommerceAdmin/Catalog/Feature/FindFeature` to search by features like color or size
- **EditPrices**: Use `/PopCommerce/PopCommerceAdmin/Catalog/Product/EditPrices` to check prices
''' : ''}
${focus == 'orders' ? '''
## Order Operations
- **FindOrder**: Use `/PopCommerce/PopCommerceAdmin/Order/FindOrder` for order status and lookup
- **QuickSearch**: Use `/PopCommerce/PopCommerceAdmin/QuickSearch` for general order searches
''' : ''}
${focus == 'customers' ? '''
## Customer Operations
- **CustomerRoot**: Use `/PopCommerce/PopCommerceRoot/Customer` for customer management
- **QuickSearch**: Use `/PopCommerce/PopCommerceAdmin/QuickSearch` for customer lookup
''' : ''}
${detailLevel == 'advanced' ? '''
## Advanced Features
- Use screen rendering for complex workflows with `moqui_render_screen`
- Subscribe to wiki and document resources for real-time updates
- All screens support parameterized queries for filtering results
''' : ''}
Use following discovery tools to explore available functionality:
- `moqui_browse_screens`: Browse Moqui screen hierarchy
- `moqui_search_screens`: Search for screens by name to find their paths.
- `moqui_get_screen_details`: Get input parameters for specific screens.
</moqui.resource.DbResourceFile>
<!-- Argument Schema Attachment -->
<moqui.resource.DbResource
resourceId="WIKI_MCP_GET_STARTED_ARGS"
parentResourceId="WIKI_MCP_PROMPTS"
filename="get-started/arguments.json"
isFile="Y"/>
<moqui.resource.DbResourceFile
resourceId="WIKI_MCP_GET_STARTED_ARGS"
mimeType="application/json"
versionName="v1">[
{
"name": "focus",
"title": "Focus Area",
"description": "Area of operations to focus on",
"type": "string",
"enum": ["general", "catalog", "orders", "customers"],
"required": false
},
{
"name": "detailLevel",
"title": "Detail Level",
"description": "Level of instruction detail",
"type": "string",
"enum": ["basic", "advanced"],
"required": false
}
]
</moqui.resource.DbResourceFile>
</entity-facade-xml>