You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to use DevDocs in your custom codebase using MCP Server (#21)
Update dREADME with specific prompts used for Research_MCP mode in Roo
Code for efficient retrieval of sections from the using the newest
feature for MCP Server:Section Based Document Retrival
Co-authored-by: EtherEngineRK <roshankhichi01@gmail.com>
Co-authored-by: Kryptos666 <14373168+kryptos666@users.noreply.github.com>
Copy file name to clipboardExpand all lines: README.md
+86-7Lines changed: 86 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,14 +12,14 @@ The idea of DevDocs is to ensure that software engineers and (LLM) software devs
12
12
13
13
**Goal:** I wanted to use state of the art technology but wanted the speed of an up to date LLM, cant do that without an hashtag#MCP(model context protocol) server. So now if I wanted to implement a vector database into my code, I just copy the URL, paste it in DevDocs and the tool grabs all the data from its child websites and spits it into markdown which is then uploaded into my MCP server for Claude to use. This cuts down weeks of research into just a bunch of questions.
14
14
15
-
## Roadmap:
15
+
## Feature Roadmap:
16
16
-[X]~~Build a Minimum Viable Product with accurate functionality~~
17
-
-[ ]Handle Complex websites documentation like AWS, MS, langchain:D
17
+
-[X]~~Handle Complex websites documentation like AWS, MS, langchain~~
18
18
-[X]~~Adding MCP servers options to choose.~~
19
19
-[ ] Turnkey Vector Database so all chunking, embedding is done behind the scenes while you sip your joe :)
20
20
-[ ] Agents which will be pros in particular documentation and can code, architect or reason for you with the accurate information as ground truth.
21
21
-[ ] Option to switch to LLM based crawling for specific usecase.
22
-
-[ ]UI Improvements, cuz we flashy.
22
+
-[ ]Dockerization for easier deployment in production.
@@ -34,7 +34,7 @@ The idea of DevDocs is to ensure that software engineers and (LLM) software devs
34
34
- 🚄 **Real-time Progress**: Live updates on crawling progress and statistics
35
35
- 💫 **Modern UI**: Sleek, responsive interface with real-time feedback
36
36
- 🔥 **Inbuilt MCP Server**: No need to copy paste into your MCP server, DevDocs already has an inbuild MCP server, already connect to your claude desktop app upon installation(restart needed) and gives you the commands you need to add to your cline MCP server configs. How cool is that?
37
-
- 📕 **MCP Server:Section Based Document Retrival**: Efficiently navigate and load large markdown documents with section-based retrieval, preventing token limit issues while maintaining document structure. Check out the How to use DevDocs MCP Server in Cline below.
37
+
- 📕 **MCP Server:Section Based Document Retrival**: Efficiently navigate and load large markdown documents with section-based retrieval, preventing token limit issues while maintaining document structure. Check out the How to use DevDocs MCP Server in Cline below.
38
38
39
39
## 🚀 Getting Started
40
40
@@ -65,10 +65,89 @@ That's it! The system will:
65
65
5. Download the generated markdown/json or use it with an inbuilt MCP server with Cline/Claude
66
66
67
67
## 📕 How to use DevDocs MCP Server in Cline
68
-
1. Once your documents are extracted via the UI, navigate to your code editor of choice (Roo Code or Cline.)
69
-
2. In Cline Type: `Read the files in MCP server and tell me how to (your question) and use Table of Contents and Section Access to answer`
70
68
71
-
*Note: This feature is not activated by default, we are working on it, meanwhile use the #2 format in the chat to invoke this feature*
69
+
With the new features added to DevDocs for **MCP Server: Section Based Document Retrival**
70
+
you can create a mode in Roo Code to incorporate efficient retrieval of information from your crawled documents in MCP server. This guide walks you through setting up **Research_MCP** mode in just 3 steps!!
71
+
72
+
---
73
+
74
+
### 1. Setting Up the Mode
75
+
76
+
1.**Open the “Modes” Interface**
77
+
- In **Roo Code**, click the **+** to create a new mode, or select an existing mode (like `Research_MCP`) to edit.
78
+
2.**Name and Slug**
79
+
- Give the mode a **Name** (e.g., `Research_MCP`).
80
+
- Provide a **Slug** (e.g., `research-mcp`). The slug must be lowercase letters, numbers, and hyphens only.
81
+
82
+

