# generated by fastapi-codegen:
# filename: openapi.yaml
# timestamp: 2025-05-29T07:24:52+00:00
import argparse
import os
from typing import *
from typing import Optional
from autogen.mcp.mcp_proxy import MCPProxy
from autogen.mcp.mcp_proxy.security import APIKeyCookie, BaseSecurity, HTTPBasic
from pydantic import constr
from models import (
AbilityDetail,
ApiV2PokemonPokemonIdEncountersGetResponse,
BerryDetail,
BerryFirmnessDetail,
BerryFlavorDetail,
CharacteristicDetail,
ContestEffectDetail,
ContestTypeDetail,
EggGroupDetail,
EncounterConditionDetail,
EncounterConditionValueDetail,
EncounterMethodDetail,
EvolutionChainDetail,
EvolutionTriggerDetail,
GenderDetail,
GenerationDetail,
GrowthRateDetail,
ItemAttributeDetail,
ItemCategoryDetail,
ItemDetail,
ItemFlingEffectDetail,
ItemPocketDetail,
LanguageDetail,
LocationAreaDetail,
LocationDetail,
MachineDetail,
MoveBattleStyleDetail,
MoveDamageClassDetail,
MoveDetail,
MoveLearnMethodDetail,
MoveMetaAilmentDetail,
MoveMetaCategoryDetail,
MoveTargetDetail,
NatureDetail,
PaginatedAbilitySummaryList,
PaginatedBerryFirmnessSummaryList,
PaginatedBerryFlavorSummaryList,
PaginatedBerrySummaryList,
PaginatedCharacteristicSummaryList,
PaginatedContestEffectSummaryList,
PaginatedContestTypeSummaryList,
PaginatedEggGroupSummaryList,
PaginatedEncounterConditionSummaryList,
PaginatedEncounterConditionValueSummaryList,
PaginatedEncounterMethodSummaryList,
PaginatedEvolutionChainSummaryList,
PaginatedEvolutionTriggerSummaryList,
PaginatedGenderSummaryList,
PaginatedGenerationSummaryList,
PaginatedGrowthRateSummaryList,
PaginatedItemAttributeSummaryList,
PaginatedItemCategorySummaryList,
PaginatedItemFlingEffectSummaryList,
PaginatedItemPocketSummaryList,
PaginatedItemSummaryList,
PaginatedLanguageSummaryList,
PaginatedLocationAreaSummaryList,
PaginatedLocationSummaryList,
PaginatedMachineSummaryList,
PaginatedMoveBattleStyleSummaryList,
PaginatedMoveDamageClassSummaryList,
PaginatedMoveLearnMethodSummaryList,
PaginatedMoveMetaAilmentSummaryList,
PaginatedMoveMetaCategorySummaryList,
PaginatedMoveSummaryList,
PaginatedMoveTargetSummaryList,
PaginatedNatureSummaryList,
PaginatedPalParkAreaSummaryList,
PaginatedPokeathlonStatSummaryList,
PaginatedPokedexSummaryList,
PaginatedPokemonColorSummaryList,
PaginatedPokemonFormSummaryList,
PaginatedPokemonHabitatSummaryList,
PaginatedPokemonShapeSummaryList,
PaginatedPokemonSpeciesSummaryList,
PaginatedPokemonSummaryList,
PaginatedRegionSummaryList,
PaginatedStatSummaryList,
PaginatedSuperContestEffectSummaryList,
PaginatedTypeSummaryList,
PaginatedVersionGroupSummaryList,
PaginatedVersionSummaryList,
PalParkAreaDetail,
PokeathlonStatDetail,
PokedexDetail,
PokemonColorDetail,
PokemonDetail,
PokemonFormDetail,
PokemonHabitatDetail,
PokemonShapeDetail,
PokemonSpeciesDetail1,
RegionDetail,
StatDetail,
SuperContestEffectDetail,
TypeDetail,
VersionDetail4,
VersionGroupDetail1,
)
app = MCPProxy(
description="All the Pokémon data you'll ever need in one place, easily accessible through a modern free open-source RESTful API.\n\n## What is this?\n\nThis is a full RESTful API linked to an extensive database detailing everything about the Pokémon main game series.\n\nWe've covered everything from Pokémon to Berry Flavors.\n\n## Where do I start?\n\nWe have awesome [documentation](https://pokeapi.co/docs/v2) on how to use this API. It takes minutes to get started.\n\nThis API will always be publicly available and will never require any extensive setup process to consume.\n\nCreated by [**Paul Hallett**](https://github.com/phalt) and other [**PokéAPI contributors***](https://github.com/PokeAPI/pokeapi#contributing) around the world. Pokémon and Pokémon character names are trademarks of Nintendo.\n ",
title='PokéAPI',
version='2.7.0',
servers=[{'url': 'https://pokeapi.co'}],
)
@app.get(
'/api/v2/ability/',
description=""" Abilities provide passive effects for Pokémon in battle or in the overworld. Pokémon have multiple possible abilities but can have only one ability at a time. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Ability) for greater detail. """,
tags=['version_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def ability_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/ability/{id}/',
description=""" Abilities provide passive effects for Pokémon in battle or in the overworld. Pokémon have multiple possible abilities but can have only one ability at a time. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Ability) for greater detail. """,
tags=['pokemon_operations'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def ability_retrieve(id: str):
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/berry-firmness/',
description=""" Berries can be soft or hard. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Category:Berries_by_firmness) for greater detail. """,
tags=['berry_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def berry_firmness_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List berry firmness
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/berry-firmness/{id}/',
description=""" Berries can be soft or hard. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Category:Berries_by_firmness) for greater detail. """,
tags=['berry_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def berry_firmness_retrieve(id: str):
"""
Get berry by firmness
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/berry-flavor/',
description=""" Flavors determine whether a Pokémon will benefit or suffer from eating a berry based on their **nature**. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Flavor) for greater detail. """,
tags=['berry_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def berry_flavor_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List berry flavors
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/berry-flavor/{id}/',
description=""" Flavors determine whether a Pokémon will benefit or suffer from eating a berry based on their **nature**. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Flavor) for greater detail. """,
tags=['berry_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def berry_flavor_retrieve(id: str):
"""
Get berries by flavor
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/berry/',
description=""" Berries are small fruits that can provide HP and status condition restoration, stat enhancement, and even damage negation when eaten by Pokémon. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Berry) for greater detail. """,
tags=['berry_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def berry_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List berries
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/berry/{id}/',
description=""" Berries are small fruits that can provide HP and status condition restoration, stat enhancement, and even damage negation when eaten by Pokémon. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Berry) for greater detail. """,
tags=['berry_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def berry_retrieve(id: str):
"""
Get a berry
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/characteristic/',
description=""" Characteristics indicate which stat contains a Pokémon's highest IV. A Pokémon's Characteristic is determined by the remainder of its highest IV divided by 5 (gene_modulo). Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Characteristic) for greater detail. """,
tags=['characteristic_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def characteristic_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List charecterictics
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/characteristic/{id}/',
description=""" Characteristics indicate which stat contains a Pokémon's highest IV. A Pokémon's Characteristic is determined by the remainder of its highest IV divided by 5 (gene_modulo). Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Characteristic) for greater detail. """,
tags=['characteristic_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def characteristic_retrieve(id: str):
"""
Get characteristic
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/contest-effect/',
description=""" Contest effects refer to the effects of moves when used in contests. """,
tags=['contest_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def contest_effect_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List contest effects
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/contest-effect/{id}/',
description=""" Contest effects refer to the effects of moves when used in contests. """,
tags=['contest_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def contest_effect_retrieve(id: str):
"""
Get contest effect
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/contest-type/',
description=""" Contest types are categories judges used to weigh a Pokémon's condition in Pokémon contests. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Contest_condition) for greater detail. """,
tags=['contest_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def contest_type_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List contest types
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/contest-type/{id}/',
description=""" Contest types are categories judges used to weigh a Pokémon's condition in Pokémon contests. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Contest_condition) for greater detail. """,
tags=['contest_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def contest_type_retrieve(id: str):
"""
Get contest type
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/egg-group/',
description=""" Egg Groups are categories which determine which Pokémon are able to interbreed. Pokémon may belong to either one or two Egg Groups. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Egg_Group) for greater detail. """,
tags=['egg_group_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def egg_group_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List egg groups
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/egg-group/{id}/',
description=""" Egg Groups are categories which determine which Pokémon are able to interbreed. Pokémon may belong to either one or two Egg Groups. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Egg_Group) for greater detail. """,
tags=['egg_group_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def egg_group_retrieve(id: str):
"""
Get egg group
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/encounter-condition-value/',
description=""" Encounter condition values are the various states that an encounter condition can have, i.e., time of day can be either day or night. """,
tags=['encounter_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def encounter_condition_value_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List encounter condition values
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/encounter-condition-value/{id}/',
description=""" Encounter condition values are the various states that an encounter condition can have, i.e., time of day can be either day or night. """,
tags=['encounter_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def encounter_condition_value_retrieve(id: str):
"""
Get encounter condition value
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/encounter-condition/',
description=""" Conditions which affect what pokemon might appear in the wild, e.g., day or night. """,
tags=['encounter_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def encounter_condition_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List encounter conditions
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/encounter-condition/{id}/',
description=""" Conditions which affect what pokemon might appear in the wild, e.g., day or night. """,
tags=['encounter_management', 'pokemon_encounters_operations'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def encounter_condition_retrieve(id: str):
"""
Get encounter condition
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/encounter-method/',
description=""" Methods by which the player might can encounter Pokémon in the wild, e.g., walking in tall grass. Check out Bulbapedia for greater detail. """,
tags=['encounter_management', 'pokemon_encounters_operations'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def encounter_method_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List encounter methods
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/encounter-method/{id}/',
description=""" Methods by which the player might can encounter Pokémon in the wild, e.g., walking in tall grass. Check out Bulbapedia for greater detail. """,
tags=['encounter_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def encounter_method_retrieve(id: str):
"""
Get encounter method
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/evolution-chain/',
description=""" Evolution chains are essentially family trees. They start with the lowest stage within a family and detail evolution conditions for each as well as Pokémon they can evolve into up through the hierarchy. """,
tags=['evolution_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def evolution_chain_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List evolution chains
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/evolution-chain/{id}/',
description=""" Evolution chains are essentially family trees. They start with the lowest stage within a family and detail evolution conditions for each as well as Pokémon they can evolve into up through the hierarchy. """,
tags=['evolution_management', 'pokemon_operations'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def evolution_chain_retrieve(id: str):
"""
Get evolution chain
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/evolution-trigger/',
description=""" Evolution triggers are the events and conditions that cause a Pokémon to evolve. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Methods_of_evolution) for greater detail. """,
tags=['evolution_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def evolution_trigger_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List evolution triggers
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/evolution-trigger/{id}/',
description=""" Evolution triggers are the events and conditions that cause a Pokémon to evolve. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Methods_of_evolution) for greater detail. """,
tags=['evolution_management', 'pokemon_species_operations'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def evolution_trigger_retrieve(id: str):
"""
Get evolution trigger
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/gender/',
description=""" Genders were introduced in Generation II for the purposes of breeding Pokémon but can also result in visual differences or even different evolutionary lines. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Gender) for greater detail. """,
tags=['gender_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def gender_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List genders
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/gender/{id}/',
description=""" Genders were introduced in Generation II for the purposes of breeding Pokémon but can also result in visual differences or even different evolutionary lines. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Gender) for greater detail. """,
tags=['gender_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def gender_retrieve(id: str):
"""
Get gender
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/generation/',
description=""" A generation is a grouping of the Pokémon games that separates them based on the Pokémon they include. In each generation, a new set of Pokémon, Moves, Abilities and Types that did not exist in the previous generation are released. """,
tags=['generation_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def generation_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List genrations
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/generation/{id}/',
description=""" A generation is a grouping of the Pokémon games that separates them based on the Pokémon they include. In each generation, a new set of Pokémon, Moves, Abilities and Types that did not exist in the previous generation are released. """,
tags=['generation_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def generation_retrieve(id: str):
"""
Get genration
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/growth-rate/',
description=""" Growth rates are the speed with which Pokémon gain levels through experience. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Experience) for greater detail. """,
tags=['growth_rate_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def growth_rate_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List growth rates
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/growth-rate/{id}/',
description=""" Growth rates are the speed with which Pokémon gain levels through experience. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Experience) for greater detail. """,
tags=['growth_rate_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def growth_rate_retrieve(id: str):
"""
Get growth rate
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/item-attribute/',
description=""" Item attributes define particular aspects of items, e.g."usable in battle" or "consumable". """,
tags=['item_attribute_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def item_attribute_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List item attributes
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/item-attribute/{id}/',
description=""" Item attributes define particular aspects of items, e.g."usable in battle" or "consumable". """,
tags=['item_attribute_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def item_attribute_retrieve(id: str):
"""
Get item attribute
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/item-category/',
description=""" Item categories determine where items will be placed in the players bag. """,
tags=['item_category_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def item_category_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List item categories
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/item-category/{id}/',
description=""" Item categories determine where items will be placed in the players bag. """,
tags=['item_category_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def item_category_retrieve(id: str):
"""
Get item category
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/item-fling-effect/',
description=""" The various effects of the move"Fling" when used with different items. """,
tags=['item_fling_effect_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def item_fling_effect_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List item fling effects
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/item-fling-effect/{id}/',
description=""" The various effects of the move"Fling" when used with different items. """,
tags=['item_fling_effect_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def item_fling_effect_retrieve(id: str):
"""
Get item fling effect
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/item-pocket/',
description=""" Pockets within the players bag used for storing items by category. """,
tags=['item_pocket_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def item_pocket_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List item pockets
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/item-pocket/{id}/',
description=""" Pockets within the players bag used for storing items by category. """,
tags=['item_pocket_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def item_pocket_retrieve(id: str):
"""
Get item pocket
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/item/',
description=""" An item is an object in the games which the player can pick up, keep in their bag, and use in some manner. They have various uses, including healing, powering up, helping catch Pokémon, or to access a new area. """,
tags=[
'item_management',
'item_category_management',
'item_attribute_management',
'item_pocket_management',
'item_fling_effect_management',
],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def item_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List items
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/item/{id}/',
description=""" An item is an object in the games which the player can pick up, keep in their bag, and use in some manner. They have various uses, including healing, powering up, helping catch Pokémon, or to access a new area. """,
tags=['item_management', 'item_category_management', 'item_attribute_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def item_retrieve(id: str):
"""
Get item
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/language/',
description=""" Languages for translations of API resource information. """,
tags=['language_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def language_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List languages
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/language/{id}/',
description=""" Languages for translations of API resource information. """,
tags=['language_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def language_retrieve(id: str):
"""
Get language
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/location-area/',
description=""" Location areas are sections of areas, such as floors in a building or cave. Each area has its own set of possible Pokémon encounters. """,
tags=['location_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def location_area_list(limit: Optional[int] = None, offset: Optional[int] = None):
"""
List location areas
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/location-area/{id}/',
description=""" Location areas are sections of areas, such as floors in a building or cave. Each area has its own set of possible Pokémon encounters. """,
tags=['location_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def location_area_retrieve(id: int):
"""
Get location area
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/location/',
description=""" Locations that can be visited within the games. Locations make up sizable portions of regions, like cities or routes. """,
tags=['location_management', 'region_operations'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def location_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List locations
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/location/{id}/',
description=""" Locations that can be visited within the games. Locations make up sizable portions of regions, like cities or routes. """,
tags=['location_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def location_retrieve(id: str):
"""
Get location
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/machine/',
description=""" Machines are the representation of items that teach moves to Pokémon. They vary from version to version, so it is not certain that one specific TM or HM corresponds to a single Machine. """,
tags=['machine_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def machine_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List machines
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/machine/{id}/',
description=""" Machines are the representation of items that teach moves to Pokémon. They vary from version to version, so it is not certain that one specific TM or HM corresponds to a single Machine. """,
tags=['machine_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def machine_retrieve(id: str):
"""
Get machine
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/move-ailment/',
description=""" Move Ailments are status conditions caused by moves used during battle. See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Status_condition) for greater detail. """,
tags=['move_meta_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def move_ailment_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List move meta ailments
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/move-ailment/{id}/',
description=""" Move Ailments are status conditions caused by moves used during battle. See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Status_condition) for greater detail. """,
tags=['move_meta_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def move_ailment_retrieve(id: str):
"""
Get move meta ailment
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/move-battle-style/',
description=""" Styles of moves when used in the Battle Palace. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Battle_Frontier_(Generation_III)) for greater detail. """,
tags=['move_meta_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def move_battle_style_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List move battle styles
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/move-battle-style/{id}/',
description=""" Styles of moves when used in the Battle Palace. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Battle_Frontier_(Generation_III)) for greater detail. """,
tags=['move_meta_management', 'move_operations'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def move_battle_style_retrieve(id: str):
"""
Get move battle style
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/move-category/',
description=""" Very general categories that loosely group move effects. """,
tags=['move_meta_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def move_category_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List move meta categories
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/move-category/{id}/',
description=""" Very general categories that loosely group move effects. """,
tags=['move_meta_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def move_category_retrieve(id: str):
"""
Get move meta category
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/move-damage-class/',
description=""" Damage classes moves can have, e.g. physical, special, or non-damaging. """,
tags=['move_meta_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def move_damage_class_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List move damage classes
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/move-damage-class/{id}/',
description=""" Damage classes moves can have, e.g. physical, special, or non-damaging. """,
tags=['move_meta_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def move_damage_class_retrieve(id: str):
"""
Get move damage class
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/move-learn-method/',
description=""" Methods by which Pokémon can learn moves. """,
tags=['move_meta_management', 'move_operations'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def move_learn_method_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List move learn methods
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/move-learn-method/{id}/',
description=""" Methods by which Pokémon can learn moves. """,
tags=['move_meta_management', 'move_operations'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def move_learn_method_retrieve(id: str):
"""
Get move learn method
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/move-target/',
description=""" Targets moves can be directed at during battle. Targets can be Pokémon, environments or even other moves. """,
tags=['move_operations'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def move_target_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List move targets
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/move-target/{id}/',
description=""" Targets moves can be directed at during battle. Targets can be Pokémon, environments or even other moves. """,
tags=['move_operations', 'move_meta_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def move_target_retrieve(id: str):
"""
Get move target
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/move/',
description=""" Moves are the skills of Pokémon in battle. In battle, a Pokémon uses one move each turn. Some moves (including those learned by Hidden Machine) can be used outside of battle as well, usually for the purpose of removing obstacles or exploring new areas. """,
tags=['move_operations'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def move_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List moves
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/move/{id}/',
description=""" Moves are the skills of Pokémon in battle. In battle, a Pokémon uses one move each turn. Some moves (including those learned by Hidden Machine) can be used outside of battle as well, usually for the purpose of removing obstacles or exploring new areas. """,
tags=['move_operations', 'move_meta_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def move_retrieve(id: str):
"""
Get move
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/nature/',
description=""" Natures influence how a Pokémon's stats grow. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Nature) for greater detail. """,
tags=['nature_operations'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def nature_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List natures
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/nature/{id}/',
description=""" Natures influence how a Pokémon's stats grow. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Nature) for greater detail. """,
tags=['nature_operations'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def nature_retrieve(id: str):
"""
Get nature
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/pal-park-area/',
description=""" Areas used for grouping Pokémon encounters in Pal Park. They're like habitats that are specific to Pal Park. """,
tags=['pal_park_operations'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def pal_park_area_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List pal park areas
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/pal-park-area/{id}/',
description=""" Areas used for grouping Pokémon encounters in Pal Park. They're like habitats that are specific to Pal Park. """,
tags=['pal_park_operations'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def pal_park_area_retrieve(id: str):
"""
Get pal park area
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/pokeathlon-stat/',
description=""" Pokeathlon Stats are different attributes of a Pokémon's performance in Pokéathlons. In Pokéathlons, competitions happen on different courses; one for each of the different Pokéathlon stats. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9athlon) for greater detail. """,
tags=['pokeathlon_operations'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def pokeathlon_stat_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List pokeathlon stats
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/pokeathlon-stat/{id}/',
description=""" Pokeathlon Stats are different attributes of a Pokémon's performance in Pokéathlons. In Pokéathlons, competitions happen on different courses; one for each of the different Pokéathlon stats. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9athlon) for greater detail. """,
tags=['pokeathlon_operations', 'stat_operations'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def pokeathlon_stat_retrieve(id: str):
"""
Get pokeathlon stat
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/pokedex/',
description=""" A Pokédex is a handheld electronic encyclopedia device; one which is capable of recording and retaining information of the various Pokémon in a given region with the exception of the national dex and some smaller dexes related to portions of a region. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Pokedex) for greater detail. """,
tags=['pokedex_operations', 'pokemon_operations'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def pokedex_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List pokedex
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/pokedex/{id}/',
description=""" A Pokédex is a handheld electronic encyclopedia device; one which is capable of recording and retaining information of the various Pokémon in a given region with the exception of the national dex and some smaller dexes related to portions of a region. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Pokedex) for greater detail. """,
tags=['pokedex_operations', 'pokemon_operations'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def pokedex_retrieve(id: str):
"""
Get pokedex
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/pokemon-color/',
description=""" Colors used for sorting Pokémon in a Pokédex. The color listed in the Pokédex is usually the color most apparent or covering each Pokémon's body. No orange category exists; Pokémon that are primarily orange are listed as red or brown. """,
tags=['pokemon_color_operations'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def pokemon_color_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List pokemon colors
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/pokemon-color/{id}/',
description=""" Colors used for sorting Pokémon in a Pokédex. The color listed in the Pokédex is usually the color most apparent or covering each Pokémon's body. No orange category exists; Pokémon that are primarily orange are listed as red or brown. """,
tags=['pokemon_color_operations'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def pokemon_color_retrieve(id: str):
"""
Get pokemon color
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/pokemon-form/',
description=""" Some Pokémon may appear in one of multiple, visually different forms. These differences are purely cosmetic. For variations within a Pokémon species, which do differ in more than just visuals, the 'Pokémon' entity is used to represent such a variety. """,
tags=['pokemon_form_operations'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def pokemon_form_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List pokemon forms
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/pokemon-form/{id}/',
description=""" Some Pokémon may appear in one of multiple, visually different forms. These differences are purely cosmetic. For variations within a Pokémon species, which do differ in more than just visuals, the 'Pokémon' entity is used to represent such a variety. """,
tags=['pokemon_form_operations'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def pokemon_form_retrieve(id: str):
"""
Get pokemon form
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/pokemon-habitat/',
description=""" Habitats are generally different terrain Pokémon can be found in but can also be areas designated for rare or legendary Pokémon. """,
tags=['pokemon_habitat_operations'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def pokemon_habitat_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List pokemom habitas
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/pokemon-habitat/{id}/',
description=""" Habitats are generally different terrain Pokémon can be found in but can also be areas designated for rare or legendary Pokémon. """,
tags=['pokemon_habitat_operations'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def pokemon_habitat_retrieve(id: str):
"""
Get pokemom habita
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/pokemon-shape/',
description=""" Shapes used for sorting Pokémon in a Pokédex. """,
tags=['pokemon_shape_operations'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def pokemon_shape_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List pokemon shapes
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/pokemon-shape/{id}/',
description=""" Shapes used for sorting Pokémon in a Pokédex. """,
tags=['pokemon_shape_operations'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def pokemon_shape_retrieve(id: str):
"""
Get pokemon shape
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/pokemon-species/',
description=""" A Pokémon Species forms the basis for at least one Pokémon. Attributes of a Pokémon species are shared across all varieties of Pokémon within the species. A good example is Wormadam; Wormadam is the species which can be found in three different varieties, Wormadam-Trash, Wormadam-Sandy and Wormadam-Plant. """,
tags=['pokemon_species_operations', 'pokemon_operations'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def pokemon_species_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List pokemon species
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/pokemon-species/{id}/',
description=""" A Pokémon Species forms the basis for at least one Pokémon. Attributes of a Pokémon species are shared across all varieties of Pokémon within the species. A good example is Wormadam; Wormadam is the species which can be found in three different varieties, Wormadam-Trash, Wormadam-Sandy and Wormadam-Plant. """,
tags=['pokemon_species_operations', 'pokemon_operations'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def pokemon_species_retrieve(id: str):
"""
Get pokemon species
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/pokemon/',
description=""" Pokémon are the creatures that inhabit the world of the Pokémon games. They can be caught using Pokéballs and trained by battling with other Pokémon. Each Pokémon belongs to a specific species but may take on a variant which makes it differ from other Pokémon of the same species, such as base stats, available abilities and typings. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9mon_(species)) for greater detail. """,
tags=[
'pokemon_operations',
'pokemon_species_operations',
'pokemon_form_operations',
],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def pokemon_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List pokemon
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/pokemon/{id}/',
description=""" Pokémon are the creatures that inhabit the world of the Pokémon games. They can be caught using Pokéballs and trained by battling with other Pokémon. Each Pokémon belongs to a specific species but may take on a variant which makes it differ from other Pokémon of the same species, such as base stats, available abilities and typings. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9mon_(species)) for greater detail. """,
tags=['pokemon_operations', 'pokemon_species_operations', 'pokedex_operations'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def pokemon_retrieve(id: str):
"""
Get pokemon
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/pokemon/{pokemon_id}/encounters',
description=""" Handles Pokemon Encounters as a sub-resource. """,
tags=['encounter_management', 'pokemon_encounters_operations'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def pokemon_encounters_retrieve(pokemon_id: constr(pattern=r'^\d+$')):
"""
Get pokemon encounter
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/region/',
description=""" A region is an organized area of the Pokémon world. Most often, the main difference between regions is the species of Pokémon that can be encountered within them. """,
tags=['region_operations'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def region_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List regions
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/region/{id}/',
description=""" A region is an organized area of the Pokémon world. Most often, the main difference between regions is the species of Pokémon that can be encountered within them. """,
tags=['region_operations', 'location_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def region_retrieve(id: str):
"""
Get region
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/stat/',
description=""" Stats determine certain aspects of battles. Each Pokémon has a value for each stat which grows as they gain levels and can be altered momentarily by effects in battles. """,
tags=['stat_operations', 'pokemon_operations'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def stat_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List stats
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/stat/{id}/',
description=""" Stats determine certain aspects of battles. Each Pokémon has a value for each stat which grows as they gain levels and can be altered momentarily by effects in battles. """,
tags=['stat_operations', 'ability_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def stat_retrieve(id: str):
"""
Get stat
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/super-contest-effect/',
description=""" Super contest effects refer to the effects of moves when used in super contests. """,
tags=[
'super_contest_effect_operations',
'super_contest_effect_management',
'contest_management',
],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def super_contest_effect_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List super contest effects
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/super-contest-effect/{id}/',
description=""" Super contest effects refer to the effects of moves when used in super contests. """,
tags=['super_contest_effect_operations', 'super_contest_effect_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def super_contest_effect_retrieve(id: str):
"""
Get super contest effect
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/type/',
description=""" Types are properties for Pokémon and their moves. Each type has three properties: which types of Pokémon it is super effective against, which types of Pokémon it is not very effective against, and which types of Pokémon it is completely ineffective against. """,
tags=['type_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def type_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List types
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/type/{id}/',
description=""" Types are properties for Pokémon and their moves. Each type has three properties: which types of Pokémon it is super effective against, which types of Pokémon it is not very effective against, and which types of Pokémon it is completely ineffective against. """,
tags=['type_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def type_retrieve(id: str):
"""
Get types
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/version-group/',
description=""" Version groups categorize highly similar versions of the games. """,
tags=['version_group_management', 'version_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def version_group_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List version groups
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/version-group/{id}/',
description=""" Version groups categorize highly similar versions of the games. """,
tags=['version_group_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def version_group_retrieve(id: str):
"""
Get version group
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/version/',
description=""" Versions of the games, e.g., Red, Blue or Yellow. """,
tags=['version_management', 'version_group_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def version_list(
limit: Optional[int] = None, offset: Optional[int] = None, q: Optional[str] = None
):
"""
List versions
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/v2/version/{id}/',
description=""" Versions of the games, e.g., Red, Blue or Yellow. """,
tags=['version_management', 'version_group_management'],
security=[
APIKeyCookie(name="sessionid"),
HTTPBasic(name="None"),
],
)
def version_retrieve(id: str):
"""
Get version
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="MCP Server")
parser.add_argument(
"transport", choices=["stdio", "sse"], help="Transport mode (stdio or sse)"
)
args = parser.parse_args()
if "CONFIG_PATH" in os.environ:
config_path = os.environ["CONFIG_PATH"]
app.load_configuration(config_path)
if "CONFIG" in os.environ:
config = os.environ["CONFIG"]
app.load_configuration_from_string(config)
if "SECURITY" in os.environ:
security_params = BaseSecurity.parse_security_parameters_from_env(
os.environ,
)
app.set_security_params(security_params)
app.mcp.run(transport=args.transport)