[v2.0.x] Point imports of mcp.server.fastmcp at the migration guide (#3393)
This commit is contained in:
parent
6f69a3758e
commit
8b191a4336
1 changed files with 82 additions and 8 deletions
|
|
@ -30,11 +30,12 @@ API_DIR = ROOT / "docs" / "api"
|
|||
# it from `src/` would emit the unimportable `mcp-types.mcp_types.*`.
|
||||
PACKAGES = (ROOT / "src" / "mcp", ROOT / "src" / "mcp-types" / "mcp_types")
|
||||
|
||||
# Alias packages that mirror another package's namespaces (`mcp.types` mirrors
|
||||
# `mcp_types`, `mcp.types.version` mirrors `mcp_types.version`): the mirrored
|
||||
# package's pages are the canonical rendering, so an alias, and every module
|
||||
# under it, earns no page of its own.
|
||||
EXCLUDED = frozenset({"mcp.types"})
|
||||
# Module paths that get no page, and neither does anything under them: alias
|
||||
# packages that mirror another package's namespaces (`mcp.types` mirrors
|
||||
# `mcp_types`), whose canonical rendering is the mirrored package's pages; and
|
||||
# removed v1 import paths (`mcp.server.fastmcp`) that only raise a pointer to
|
||||
# the migration guide and carry no API.
|
||||
EXCLUDED = frozenset({"mcp.types", "mcp.server.fastmcp"})
|
||||
|
||||
_KIND_SECTIONS = {
|
||||
griffe.Kind.MODULE: "Modules",
|
||||
|
|
|
|||
Loading…
Reference in a new issue