83
+
---
84
+
85
+
### 2. Role Definition
86
+
87
+
Paste the following prompt exactly into the **Role Definition** field:
88
+
89
+
```Agent Identity: You are a Research_MCP agent, specialized in navigating and retrieving technical documentation from the MCP server.
90
+
91
+
Expertise and Personality: Expertise: Developer documentation retrieval, technical synthesis, and documentation search. Personality: Systematic, detail-oriented, and precise. Provide well-structured answers with clear references to documentation sections.
92
+
93
+
Behavioral Mandate: Always use the Table Of Contents and Section Access tools when addressing any query regarding the MCP documentation. Maintain clarity, accuracy, and traceability in your responses.
94
+
```
95
+
96
+
---
97
+
98
+
### 3. Custom Instructions
99
+
100
+
Paste the following instruction prompt exactly into the **Custom Instructions** field:
101
+
102
+
```Objective: The agent must provide accurate and complete responses by retrieving information from the MCP server’s developer documentation (Markdown format). It must always utilize the two available tools:
103
+
1. Table Of Contents Tool: Returns a full or filtered list of documentation topics.
104
+
2. Section Access Tool: Retrieves the detailed content of specific documentation sections.
105
+
106
+
General Process: Query Interpretation: Parse the user's query to extract key topics, keywords, and context. Identify the likely relevant sections (e.g., API configurations, error handling) from the query.
107
+
108
+
Discovery via Table Of Contents: Use the Table Of Contents tool to search the documentation index for relevant sections. Filter or scan titles and metadata for matching keywords.
109
+
110
+
Drill-Down Using Section Access: For each identified relevant document or section, use the Section Access tool to retrieve its content. If multiple parts are needed, request all related sections to ensure comprehensive coverage.
111
+
112
+
Synthesis and Response Formation: Combine the retrieved content into a coherent and complete answer. Reference section identifiers or document paths for traceability. Validate that every aspect of the query has been addressed.
113
+
114
+
Error Handling: If no matching sections are found, adjust the search parameters and retry. Clearly report if the query remains ambiguous or if no relevant documentation is available.
115
+
116
+
Mandatory Tool Usage:
117
+
Enforcement: Every time a query is received that requires information from the MCP server docs, the agent MUST first query the Table Of Contents tool to list potential relevant topics, then use the Section Access tool to retrieve the necessary detailed content.
118
+
119
+
Search & Retrieve Workflow:
120
+
Interpret and Isolate: Identify the key terms and data points from the user’s query.
121
+
122
+
Index Lookup: Immediately query the Table Of Contents tool to obtain a list of relevant documentation sections.
123
+
124
+
Targeted Retrieval: For each promising section, use the Section Access tool to get complete content.
125
+
126
+
Information Synthesis: Merge the retrieved content, ensuring all necessary details are included and clearly referenced.
127
+
128
+
Fallback and Clarification: If initial searches yield insufficient data, adjust the query parameters and retrieve additional sections as needed.
129
+
130
+
Custom Instruction Loading: Additional custom instructions specific to Research_MCP mode may be loaded from the .clinerules-research-mcp file in your workspace. These may include further refinements or constraints based on evolving documentation structures or query types.
131
+
132
+
Final Output Construction: The final answer should be organized, directly address the query, and include clear pointers (e.g., section names or identifiers) back to the MCP documentation. Ensure minimal redundancy while covering all necessary details.
133
+
```
134
+
135
+
---
136
+
137
+
### 4. Using Your Research_MCP Mode
138
+
139
+

140
+
- When you switch to or invoke the **Research_MCP** mode in Roo Code, the agent will:
141
+
1.**Check the Table Of Contents** for any relevant sections.
142
+
2.**Use Section Access** to retrieve the detailed content from those sections.
143
+
3.**Synthesize** a coherent, complete, and traceable answer.
144
+
145
+
- If no relevant sections are found, it will **broaden the search** or notify you of ambiguities.
146
+
147
+
---
148
+
This specialized agent will systematically search and retrieve information from your MCP server’s developer documentation, ensuring comprehensive answers to your technical queries.
0 commit comments