Example Qwen Code extension demonstrating a Rust-based MCP server.
qwen/plugins/example/
├── qwen-extension.json # Extension manifest
├── Cargo.toml # Rust workspace crate
├── src/
│ └── main.rs # MCP server binary (stdio JSON-RPC)
├── QWEN.md # Extension context
├── commands/
│ └── example/
│ └── polish.md # /example:polish slash command
├── skills/
│ └── synonyms/
│ └── SKILL.md # Synonyms skill
└── agents/
└── diary-writer.md # Diary writer subagent
cargo build -p qwen-example --bin qwen-example-mcpqwen extensions link ./qwen/plugins/examplecount_words— count words, characters, and characters without spaces in a text passage.