---
description: Rules for using Context7 MCP to retrieve up-to-date information about libraries and tools. Applies when using libraries, configuring external tools, and handling errors.
---

# Context7 MCP Usage Rules

## When Using Libraries

When using APIs from libraries or frameworks, always fetch the latest documentation and code examples via Context7 MCP before implementing. Avoid writing code based on memory of older usage patterns; always base your implementation on the latest correct usage.

## External Tool Configuration and Syntax

When writing configuration files (tsconfig, vite.config, eslint, etc.) or CLI tool syntax, verify the correct options and format in advance using Context7 MCP. Do not write configurations based on guesswork.

## When Handling Errors

When an error caused by a library or tool occurs, immediately check the correct usage via Context7 MCP and fix it based on the official documentation. Avoid fixes based on outdated Stack Overflow answers or memory-based guesswork.
