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
2e3ebc43
authored
2026-01-02 18:57:48 -0600
by
Ean Schuessler
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Add debug logging to BrowseScreens service
1 parent
2f74974d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
service/McpServices.xml
service/McpServices.xml
View file @
2e3ebc4
...
...
@@ -1275,12 +1275,13 @@ def wikiInstructions = getWikiInstructions(inputScreenPath)
<actions>
<script>
<![CDATA[
import org.moqui.context.ExecutionContext
ExecutionContext ec = context.ec
ec.logger.info("BrowseScreens: SERVICE STARTED")
def subscreens = []
def currentPath = path ?: "root"
def userGroups = ec.user.getUserGroupIdSet().collect { it }
// Strip query parameters from path for screen resolution
if (currentPath.contains("?")) {
currentPath = currentPath.split("\\?")[0]
...
...
@@ -1367,7 +1368,8 @@ def wikiInstructions = getWikiInstructions(inputScreenPath)
// Helper to extract short description from wiki content
def getShortDescription = { wikiText ->
if (!wikiText) return null
def lines = wikiText.split('\n')
def textString = wikiText instanceof String ? wikiText : new String(wikiText, "UTF-8")
def lines = textString.split('\n')
for (def line : lines) {
if (line.trim()
&&
!line.trim().startsWith('#')) {
return line.trim().take(200)
...
...
Please
register
or
sign in
to post a comment