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
Copy file name to clipboardExpand all lines: prompts/mcp/readmes/context7.md
+13-3Lines changed: 13 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ Attribute|Details|
21
21
Tools provided by this Server|Short Description
22
22
-|-
23
23
`get-library-docs`|Fetches up-to-date documentation for a library.|
24
-
`resolve-library-id`|Required first step: Resolves a general package name into a Context7-compatible library ID.|
24
+
`resolve-library-id`|Resolves a package name to a Context7-compatible library ID and returns a list of matching libraries.|
25
25
26
26
---
27
27
## Tools Details
@@ -31,12 +31,22 @@ Fetches up-to-date documentation for a library. You must call 'resolve-library-i
31
31
Parameters|Type|Description
32
32
-|-|-
33
33
`context7CompatibleLibraryID`|`string`|Exact Context7-compatible library ID (e.g., 'mongodb/docs', 'vercel/nextjs') retrieved from 'resolve-library-id'.
34
-
`tokens`|`number`*optional*|Maximum number of tokens of documentation to retrieve (default: 5000). Higher values provide more context but consume more tokens.
34
+
`tokens`|`number`*optional*|Maximum number of tokens of documentation to retrieve (default: 10000). Higher values provide more context but consume more tokens.
35
35
`topic`|`string`*optional*|Topic to focus documentation on (e.g., 'hooks', 'routing').
36
36
37
37
---
38
38
#### Tool: **`resolve-library-id`**
39
-
Required first step: Resolves a general package name into a Context7-compatible library ID. Must be called before using 'get-library-docs' to retrieve a valid Context7-compatible library ID.
39
+
Resolves a package name to a Context7-compatible library ID and returns a list of matching libraries.
40
+
41
+
You MUST call this function before 'get-library-docs' to obtain a valid Context7-compatible library ID.
42
+
43
+
When selecting the best match, consider:
44
+
- Name similarity to the query
45
+
- Description relevance
46
+
- Code Snippet count (documentation coverage)
47
+
- GitHub Stars (popularity)
48
+
49
+
Return the selected library ID and explain your choice. If there are multiple good matches, mention this but proceed with the most relevant one.
40
50
Parameters|Type|Description
41
51
-|-|-
42
52
`libraryName`|`string`|Library name to search for and retrieve a Context7-compatible library ID.
**Docker Scout Health Score**| 
[Why is it safer to run MCP Servers with Docker?](https://www.docker.com/blog/the-model-context-protocol-simplifying-building-ai-apps-with-anthropic-claude-desktop-and-docker/)
0 commit comments