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

1# -*- coding: utf-8 -*- 

2"""Location: ./mcpgateway/plugins/tools/models.py 

3Copyright 2025 

4SPDX-License-Identifier: Apache-2.0 

5Authors: Fred Araujo 

6 

7MCP Plugins CLI models for schema validation. 

8This module defines models for schema validation. 

9""" 

10 

11# Standard 

12 

13# Third-Party 

14from pydantic import BaseModel 

15 

16 

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 """ 

22 

23 package: str 

24 repository: str 

25 extras: list[str] | None = None 

26 

27 

28class InstallManifest(BaseModel): 

29 """ 

30 An install manifest containing a list of records describing what plugin 

31 packages and dependencies to be installed. 

32 """ 

33 

34 packages: list[InstallManifestPackage]