Coverage for mcpgateway / plugins / tools / models.py: 100%
7 statements
« prev ^ index » next coverage.py v7.13.1, created at 2026-02-11 07:10 +0000
« prev ^ index » next coverage.py v7.13.1, created at 2026-02-11 07:10 +0000
1# -*- coding: utf-8 -*-
2"""Location: ./mcpgateway/plugins/tools/models.py
3Copyright 2025
4SPDX-License-Identifier: Apache-2.0
5Authors: Fred Araujo
7MCP Plugins CLI models for schema validation.
8This module defines models for schema validation.
9"""
11# Standard
13# Third-Party
14from pydantic import BaseModel
17class InstallManifestPackage(BaseModel):
18 """
19 A single install manifest record containing the specification of what plugin
20 packages and dependencies to be installed from a repository.
21 """
23 package: str
24 repository: str
25 extras: list[str] | None = None
28class InstallManifest(BaseModel):
29 """
30 An install manifest containing a list of records describing what plugin
31 packages and dependencies to be installed.
32 """
34 packages: list[InstallManifestPackage]