Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitedeb262

Browse files
authored
Copier is now optional (#1630)
Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>
1 parent8ed4f20 commitedeb262

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

‎mcpgateway/plugins/tools/cli.py‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
fromtypingimportOptional
3434

3535
# Third-Party
36-
fromcopierimportrun_copy
3736
importtyper
3837
fromtyping_extensionsimportAnnotated
3938

@@ -143,6 +142,12 @@ def bootstrap(
143142
defaults: Bootstrap with defaults.
144143
dry_run: Run but do not make any changes.
145144
"""
145+
try:
146+
fromcopierimportrun_copy
147+
exceptImportError:
148+
logger.error("copier is not installed. Install with: pip install mcp-contextforge-gateway[templating]")
149+
raisetyper.Exit(1)
150+
146151
try:
147152
ifcommand_exists("git"):
148153
run_copy(

‎pyproject.toml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ dependencies = [
4949
"aiohttp>=3.13.2",
5050
"alembic>=1.17.2",
5151
"argon2-cffi>=25.1.0",
52-
"copier>=9.11.0",
5352
"cryptography>=46.0.3",
5453
"fastapi>=0.124.4",
5554
"filelock>=3.20.0",
@@ -221,6 +220,11 @@ asyncpg = [
221220
"asyncpg>=0.31.0",
222221
]
223222

223+
# Plugin templating tools (optional) - copier pulls jinja2-ansible-filters which is GPL licensed
224+
templating = [
225+
"copier>=9.11.0",
226+
]
227+
224228
# Agent Lifecycle Toolkit(optional)
225229
altk = [
226230
"agent-lifecycle-toolkit>=0.9.0",

‎uv.lock‎

Lines changed: 6 additions & 4 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp