Skip to content

feat(librarian): add DeepWiki MCP integration for documentation lookup - #70

Merged
amondnet merged 4 commits into
mainfrom
69-add-deepwiki-mcp-integration-to-librarian-agent
Dec 23, 2025
Merged

feat(librarian): add DeepWiki MCP integration for documentation lookup#70
amondnet merged 4 commits into
mainfrom
69-add-deepwiki-mcp-integration-to-librarian-agent

Conversation

@amondnet

Copy link
Copy Markdown
Contributor

Summary

Integrate DeepWiki MCP server into the librarian agent to enable documentation lookup capabilities through AI-generated GitHub repository documentation.

Changes

  • Configuration: Added DeepWiki MCP server (SSE type) to .mcp.json
  • Agent Update: Updated librarian agent to use DeepWiki MCP for wiki/documentation search alongside Context7 MCP
  • Documentation:
    • Added DeepWiki to tool reference with step-by-step usage examples
    • Included DeepWiki in parallel execution requirements for TYPE A, B, and D research
    • Added DeepWiki to failure recovery section as fallback for Context7 MCP

Benefits

  • Enables understanding repository architecture and design through AI-generated documentation
  • Complements Context7 MCP with richer codebase insights
  • Improves librarian agent's capability for comprehensive documentation research
  • Supports better component interaction understanding

References

- Add DeepWiki MCP server configuration (SSE type) to .mcp.json
- Update librarian agent to use DeepWiki MCP for wiki/documentation search
- Add DeepWiki to tool reference with usage examples
- Include DeepWiki in parallel execution requirements for comprehensive research
- Add DeepWiki to failure recovery section as alternative to Context7 MCP

This enables the librarian agent to query AI-generated documentation for GitHub repositories, improving capability to understand repository architecture and component interactions.

Closes #69
@amondnet amondnet linked an issue Dec 23, 2025 that may be closed by this pull request
@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello @amondnet, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the librarian agent's ability to perform comprehensive documentation research by integrating the DeepWiki MCP server. This new integration allows the agent to leverage AI-generated GitHub repository documentation, providing richer insights into codebase architecture and design, and improving overall research capabilities for various query types.

Highlights

  • DeepWiki MCP Integration: The DeepWiki MCP server has been integrated into the system, enabling AI-generated GitHub repository documentation lookup capabilities.
  • Librarian Agent Enhancement: The librarian agent now utilizes DeepWiki MCP for wiki and documentation searches, complementing the existing Context7 MCP for richer codebase insights.
  • Configuration Update: The .mcp.json file has been updated to include the DeepWiki MCP server, configured as an SSE type.
  • Documentation Updates: The librarian.md agent documentation has been updated to include DeepWiki in tool references, parallel execution requirements for various research types (A, B, D), and enhanced failure recovery strategies.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Dec 23, 2025

Copy link
Copy Markdown

Deploying code-please with  Cloudflare Pages  Cloudflare Pages

Latest commit: a451e36
Status:🚫  Build failed.

View logs

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request successfully integrates the DeepWiki MCP server for documentation lookups within the librarian agent. The configuration and documentation updates are comprehensive, adding DeepWiki to various research types and failure recovery procedures. I have one suggestion to refine the documentation for TYPE A questions to better leverage the ask_question capability of DeepWiki, which seems more direct for conceptual queries.

Comment thread agents/librarian.md Outdated
@codecov

codecov Bot commented Dec 23, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 39.35%. Comparing base (36abb66) to head (a451e36).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #70   +/-   ##
=======================================
  Coverage   39.35%   39.35%           
=======================================
  Files          59       59           
  Lines        6489     6489           
=======================================
  Hits         2554     2554           
  Misses       3935     3935           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

- Add DeepWiki limitations section for error handling guidance
- Replace numbered tool comments with named identifiers [context7], [deepwiki], etc.
- Improves maintainability when adding/removing tools
Apply gemini-code-assist suggestion: use deepwiki/ask_question instead
of two-step read_wiki_structure/contents for conceptual questions.
@amondnet
amondnet merged commit e5488e1 into main Dec 23, 2025
3 of 4 checks passed
@amondnet
amondnet deleted the 69-add-deepwiki-mcp-integration-to-librarian-agent branch December 23, 2025 18:13
@passionfactory-bot passionfactory-bot Bot mentioned this pull request Dec 23, 2025
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.

Add DeepWiki MCP integration to librarian agent

1 participant