Commit
·
a58f82e
1
Parent(s):
119037f
add: initialize repo
Browse files- .gitignore +5 -188
- .pre-commit-config.yaml +21 -0
- .python-version +1 -0
- pmcp/__init__.py +0 -0
- pyproject.toml +21 -0
- uv.lock +0 -0
.gitignore
CHANGED
|
@@ -1,194 +1,11 @@
|
|
| 1 |
-
#
|
| 2 |
__pycache__/
|
| 3 |
-
*.py[
|
| 4 |
-
*$py.class
|
| 5 |
-
|
| 6 |
-
# C extensions
|
| 7 |
-
*.so
|
| 8 |
-
|
| 9 |
-
# Distribution / packaging
|
| 10 |
-
.Python
|
| 11 |
build/
|
| 12 |
-
develop-eggs/
|
| 13 |
dist/
|
| 14 |
-
downloads/
|
| 15 |
-
eggs/
|
| 16 |
-
.eggs/
|
| 17 |
-
lib/
|
| 18 |
-
lib64/
|
| 19 |
-
parts/
|
| 20 |
-
sdist/
|
| 21 |
-
var/
|
| 22 |
wheels/
|
| 23 |
-
|
| 24 |
-
*.egg-info
|
| 25 |
-
.installed.cfg
|
| 26 |
-
*.egg
|
| 27 |
-
MANIFEST
|
| 28 |
-
|
| 29 |
-
# PyInstaller
|
| 30 |
-
# Usually these files are written by a python script from a template
|
| 31 |
-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
| 32 |
-
*.manifest
|
| 33 |
-
*.spec
|
| 34 |
-
|
| 35 |
-
# Installer logs
|
| 36 |
-
pip-log.txt
|
| 37 |
-
pip-delete-this-directory.txt
|
| 38 |
-
|
| 39 |
-
# Unit test / coverage reports
|
| 40 |
-
htmlcov/
|
| 41 |
-
.tox/
|
| 42 |
-
.nox/
|
| 43 |
-
.coverage
|
| 44 |
-
.coverage.*
|
| 45 |
-
.cache
|
| 46 |
-
nosetests.xml
|
| 47 |
-
coverage.xml
|
| 48 |
-
*.cover
|
| 49 |
-
*.py,cover
|
| 50 |
-
.hypothesis/
|
| 51 |
-
.pytest_cache/
|
| 52 |
-
cover/
|
| 53 |
-
|
| 54 |
-
# Translations
|
| 55 |
-
*.mo
|
| 56 |
-
*.pot
|
| 57 |
-
|
| 58 |
-
# Django stuff:
|
| 59 |
-
*.log
|
| 60 |
-
local_settings.py
|
| 61 |
-
db.sqlite3
|
| 62 |
-
db.sqlite3-journal
|
| 63 |
-
|
| 64 |
-
# Flask stuff:
|
| 65 |
-
instance/
|
| 66 |
-
.webassets-cache
|
| 67 |
-
|
| 68 |
-
# Scrapy stuff:
|
| 69 |
-
.scrapy
|
| 70 |
-
|
| 71 |
-
# Sphinx documentation
|
| 72 |
-
docs/_build/
|
| 73 |
-
|
| 74 |
-
# PyBuilder
|
| 75 |
-
.pybuilder/
|
| 76 |
-
target/
|
| 77 |
-
|
| 78 |
-
# Jupyter Notebook
|
| 79 |
-
.ipynb_checkpoints
|
| 80 |
-
|
| 81 |
-
# IPython
|
| 82 |
-
profile_default/
|
| 83 |
-
ipython_config.py
|
| 84 |
-
|
| 85 |
-
# pyenv
|
| 86 |
-
# For a library or package, you might want to ignore these files since the code is
|
| 87 |
-
# intended to run in multiple environments; otherwise, check them in:
|
| 88 |
-
# .python-version
|
| 89 |
-
|
| 90 |
-
# pipenv
|
| 91 |
-
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
| 92 |
-
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
| 93 |
-
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
| 94 |
-
# install all needed dependencies.
|
| 95 |
-
#Pipfile.lock
|
| 96 |
-
|
| 97 |
-
# UV
|
| 98 |
-
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
| 99 |
-
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
| 100 |
-
# commonly ignored for libraries.
|
| 101 |
-
#uv.lock
|
| 102 |
-
|
| 103 |
-
# poetry
|
| 104 |
-
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
| 105 |
-
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
| 106 |
-
# commonly ignored for libraries.
|
| 107 |
-
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
| 108 |
-
#poetry.lock
|
| 109 |
|
| 110 |
-
#
|
| 111 |
-
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
| 112 |
-
#pdm.lock
|
| 113 |
-
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
| 114 |
-
# in version control.
|
| 115 |
-
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
|
| 116 |
-
.pdm.toml
|
| 117 |
-
.pdm-python
|
| 118 |
-
.pdm-build/
|
| 119 |
-
|
| 120 |
-
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
| 121 |
-
__pypackages__/
|
| 122 |
-
|
| 123 |
-
# Celery stuff
|
| 124 |
-
celerybeat-schedule
|
| 125 |
-
celerybeat.pid
|
| 126 |
-
|
| 127 |
-
# SageMath parsed files
|
| 128 |
-
*.sage.py
|
| 129 |
-
|
| 130 |
-
# Environments
|
| 131 |
-
.env
|
| 132 |
.venv
|
| 133 |
-
env/
|
| 134 |
-
venv/
|
| 135 |
-
ENV/
|
| 136 |
-
env.bak/
|
| 137 |
-
venv.bak/
|
| 138 |
-
|
| 139 |
-
# Spyder project settings
|
| 140 |
-
.spyderproject
|
| 141 |
-
.spyproject
|
| 142 |
-
|
| 143 |
-
# Rope project settings
|
| 144 |
-
.ropeproject
|
| 145 |
-
|
| 146 |
-
# mkdocs documentation
|
| 147 |
-
/site
|
| 148 |
-
|
| 149 |
-
# mypy
|
| 150 |
-
.mypy_cache/
|
| 151 |
-
.dmypy.json
|
| 152 |
-
dmypy.json
|
| 153 |
-
|
| 154 |
-
# Pyre type checker
|
| 155 |
-
.pyre/
|
| 156 |
-
|
| 157 |
-
# pytype static type analyzer
|
| 158 |
-
.pytype/
|
| 159 |
-
|
| 160 |
-
# Cython debug symbols
|
| 161 |
-
cython_debug/
|
| 162 |
-
|
| 163 |
-
# PyCharm
|
| 164 |
-
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
| 165 |
-
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
| 166 |
-
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
| 167 |
-
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
| 168 |
-
#.idea/
|
| 169 |
-
|
| 170 |
-
# Abstra
|
| 171 |
-
# Abstra is an AI-powered process automation framework.
|
| 172 |
-
# Ignore directories containing user credentials, local state, and settings.
|
| 173 |
-
# Learn more at https://abstra.io/docs
|
| 174 |
-
.abstra/
|
| 175 |
-
|
| 176 |
-
# Visual Studio Code
|
| 177 |
-
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
| 178 |
-
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
| 179 |
-
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
| 180 |
-
# you could uncomment the following to ignore the enitre vscode folder
|
| 181 |
-
# .vscode/
|
| 182 |
-
|
| 183 |
-
# Ruff stuff:
|
| 184 |
-
.ruff_cache/
|
| 185 |
-
|
| 186 |
-
# PyPI configuration file
|
| 187 |
-
.pypirc
|
| 188 |
-
|
| 189 |
-
# Cursor
|
| 190 |
-
# Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
|
| 191 |
-
# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
|
| 192 |
-
# refer to https://docs.cursor.com/context/ignore-files
|
| 193 |
-
.cursorignore
|
| 194 |
-
.cursorindexingignore
|
|
|
|
| 1 |
+
# Python-generated files
|
| 2 |
__pycache__/
|
| 3 |
+
*.py[oc]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
build/
|
|
|
|
| 5 |
dist/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
wheels/
|
| 7 |
+
.idea/
|
| 8 |
+
*.egg-info
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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-0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# See https://pre-commit.com for more information
|
| 2 |
+
# See https://pre-commit.com/hooks.html for more hooks
|
| 3 |
+
repos:
|
| 4 |
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
| 5 |
+
rev: v3.2.0
|
| 6 |
+
hooks:
|
| 7 |
+
- id: trailing-whitespace
|
| 8 |
+
- id: end-of-file-fixer
|
| 9 |
+
- id: check-yaml
|
| 10 |
+
- id: check-added-large-files
|
| 11 |
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
| 12 |
+
# Ruff version.
|
| 13 |
+
rev: v0.11.10
|
| 14 |
+
hooks:
|
| 15 |
+
# Run the linter.
|
| 16 |
+
- id: ruff-check
|
| 17 |
+
types_or: [ python, pyi ]
|
| 18 |
+
args: [ --fix ]
|
| 19 |
+
# Run the formatter.
|
| 20 |
+
- id: ruff-format
|
| 21 |
+
types_or: [ python, pyi ]
|
.python-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
3.12
|
pmcp/__init__.py
ADDED
|
File without changes
|
pyproject.toml
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[project]
|
| 2 |
+
name = "pmcp"
|
| 3 |
+
version = "0.1.0"
|
| 4 |
+
description = "Add your description here"
|
| 5 |
+
readme = "README.md"
|
| 6 |
+
requires-python = ">=3.12"
|
| 7 |
+
dependencies = [
|
| 8 |
+
"gradio[mcp]>=5.32.0",
|
| 9 |
+
"langchain-mcp-adapters>=0.1.1",
|
| 10 |
+
"langchain-openai>=0.3.18",
|
| 11 |
+
"langgraph>=0.4.7",
|
| 12 |
+
"langgraph-checkpoint-sqlite>=2.0.10",
|
| 13 |
+
"mcp>=1.9.0",
|
| 14 |
+
"smolagents[litellm,mcp,toolkit]>=1.17.0",
|
| 15 |
+
]
|
| 16 |
+
|
| 17 |
+
[dependency-groups]
|
| 18 |
+
dev = [
|
| 19 |
+
"pre-commit>=4.2.0",
|
| 20 |
+
"ruff>=0.11.12",
|
| 21 |
+
]
|
uv.lock
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|