mcp-automl 0.1.0__tar.gz → 0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mcp_automl-0.1.2/.github/workflows/publish.yml +90 -0
- mcp_automl-0.1.2/.github/workflows/test.yml +77 -0
- mcp_automl-0.1.2/LICENSE +21 -0
- {mcp_automl-0.1.0 → mcp_automl-0.1.2}/PKG-INFO +4 -2
- {mcp_automl-0.1.0 → mcp_automl-0.1.2}/pyproject.toml +5 -2
- mcp_automl-0.1.2/uv.lock +2278 -0
- mcp_automl-0.1.0/uv.lock +0 -2836
- {mcp_automl-0.1.0 → mcp_automl-0.1.2}/.gitignore +0 -0
- {mcp_automl-0.1.0 → mcp_automl-0.1.2}/.python-version +0 -0
- {mcp_automl-0.1.0 → mcp_automl-0.1.2}/README.md +0 -0
- {mcp_automl-0.1.0 → mcp_automl-0.1.2}/skill/data-science-workflow/SKILL.md +0 -0
- {mcp_automl-0.1.0 → mcp_automl-0.1.2}/src/mcp_automl/__init__.py +0 -0
- {mcp_automl-0.1.0 → mcp_automl-0.1.2}/src/mcp_automl/__main__.py +0 -0
- {mcp_automl-0.1.0 → mcp_automl-0.1.2}/src/mcp_automl/server.py +0 -0
- {mcp_automl-0.1.0 → mcp_automl-0.1.2}/tests/test_server.py +0 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
version:
|
|
7
|
+
description: 'New version number (e.g., 0.1.1)'
|
|
8
|
+
required: true
|
|
9
|
+
type: string
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build-and-publish:
|
|
13
|
+
name: Build and publish
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
if: github.ref == 'refs/heads/main'
|
|
16
|
+
permissions:
|
|
17
|
+
contents: write
|
|
18
|
+
id-token: write
|
|
19
|
+
steps:
|
|
20
|
+
- name: Checkout source code
|
|
21
|
+
uses: actions/checkout@v4
|
|
22
|
+
with:
|
|
23
|
+
fetch-depth: 0
|
|
24
|
+
|
|
25
|
+
- name: Install uv
|
|
26
|
+
uses: astral-sh/setup-uv@v5
|
|
27
|
+
with:
|
|
28
|
+
version: "latest"
|
|
29
|
+
|
|
30
|
+
- name: Set up Python
|
|
31
|
+
uses: actions/setup-python@v5
|
|
32
|
+
with:
|
|
33
|
+
python-version-file: ".python-version"
|
|
34
|
+
|
|
35
|
+
- name: Validate version
|
|
36
|
+
env:
|
|
37
|
+
NEW_VERSION: ${{ inputs.version }}
|
|
38
|
+
PACKAGE_NAME: "mcp-automl"
|
|
39
|
+
run: |
|
|
40
|
+
pip install packaging
|
|
41
|
+
echo "Fetching latest version from PyPI..."
|
|
42
|
+
LATEST_VERSION=$(curl -s https://pypi.org/pypi/$PACKAGE_NAME/json | python3 -c "import sys, json; print(json.load(sys.stdin)['info']['version'])" 2>/dev/null || echo "0.0.0")
|
|
43
|
+
|
|
44
|
+
echo "Latest version on PyPI: $LATEST_VERSION"
|
|
45
|
+
echo "New version: $NEW_VERSION"
|
|
46
|
+
|
|
47
|
+
if [ "$LATEST_VERSION" != "0.0.0" ]; then
|
|
48
|
+
python3 -c "
|
|
49
|
+
from packaging import version
|
|
50
|
+
import sys
|
|
51
|
+
|
|
52
|
+
latest = version.parse('$LATEST_VERSION')
|
|
53
|
+
new = version.parse('$NEW_VERSION')
|
|
54
|
+
|
|
55
|
+
if new <= latest:
|
|
56
|
+
print(f'Error: New version {new} must be greater than latest version {latest}')
|
|
57
|
+
sys.exit(1)
|
|
58
|
+
"
|
|
59
|
+
fi
|
|
60
|
+
|
|
61
|
+
- name: Update version in pyproject.toml
|
|
62
|
+
env:
|
|
63
|
+
NEW_VERSION: ${{ inputs.version }}
|
|
64
|
+
run: |
|
|
65
|
+
# Use sed to update the version line.
|
|
66
|
+
# Assumes version = "..." is near the top under [project]
|
|
67
|
+
sed -i "s/^version = \".*\"/version = \"$NEW_VERSION\"/" pyproject.toml
|
|
68
|
+
|
|
69
|
+
# Verify the change
|
|
70
|
+
grep "version = \"$NEW_VERSION\"" pyproject.toml
|
|
71
|
+
|
|
72
|
+
- name: Commit and Push Tag
|
|
73
|
+
env:
|
|
74
|
+
NEW_VERSION: ${{ inputs.version }}
|
|
75
|
+
run: |
|
|
76
|
+
git config user.name "github-actions[bot]"
|
|
77
|
+
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
78
|
+
|
|
79
|
+
git add pyproject.toml
|
|
80
|
+
git commit -m "Bump version to $NEW_VERSION"
|
|
81
|
+
git tag "v$NEW_VERSION"
|
|
82
|
+
|
|
83
|
+
git push origin main
|
|
84
|
+
git push origin "v$NEW_VERSION"
|
|
85
|
+
|
|
86
|
+
- name: Build
|
|
87
|
+
run: uv build
|
|
88
|
+
|
|
89
|
+
- name: Publish distributions to PyPI
|
|
90
|
+
run: uv publish
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
name: Tests
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ main, develop ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ main, develop ]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
test:
|
|
11
|
+
name: Test on ${{ matrix.os }} - Python ${{ matrix.python-version }}
|
|
12
|
+
runs-on: ${{ matrix.os }}
|
|
13
|
+
strategy:
|
|
14
|
+
fail-fast: false
|
|
15
|
+
matrix:
|
|
16
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
17
|
+
python-version: ["3.10", "3.11"]
|
|
18
|
+
|
|
19
|
+
steps:
|
|
20
|
+
- name: Checkout code
|
|
21
|
+
uses: actions/checkout@v4
|
|
22
|
+
|
|
23
|
+
- name: Install uv
|
|
24
|
+
uses: astral-sh/setup-uv@v5
|
|
25
|
+
with:
|
|
26
|
+
version: "latest"
|
|
27
|
+
|
|
28
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
29
|
+
uses: actions/setup-python@v5
|
|
30
|
+
with:
|
|
31
|
+
python-version: ${{ matrix.python-version }}
|
|
32
|
+
|
|
33
|
+
# macOS-specific: Install OpenMP for LightGBM
|
|
34
|
+
- name: Install OpenMP (macOS)
|
|
35
|
+
if: runner.os == 'macOS'
|
|
36
|
+
run: brew install libomp
|
|
37
|
+
|
|
38
|
+
# Windows-specific: Ensure Visual C++ runtime
|
|
39
|
+
- name: Setup MSVC (Windows)
|
|
40
|
+
if: runner.os == 'Windows'
|
|
41
|
+
uses: ilammy/msvc-dev-cmd@v1
|
|
42
|
+
|
|
43
|
+
- name: Install dependencies
|
|
44
|
+
run: |
|
|
45
|
+
uv sync --all-extras
|
|
46
|
+
|
|
47
|
+
- name: Run tests
|
|
48
|
+
run: |
|
|
49
|
+
uv run pytest tests/ -v --tb=short
|
|
50
|
+
|
|
51
|
+
- name: Test package installation
|
|
52
|
+
run: |
|
|
53
|
+
uv pip install --no-deps .
|
|
54
|
+
uv run mcp-automl --help || echo "CLI test completed"
|
|
55
|
+
|
|
56
|
+
lint:
|
|
57
|
+
name: Lint
|
|
58
|
+
runs-on: ubuntu-latest
|
|
59
|
+
steps:
|
|
60
|
+
- name: Checkout code
|
|
61
|
+
uses: actions/checkout@v4
|
|
62
|
+
|
|
63
|
+
- name: Install uv
|
|
64
|
+
uses: astral-sh/setup-uv@v5
|
|
65
|
+
|
|
66
|
+
- name: Set up Python
|
|
67
|
+
uses: actions/setup-python@v5
|
|
68
|
+
with:
|
|
69
|
+
python-version: "3.11"
|
|
70
|
+
|
|
71
|
+
- name: Install dependencies
|
|
72
|
+
run: uv sync
|
|
73
|
+
|
|
74
|
+
- name: Check formatting (if you add ruff/black later)
|
|
75
|
+
run: |
|
|
76
|
+
# uv run ruff check .
|
|
77
|
+
echo "Linting placeholder - add ruff or black when ready"
|
mcp_automl-0.1.2/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 idea7766
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mcp-automl
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: MCP server for end-to-end machine learning
|
|
5
|
-
|
|
5
|
+
Author-email: ke <idea7766@gmail.com>
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
Requires-Python: <3.12,>=3.10
|
|
6
8
|
Requires-Dist: duckdb>=1.4.3
|
|
7
9
|
Requires-Dist: joblib<1.4
|
|
8
10
|
Requires-Dist: mcp>=1.21.2
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "mcp-automl"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.2"
|
|
4
4
|
description = "MCP server for end-to-end machine learning"
|
|
5
5
|
readme = "README.md"
|
|
6
|
-
requires-python = ">=3.
|
|
6
|
+
requires-python = ">=3.10,<3.12"
|
|
7
7
|
dependencies = [
|
|
8
8
|
"duckdb>=1.4.3",
|
|
9
9
|
"joblib<1.4",
|
|
@@ -13,6 +13,9 @@ dependencies = [
|
|
|
13
13
|
"scikit-learn<1.4",
|
|
14
14
|
"tabulate>=0.9.0",
|
|
15
15
|
]
|
|
16
|
+
authors = [
|
|
17
|
+
{name = "ke", email = "idea7766@gmail.com"},
|
|
18
|
+
]
|
|
16
19
|
|
|
17
20
|
[project.scripts]
|
|
18
21
|
mcp-automl = "mcp_automl.server:main"
|