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