Skip to content

Latest commit

 

History

History

plugin

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

DashScope plugin (Claude Code + Agent Plugins 1.0)

Thin wrapper around the dashscope-agent-tools MCP server. The plugin ships six Skills (image generation, semantic search, rerank, text-to-speech, transcription, video generation) and the MCP server config; all capability logic lives in the Python package, which delegates to the official dashscope SDK.

This directory is dual-format:

  • Claude Code reads .claude-plugin/plugin.json + .mcp.json (DASHSCOPE_ENTRYPOINT=claude-code, key via userConfig).
  • GitHub Copilot (VS Code / CLI / app) reads the root plugin.json + mcp.json (Agent Plugins 1.0, DASHSCOPE_ENTRYPOINT=copilot, published uvx command). See ../hosts/copilot/README.md.

Both share the same skills/. A root Agent Plugins manifest takes precedence for Copilot; Claude Code keeps using its own format.

Install in Claude Code

claude plugin marketplace add dashscope/dashscope-agent-tools-python
claude plugin install dashscope@dashscope-agent-tools

Enter your API key in the install dialog (/plugin configure dashscope to change it later). The key is stored masked and injected as DASHSCOPE_API_KEY.

Local development

.mcp.json currently points at the repo venv binary so the Claude plugin runs from a local checkout:

"command": "${CLAUDE_PLUGIN_ROOT}/../.venv/bin/dashscope-agent-tools"

Load it for one session:

claude --plugin-dir ./plugin

Then /mcp should show plugin:dashscope:dashscope connected, and /dashscope:generate-image, /dashscope:semantic-search, /dashscope:rerank, /dashscope:text-to-speech, /dashscope:transcribe-audio, /dashscope:generate-video are available.

Optional: switch the Claude config to the published form

dashscope-agent-tools is on PyPI. To run the Claude plugin from the published package instead of the local venv, replace the command/args in .mcp.json with:

{
  "mcpServers": {
    "dashscope": {
      "command": "uvx",
      "args": ["dashscope-agent-tools"],
      "env": {
        "DASHSCOPE_API_KEY": "${user_config.api_key}",
        "DASHSCOPE_ENTRYPOINT": "claude-code"
      }
    }
  }
}

Validate

claude plugin validate ./plugin
# offline equivalents (no host CLI needed):
.venv/bin/python tests/plugin_structure_check.py    # Claude format
.venv/bin/python tests/copilot_structure_check.py   # Agent Plugins 1.0 format