auto-claude: 193-fix-update-context7-mcp-tool-name-from-get-library (#1744)
* auto-claude: subtask-1-1 - Update CONTEXT7_TOOLS constant to use 'query-docs' * fix: update remaining Context7 tool name references (qa-requested) - Update 4 backend prompt files (coder, spec_researcher, qa_reviewer, spec_critic) - Update frontend AgentTools component - All files now use 'query-docs' instead of deprecated 'get-library-docs' - Fixes agent failures when using Context7 MCP v2.0.0+ QA Fix Session: 1 --------- Co-authored-by: Test User <test@example.com>
This commit is contained in:
@@ -46,7 +46,7 @@ TOOL_UPDATE_QA_STATUS = "mcp__auto-claude__update_qa_status"
|
|||||||
# Context7 MCP tools for documentation lookup (always enabled)
|
# Context7 MCP tools for documentation lookup (always enabled)
|
||||||
CONTEXT7_TOOLS = [
|
CONTEXT7_TOOLS = [
|
||||||
"mcp__context7__resolve-library-id",
|
"mcp__context7__resolve-library-id",
|
||||||
"mcp__context7__get-library-docs",
|
"mcp__context7__query-docs",
|
||||||
]
|
]
|
||||||
|
|
||||||
# Linear MCP tools for project management (when LINEAR_API_KEY is set)
|
# Linear MCP tools for project management (when LINEAR_API_KEY is set)
|
||||||
|
|||||||
@@ -342,7 +342,7 @@ Input: { "libraryName": "[library name from subtask]" }
|
|||||||
|
|
||||||
**Step 2: Get relevant documentation**
|
**Step 2: Get relevant documentation**
|
||||||
```
|
```
|
||||||
Tool: mcp__context7__get-library-docs
|
Tool: mcp__context7__query-docs
|
||||||
Input: {
|
Input: {
|
||||||
"context7CompatibleLibraryID": "[library-id]",
|
"context7CompatibleLibraryID": "[library-id]",
|
||||||
"topic": "[specific feature you're implementing]",
|
"topic": "[specific feature you're implementing]",
|
||||||
@@ -353,7 +353,7 @@ Input: {
|
|||||||
**Example workflow:**
|
**Example workflow:**
|
||||||
If subtask says "Add Stripe payment integration":
|
If subtask says "Add Stripe payment integration":
|
||||||
1. `resolve-library-id` with "stripe"
|
1. `resolve-library-id` with "stripe"
|
||||||
2. `get-library-docs` with topic "payments" or "checkout"
|
2. `query-docs` with topic "payments" or "checkout"
|
||||||
3. Use the exact patterns from documentation
|
3. Use the exact patterns from documentation
|
||||||
|
|
||||||
**This prevents:**
|
**This prevents:**
|
||||||
|
|||||||
@@ -239,7 +239,7 @@ Input: { "libraryName": "[library name]" }
|
|||||||
|
|
||||||
**Step 3: Verify API usage matches documentation**
|
**Step 3: Verify API usage matches documentation**
|
||||||
```
|
```
|
||||||
Tool: mcp__context7__get-library-docs
|
Tool: mcp__context7__query-docs
|
||||||
Input: {
|
Input: {
|
||||||
"context7CompatibleLibraryID": "[library-id]",
|
"context7CompatibleLibraryID": "[library-id]",
|
||||||
"topic": "[relevant topic - e.g., the function being used]",
|
"topic": "[relevant topic - e.g., the function being used]",
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ Tool: mcp__context7__resolve-library-id
|
|||||||
Input: { "libraryName": "[library from spec]" }
|
Input: { "libraryName": "[library from spec]" }
|
||||||
|
|
||||||
# Step 2: Verify API patterns mentioned in spec
|
# Step 2: Verify API patterns mentioned in spec
|
||||||
Tool: mcp__context7__get-library-docs
|
Tool: mcp__context7__query-docs
|
||||||
Input: {
|
Input: {
|
||||||
"context7CompatibleLibraryID": "[library-id]",
|
"context7CompatibleLibraryID": "[library-id]",
|
||||||
"topic": "[specific API or feature mentioned in spec]",
|
"topic": "[specific API or feature mentioned in spec]",
|
||||||
@@ -305,7 +305,7 @@ When analyzing, think through:
|
|||||||
>
|
>
|
||||||
> Let me also verify with Context7 - I'll look up the actual package name and API patterns to confirm...
|
> Let me also verify with Context7 - I'll look up the actual package name and API patterns to confirm...
|
||||||
> [Use mcp__context7__resolve-library-id to find the library]
|
> [Use mcp__context7__resolve-library-id to find the library]
|
||||||
> [Use mcp__context7__get-library-docs to check API patterns]
|
> [Use mcp__context7__query-docs to check API patterns]
|
||||||
>
|
>
|
||||||
> Next, looking at the API patterns. The research shows initialization requires [steps], but the spec shows [different steps]. Let me cross-reference with Context7 documentation... Another issue confirmed.
|
> Next, looking at the API patterns. The research shows initialization requires [steps], but the spec shows [different steps]. Let me cross-reference with Context7 documentation... Another issue confirmed.
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ This returns the Context7-compatible ID (e.g., "/vercel/next.js").
|
|||||||
Once you have the ID, fetch documentation for specific topics:
|
Once you have the ID, fetch documentation for specific topics:
|
||||||
|
|
||||||
```
|
```
|
||||||
Tool: mcp__context7__get-library-docs
|
Tool: mcp__context7__query-docs
|
||||||
Input: {
|
Input: {
|
||||||
"context7CompatibleLibraryID": "/vercel/next.js",
|
"context7CompatibleLibraryID": "/vercel/next.js",
|
||||||
"topic": "routing", // Focus on relevant topic
|
"topic": "routing", // Focus on relevant topic
|
||||||
@@ -244,7 +244,7 @@ research.json created successfully.
|
|||||||
|
|
||||||
1. **Context7 MCP** (PRIMARY) - Best for official docs, API patterns, code examples
|
1. **Context7 MCP** (PRIMARY) - Best for official docs, API patterns, code examples
|
||||||
- Use `resolve-library-id` first to get the library ID
|
- Use `resolve-library-id` first to get the library ID
|
||||||
- Then `get-library-docs` with relevant topics
|
- Then `query-docs` with relevant topics
|
||||||
- Covers most popular libraries (React, Next.js, FastAPI, etc.)
|
- Covers most popular libraries (React, Next.js, FastAPI, etc.)
|
||||||
|
|
||||||
2. **Web Search** - For package verification, recent info, obscure libraries
|
2. **Web Search** - For package verification, recent info, obscure libraries
|
||||||
@@ -271,7 +271,7 @@ Input: { "libraryName": "graphiti" }
|
|||||||
|
|
||||||
If found in Context7:
|
If found in Context7:
|
||||||
```
|
```
|
||||||
Tool: mcp__context7__get-library-docs
|
Tool: mcp__context7__query-docs
|
||||||
Input: {
|
Input: {
|
||||||
"context7CompatibleLibraryID": "/zep/graphiti",
|
"context7CompatibleLibraryID": "/zep/graphiti",
|
||||||
"topic": "getting started",
|
"topic": "getting started",
|
||||||
|
|||||||
@@ -270,7 +270,7 @@ const MCP_SERVERS: Record<string, { name: string; description: string; icon: Rea
|
|||||||
name: 'Context7',
|
name: 'Context7',
|
||||||
description: 'Documentation lookup for libraries and frameworks via @upstash/context7-mcp',
|
description: 'Documentation lookup for libraries and frameworks via @upstash/context7-mcp',
|
||||||
icon: Search,
|
icon: Search,
|
||||||
tools: ['mcp__context7__resolve-library-id', 'mcp__context7__get-library-docs'],
|
tools: ['mcp__context7__resolve-library-id', 'mcp__context7__query-docs'],
|
||||||
},
|
},
|
||||||
'graphiti-memory': {
|
'graphiti-memory': {
|
||||||
name: 'Graphiti Memory',
|
name: 'Graphiti Memory',
|
||||||
|
|||||||
Reference in New Issue
Block a user