From 099b688c3f22ea02bfba2eba16778735e51c85c0 Mon Sep 17 00:00:00 2001 From: Zhongwei Li Date: Sat, 29 Nov 2025 18:04:34 +0800 Subject: [PATCH] Initial commit --- .claude-plugin/plugin.json | 12 ++++++++ README.md | 3 ++ commands/claude-desktop-extension.md | 32 ++++++++++++++++++++ plugin.lock.json | 45 ++++++++++++++++++++++++++++ 4 files changed, 92 insertions(+) create mode 100644 .claude-plugin/plugin.json create mode 100644 README.md create mode 100644 commands/claude-desktop-extension.md create mode 100644 plugin.lock.json diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..d1019e2 --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,12 @@ +{ + "name": "claude-desktop-extension", + "description": "This command provides the context necessary for Claude Code to create the Desktop Extension or .dxt file of an MCP.", + "version": "1.0.0", + "author": { + "name": " Anand Tyagi", + "url": "https://github.com/ananddtyagi" + }, + "commands": [ + "./commands" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..5a995ba --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# claude-desktop-extension + +This command provides the context necessary for Claude Code to create the Desktop Extension or .dxt file of an MCP. diff --git a/commands/claude-desktop-extension.md b/commands/claude-desktop-extension.md new file mode 100644 index 0000000..81bb6f4 --- /dev/null +++ b/commands/claude-desktop-extension.md @@ -0,0 +1,32 @@ +--- +description: This command provides the context necessary for Claude Code to create the Desktop Extension or .dxt file of an MCP. +author: Anand Tyagi +author-url: https://github.com/ananddtyagi +version: 1.0.0 +--- + +I want to build this as a Desktop Extension, abbreviated as "DXT". Please follow these steps: + +1. **Read the specifications thoroughly:** + - https://github.com/anthropics/dxt/blob/main/README.md - DXT architecture overview, capabilities, and integration patterns + - https://github.com/anthropics/dxt/blob/main/MANIFEST.md - Complete extension manifest structure and field definitions + - https://github.com/anthropics/dxt/tree/main/examples - Reference implementations including a "Hello World" example + +2. **Create a proper extension structure:** + - Generate a valid manifest.json following the MANIFEST.md spec + - Implement an MCP server using @modelcontextprotocol/sdk with proper tool definitions + - Include proper error handling and timeout management + +3. **Follow best development practices:** + - Implement proper MCP protocol communication via stdio transport + - Structure tools with clear schemas, validation, and consistent JSON responses + - Make use of the fact that this extension will be running locally + - Add appropriate logging and debugging capabilities + - Include proper documentation and setup instructions + +4. **Test considerations:** + - Validate that all tool calls return properly structured responses + - Verify manifest loads correctly and host integration works + +Generate complete, production-ready code that can be immediately tested. Focus on defensive programming, clear error messages, and following the exact +DXT specifications to ensure compatibility with the ecosystem. \ No newline at end of file diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..00daa68 --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,45 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:ccplugins/awesome-claude-code-plugins:plugins/claude-desktop-extension", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "f6921195823ed3538ee9380477a9128d0b701ab0", + "treeHash": "ed7136e2ac623b7c47bd6bbcdc8b232fa83f00a7783d4afb9089cb8943a6823d", + "generatedAt": "2025-11-28T10:14:33.631447Z", + "toolVersion": "publish_plugins.py@0.2.0" + }, + "origin": { + "remote": "git@github.com:zhongweili/42plugin-data.git", + "branch": "master", + "commit": "aa1497ed0949fd50e99e70d6324a29c5b34f9390", + "repoRoot": "/Users/zhongweili/projects/openmind/42plugin-data" + }, + "manifest": { + "name": "claude-desktop-extension", + "description": "This command provides the context necessary for Claude Code to create the Desktop Extension or .dxt file of an MCP.", + "version": "1.0.0" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "113ddbeeaabd64986d624a5592a5a7df52bcc204b59a1616488881a04c3a4a25" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "689f03d0dc8e557e03864bc10799952e98bf1253ed6e43018515d02ad4c00880" + }, + { + "path": "commands/claude-desktop-extension.md", + "sha256": "0d69a735aeb531afdb03ee6eeb6c97d999accc23bb9958d7b7973a9f3da39490" + } + ], + "dirSha256": "ed7136e2ac623b7c47bd6bbcdc8b232fa83f00a7783d4afb9089cb8943a6823d" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file