Skip to content

Add Claude Desktop Extension support#20

Open
jiwei-aipolabs wants to merge 2 commits intomainfrom
claude-extension
Open

Add Claude Desktop Extension support#20
jiwei-aipolabs wants to merge 2 commits intomainfrom
claude-extension

Conversation

@jiwei-aipolabs
Copy link
Contributor

@jiwei-aipolabs jiwei-aipolabs commented Jul 11, 2025

Summary
https://www.notion.so/Claude-Desktop-Extension-for-Unified-MCP-22c8378d6a4780b8bc45e9a54e0daefb?source=copy_link

  • Add Claude Desktop Extension manifest and icon for packaging as a DXT extension
  • Update README with instructions for packing the extension using @anthropic-ai/dxt
  • Add .dxt files to .gitignore
  • Bump version to 1.0.0b11

Changes

  • manifest.json: New extension manifest with configuration for ACI Unified MCP Extension
  • icon.png: Extension icon
  • README.md: Added section with packing instructions using dxt CLI
  • .gitignore: Added *.dxt to ignore packed extension files
  • uv.lock: Version bump to 1.0.0b11

Summary by cubic

Added support for packaging and distributing the Unified MCP server as a Claude Desktop Extension, including a new manifest, icon, and setup instructions.

  • Extension Packaging
    • Added manifest.json and icon.png for DXT extension support.
    • Updated README with packing instructions using @anthropic-ai/dxt.
    • Ignored .dxt files in .gitignore.
    • Bumped version to 1.0.0b11.

Summary by CodeRabbit

  • New Features

    • Introduced a manifest file to define extension metadata, server configuration, compatibility, and user configuration for the "aci-unified-mcp-extension".
  • Documentation

    • Added detailed instructions in the README for packaging the MCP as a Claude Desktop Extension, including environment setup and packaging steps.
  • Chores

    • Updated the .gitignore file to exclude IDE files, the .vscode/ directory, .dxt files, and the server/lib/ directory.

@coderabbitai
Copy link

coderabbitai bot commented Jul 11, 2025

Walkthrough

A new manifest file for the "aci-unified-mcp-extension" was added, detailing extension metadata, server configuration, tools, compatibility, and user configuration. The .gitignore was updated to exclude .dxt files, the .vscode/ directory, and server/lib/. The README.md gained a section with step-by-step instructions for packaging and configuring the MCP as a Claude Desktop Extension.

Changes

File(s) Change Summary
.gitignore Added ignore patterns for .vscode/, *.dxt files, and server/lib/ directory.
README.md Added instructions for packaging the MCP as a Claude Desktop Extension using the dxt tool and configuring dependencies.
manifest.json Added new manifest defining extension metadata, server configuration, tools, compatibility, and user configuration.

Poem

A manifest new, with details so bright,
And .dxt files now hidden from sight.
The README expanded, with steps clear and neat,
Packing extensions—a developer’s treat!
With paws on the keyboard, I hop and I code,
Celebrating each change on this warren’s new road.
🐇✨


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 48168d6 and 9342ed6.

📒 Files selected for processing (3)
  • .gitignore (1 hunks)
  • README.md (1 hunks)
  • manifest.json (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (3)
  • .gitignore
  • README.md
  • manifest.json

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cubic found 1 issue across 4 files. Review it in cubic.dev

React with 👍 or 👎 to teach cubic. Tag @cubic-dev-ai to give specific feedback.

"dxt_version": "0.1",
"name": "aci-unified-mcp-extension",
"display_name": "ACI Unified MCP Extension",
"version": "0.0.2",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The version specified here (0.0.2) does not match the version bump mentioned in the PR description (1.0.0b11), which could cause confusion or packaging issues.

Suggested change
"version": "0.0.2",
"version": "1.0.0b11",

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (2)
README.md (2)

106-106: Hard-coded Python 3.10 site-packages path is fragile.

If the developer’s local Python minor version differs (e.g., 3.11) or they’re on Windows, the path will break. Recommend replacing the literal path with a runtime expansion (e.g., $(python -c 'import site, json; print(site.getsitepackages()[0])')) or leveraging a ${runtime.python.site_packages} placeholder in manifest.json instead of baking the path into docs.


108-108: Version string duplication may drift.

dxt pack . aci-unified-mcp-extension-v0.0.2.dxt hard-codes 0.0.2; the manifest already contains the version. A single-source version (e.g., dxt pack . aci-unified-mcp-extension-$(jq -r .version manifest.json).dxt) avoids manual bumps.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d854f1d and 48168d6.

⛔ Files ignored due to path filters (2)
  • icon.png is excluded by !**/*.png
  • uv.lock is excluded by !**/*.lock
📒 Files selected for processing (3)
  • .gitignore (1 hunks)
  • README.md (1 hunks)
  • manifest.json (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: cubic · AI code reviewer
🔇 Additional comments (1)
.gitignore (1)

14-14: Addition of *.dxt pattern looks correct.

Ignoring the packed extension artifacts prevents accidental commits of large binaries—good call.

Comment on lines 20 to 26
"type": "python",
"entry_point": "src/aci_mcp/__main__.py",
"mcp_config": {
"command": "python",
"args": [
"${__dirname}/src/aci_mcp/__main__.py",
"unified-server",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Redundant entry_point vs explicit python command.

Both "entry_point" and the args array point to src/aci_mcp/__main__.py. Keeping one source of truth avoids drift; rely on entry_point and let DXT handle invocation, or drop entry_point and keep the explicit command, but not both.

🤖 Prompt for AI Agents
In manifest.json around lines 20 to 26, both "entry_point" and the "args" array
specify the same script src/aci_mcp/__main__.py, causing redundancy. To fix
this, remove either the "entry_point" field and keep the explicit "command" and
"args" for running the script, or remove the "command" and "args" and rely
solely on "entry_point" for invocation, ensuring only one source of truth for
the script entry.

manifest.json Outdated
"--allowed-apps-only"
],
"env": {
"PYTHONPATH": ".venv/lib/python3.10/site-packages",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Hard-coding .venv/lib/python3.10/site-packages will break for other Python versions & OSes.

Users on Python 3.11 or Windows will not have this directory. Prefer an expansion supported by DXT (for example, ${runtime.python.site_packages}) or compute the path at runtime in the launch script.

-        "PYTHONPATH": ".venv/lib/python3.10/site-packages",
+        "PYTHONPATH": "${runtime.python.site_packages}",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"PYTHONPATH": ".venv/lib/python3.10/site-packages",
"PYTHONPATH": "${runtime.python.site_packages}",
🤖 Prompt for AI Agents
In manifest.json at line 31, the PYTHONPATH is hard-coded to a specific Python
version and OS path, which will fail for other Python versions or operating
systems. Replace the hard-coded path with a dynamic expansion supported by DXT,
such as using ${runtime.python.site_packages}, or modify the launch script to
compute the correct site-packages path at runtime to ensure compatibility across
environments.

@recurseml
Copy link

recurseml bot commented Jul 14, 2025

✨ No files to analyze in this PR.

Need help? Join our Discord for support!
https://discord.gg/qEjHQk64Z9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant