feat: add a get_wiki_page tool
What does this merge request do and why?
Create a tool to allow reading wiki pages and its comments using Duo. This is meant to be a short term solution while we work on a longer term way to add wikis to DAP using MCP tools when the foundation for that is in place.
- Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/561715
- Slack convo: https://gitlab.slack.com/archives/C09JKA0UX0C/p1761770515462019
- Related MR in the monolith: gitlab-org/gitlab!211298
How to set up and validate locally
- Ensure GDK is setup locally with AI gateway enabled
- Check out branch
himkp-wiki-toolingdk/gitlab - Check out branch
himkp-wiki-toolingdk/gitlab-ai-gateway gdk reconfigure && gdk restart- Create a new agent, and add the
get_wiki_pagetool to it. Add the agent to a project. - Go to a wiki page (or create one) that has some comments, and ask it questions about the page, and its comments.
| Wiki page and comments in one tool |
|---|
| CleanShot 2025-11-06 at 16.10.18.mp4 |
Merge request checklist
-
Tests added for new functionality. If not, please raise an issue to follow up. -
Documentation added/updated, if needed. -
If this change requires executor implementation: verified that issues/MRs exist for both Go executor and Node executor or confirmed that changes are backward-compatible and don't break existing executor functionality.
Edited by Himanshu Kapoor