Skip to main content
Glama

Sitecore MCP Server

by GaryWenneker
PATCH-v1.2.1.md•2.03 kB
# Patch v1.2.1 - Schema Fix **Release Date**: October 16, 2025 **Type**: Bug Fix (Patch) **Previous Version**: 1.2.0 **Author**: Gary Wenneker ## šŸ› Bug Fix ### Issue `sitecore_get_children` tool returned GraphQL error: ``` Error: Cannot query field "results" on type "Item" ``` ### Root Cause The `/items/master` schema has a **different structure** than the old `/edge` schema: - **Old /edge**: `children { results { ... } }` (ItemSearchResults type) - **New /items/master**: `children(first: 100) { ... }` (direct [Item] array) ### Solution Fixed `getChildren()` method in `src/sitecore-service.ts`: - āœ… Removed `results` field access - āœ… Added `first: 100` pagination argument - āœ… Changed to direct array access: `children` instead of `children.results` ## šŸ“ Changes ### Modified Files 1. **src/sitecore-service.ts** - Fixed children query structure 2. **src/index.ts** - Version bumped to 1.2.1 3. **package.json** - Version bumped to 1.2.1 ### Test Results ```powershell āœ… GraphQL Query: SUCCESS āœ… TypeScript Build: SUCCESS āœ… Children returned: 3 items ``` ## šŸ“š Documentation New documentation: - **SCHEMA-FIX-CHILDREN.md** - Complete analysis of the schema difference ## šŸš€ How to Update ```bash cd c:\gary\Sitecore\SitecoreMCP npm run build ``` Then restart your MCP client (Claude Desktop, VS Code, etc.). ## āœ… Impact ### Fixed - āœ… `sitecore_get_children` now works correctly ### Unaffected (Still Working) - āœ… `sitecore_get_item` - āœ… `sitecore_search` (uses `search().results`, which is correct) - āœ… `sitecore_query` (uses `search().results`) - āœ… `sitecore_get_field_value` - āœ… `sitecore_get_template` - āœ… `sitecore_command` (natural language interface) - āœ… `/sitecore` slash command menu ## šŸ” Technical Details See [SCHEMA-FIX-CHILDREN.md](SCHEMA-FIX-CHILDREN.md) for: - Complete schema comparison - Code changes (before/after) - Testing procedures - Lessons learned --- **Status**: āœ… READY FOR USE **Build**: āœ… SUCCESS **Tests**: āœ… PASS

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/GaryWenneker/SitecoreMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server