The Model Context Protocol (MCP) is an open standard to connect AI apps to data sources and tools. The DeepWiki MCP server provides access to the Light Protocol repository with its search capabilities (AskDevin).
claude mcp add -s user -t http deepwiki https://mcp.deepwiki.com/mcp
We recommend to create a command that includes the tools listed below. Simply copy paste this snippet.
Copy
Ask AI
---argument-hint: <question>description: Query Light Protocol repository and Solana resources via DeepWiki MCP for precise technical answers and help with debuggingallowed-tools: mcp__deepwiki__*---# /ask-deepwikiAnswer: $ARGUMENTSUse DeepWiki MCP to provide precise technical answers.## Step 1: Identify Repository Scope1. **State understanding and plan**2. **If question is vague, ask for clarification:**- What specific component or feature?- What problem are you solving?- What level of detail needed (overview vs implementation)?3. **Repository mapping:**- ZK Compression/Light Protocol: `Lightprotocol/light-protocol`- Solana fundamentals: `solana-labs/solana`- Anchor framework: `solana-foundation/anchor`- Complex questions: Query multiple repositories4. **Refine question to use:**- Exact component names: `CompressedAccountMeta` not "account metadata"- Specific operations: "verifies proof" not "handles proof"- Concrete function names or error messages when available## Step 2: Query DeepWikiFor the identified repository, call in sequence:1. `mcp__deepwiki__read_wiki_structure("repo-owner/repo-name")`2. `mcp__deepwiki__read_wiki_contents("repo-owner/repo-name")`3. `mcp__deepwiki__ask_question("repo-owner/repo-name", refined_question)`Query multiple repositories if question spans different systems.## Step 3: Format Response**Structure:**1. Direct answer with technical explanation2. Specific implementations and data structures3. Code examples with inline comments4. Source references (`file:line` from DeepWiki)5. Related concepts if relevant**Language precision:**NEVER use vague verbs:- "handles", "manages", "processes", "enables", "provides"ALWAYS use exact names:- Functions: `LightAccount::new_init()`, `derive_address()`- Types: `CompressedAccountMeta`, `ValidityProof`, `PackedAddressTreeInfo`- Operations: "nullifies hash", "appends to state tree", "verifies proof"- Fields: `tree_info`, `address`, `output_state_tree_index`Include `file:line` references from DeepWiki responses.## Notes- Always include source file references from DeepWiki responses- Provide runnable code examples for implementation questions- Ask follow-up questions to DeepWiki for clarification when needed
You can specify any public GitHub repo that is indexed with DeepWiki. When you connect to the MCP, you specify the repository when calling the tools. Learn more here.