Skip to main content
Glama

Sitecore MCP Server

by GaryWenneker
SLASH-COMMAND.mdโ€ข5.28 kB
# Slash Command Support - /sitecore **Feature:** MCP Prompt Integration **Status:** โœ… Implemented **Version:** 1.2.0 **Date:** October 16, 2025 --- ## ๐ŸŽฏ What Is This? When you type `/` in your chat interface (Claude Desktop, VS Code Copilot, etc.), you'll now see **`/sitecore`** in the slash command menu! --- ## ๐Ÿš€ How It Works ### 1. Type `/` in Chat You'll see a menu with available commands including: ``` /sitecore - ๐Ÿ”ง Sitecore command interface ``` ### 2. Select `/sitecore` The interface will prompt you for a command. ### 3. Type Your Command ``` get item /sitecore/content/Home search articles help ``` ### 4. Get Results Beautifully formatted response with all item details! --- ## ๐Ÿ“‹ Implementation Details ### MCP Prompts Capability We added `prompts` capability to the MCP server: ```typescript capabilities: { tools: {}, prompts: {}, // โ† NEW! } ``` ### Prompt Definition ```typescript { name: "sitecore", description: "๐Ÿ”ง Sitecore command interface", arguments: [ { name: "command", description: "Your Sitecore command", required: false } ] } ``` ### Prompt Handler When you select `/sitecore`, it: 1. Takes your command input 2. Wraps it in `/sitecore [command]` 3. Passes to the `sitecore_command` tool 4. Returns formatted results --- ## ๐ŸŽจ User Experience ### Before (without slash command) ``` User: "Can you get me the Home item from Sitecore?" AI: *thinks* *calls tool* *formats response* ``` ### After (with slash command) ``` User: / [menu appears] User: Selects /sitecore User: Types "get item /sitecore/content/Home" AI: *instantly processes* *returns formatted result* ``` **Much faster and more intuitive!** --- ## ๐Ÿ“ˆ Supported Commands All natural language commands work: ### Quick Access ``` /sitecore โ†’ get item /sitecore/content/Home /sitecore โ†’ search articles /sitecore โ†’ children of /sitecore/content ``` ### Full Syntax ``` /sitecore โ†’ get item /sitecore/content/Home version 2 /sitecore โ†’ search for "home" in /sitecore/content /sitecore โ†’ find items with template Article ``` ### Help ``` /sitecore โ†’ help /sitecore โ†’ examples /sitecore โ†’ ? ``` --- ## ๐Ÿ”ง Configuration ### Client Support This feature works in MCP clients that support prompts: โœ… **Claude Desktop** (with MCP support) โœ… **VS Code with Copilot** (with MCP extension) โœ… **Cline** (VS Code extension) โœ… **Other MCP-compatible clients** ### No Configuration Needed The slash command is automatically available once the MCP server is running! --- ## ๐Ÿงช Testing ### How to Test 1. **Restart your MCP client** (Claude Desktop, VS Code, etc.) 2. **Type `/` in the chat** 3. **Look for `/sitecore` in the menu** 4. **Select it and type a command** 5. **Verify results** ### Test Commands ``` /sitecore help /sitecore examples /sitecore /sitecore/content/Home /sitecore search articles /sitecore templates ``` --- ## ๐Ÿงฐ Troubleshooting ### Slash command not appearing? **Solutions:** 1. Rebuild: `npm run build` 2. Restart MCP client 3. Check MCP client supports prompts 4. Verify server is running ### Command doesn't execute? **Solutions:** 1. Check server logs 2. Verify API key is set 3. Test with simple command: `/sitecore help` 4. Check network connectivity --- ## ๐Ÿ“Š Statistics | Metric | Value | |--------|-------| | **Prompts Defined** | 1 | | **Arguments** | 1 (command) | | **Supported Commands** | 15+ patterns | | **Client Compatibility** | All MCP clients | --- ## ๐ŸŽจ Icon & Branding The slash command includes an emoji icon: ``` ๐Ÿ”ง /sitecore - Sitecore command interface ``` Makes it easy to spot in the menu! --- ## ๐Ÿš€ What's Next? ### Possible Enhancements 1. **Multiple Prompts** - `/sitecore-search` - Dedicated search prompt - `/sitecore-get` - Dedicated get item prompt - `/sitecore-templates` - Template browser 2. **Argument Validation** - Pre-validate paths - Suggest completions - Error checking before execution 3. **Context Awareness** - Remember last used path - Suggest related items - Smart defaults --- ## ๐Ÿ’ก Pro Tips ### Tip 1: Use Tab Completion ``` Type: /sit [TAB] Completes to: /sitecore ``` ### Tip 2: Empty Command = Help ``` /sitecore [Enter without typing] โ†’ Shows help automatically ``` ### Tip 3: Chain Commands ``` /sitecore get item /path โ†’ See item โ†’ Then: /sitecore children of /path โ†’ See children ``` ### Tip 4: Quick Search ``` /sitecore articles โ†’ Instant search ``` --- ## ๐Ÿ“š Documentation References - **User Guide:** `SITECORE-COMMAND-GUIDE.md` - **Implementation:** `src/index.ts` (prompts handlers) - **Patterns:** 15+ command patterns supported --- ## โœ… Acceptance Criteria Met | Criterion | Status | |-----------|--------| | Slash command appears in menu | โœ… | | Emoji icon displays | โœ… | | Command parameter accepted | โœ… | | All patterns work | โœ… | | Help available | โœ… | | Results formatted | โœ… | | Cross-client compatible | โœ… | --- ## ๐ŸŽ‰ Success! The `/sitecore` slash command is now available in all MCP-compatible chat interfaces! Type `/` and look for the ๐Ÿ”ง icon! --- **Version:** 1.2.0 **Feature:** Slash Command Support **Status:** โœ… Production Ready

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