Context7 for aiogram
Use Context7 when the task needs exact aiogram or aiogram_i18n API details instead of higher-level patterns.
Install and availability
This skill does not install Context7 itself.
If the current Codex runtime already has the Context7 MCP server, use it directly.
If Context7 is missing in Codex, add an MCP entry like:
[mcp_servers.context7]
command = "npx"
args = ["-y", "@upstash/context7-mcp"]Then restart Codex so the MCP tools are loaded.
Recommended library IDs
For aiogram 3 projects, use:
/aiogram/aiogram/v3.25.0by default for aiogram 3 work/aiogram/aiogram/v3.26.0only if the target project is already on that version or explicitly wants the latest aiogram 3 docs
For aiogram_i18n, use:
/aiogram/i18n
Avoid querying aiogram 4 docs for this skill unless the target project is explicitly on aiogram 4.
Use Context7 for
- exact constructor parameters
- available fields on Telegram objects
- current examples for routers, dispatcher setup, keyboards, filters, and i18n middleware
Practical lookup rules
- Pin aiogram queries to the closest aiogram 3 version that matches the repository.
- Use
/aiogram/i18nfor aiogram_i18n runtime details. - If Context7 gives multiple plausible versions, prefer the project's installed version over the newest one.
- If a Context7 answer conflicts with the repository's installed dependency version, trust the repository and re-query the matching version.
- If Context7 does not cover a detail well enough, fall back to the package's upstream docs or source and say that you are doing so.