mcp-server-mcsa 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.
Files changed (34) hide show
  1. {mcp_server_mcsa-0.1.0 → mcp_server_mcsa-0.1.2}/.github/workflows/ci.yml +37 -37
  2. mcp_server_mcsa-0.1.2/.github/workflows/publish.yml +39 -0
  3. {mcp_server_mcsa-0.1.0 → mcp_server_mcsa-0.1.2}/.gitignore +43 -41
  4. {mcp_server_mcsa-0.1.0 → mcp_server_mcsa-0.1.2}/Dockerfile +12 -12
  5. {mcp_server_mcsa-0.1.0 → mcp_server_mcsa-0.1.2}/LICENSE +21 -21
  6. {mcp_server_mcsa-0.1.0 → mcp_server_mcsa-0.1.2}/PKG-INFO +3 -1
  7. {mcp_server_mcsa-0.1.0 → mcp_server_mcsa-0.1.2}/README.md +281 -279
  8. {mcp_server_mcsa-0.1.0 → mcp_server_mcsa-0.1.2}/USAGE_GUIDE.md +620 -620
  9. {mcp_server_mcsa-0.1.0 → mcp_server_mcsa-0.1.2}/pyproject.toml +79 -78
  10. mcp_server_mcsa-0.1.2/server.json +21 -0
  11. {mcp_server_mcsa-0.1.0 → mcp_server_mcsa-0.1.2}/src/mcp_server_mcsa/__init__.py +37 -37
  12. {mcp_server_mcsa-0.1.0 → mcp_server_mcsa-0.1.2}/src/mcp_server_mcsa/__main__.py +5 -5
  13. {mcp_server_mcsa-0.1.0 → mcp_server_mcsa-0.1.2}/src/mcp_server_mcsa/analysis/__init__.py +19 -19
  14. {mcp_server_mcsa-0.1.0 → mcp_server_mcsa-0.1.2}/src/mcp_server_mcsa/analysis/bearing.py +147 -147
  15. {mcp_server_mcsa-0.1.0 → mcp_server_mcsa-0.1.2}/src/mcp_server_mcsa/analysis/envelope.py +96 -97
  16. {mcp_server_mcsa-0.1.0 → mcp_server_mcsa-0.1.2}/src/mcp_server_mcsa/analysis/fault_detection.py +424 -425
  17. {mcp_server_mcsa-0.1.0 → mcp_server_mcsa-0.1.2}/src/mcp_server_mcsa/analysis/file_io.py +429 -428
  18. {mcp_server_mcsa-0.1.0 → mcp_server_mcsa-0.1.2}/src/mcp_server_mcsa/analysis/motor.py +147 -145
  19. {mcp_server_mcsa-0.1.0 → mcp_server_mcsa-0.1.2}/src/mcp_server_mcsa/analysis/preprocessing.py +180 -180
  20. {mcp_server_mcsa-0.1.0 → mcp_server_mcsa-0.1.2}/src/mcp_server_mcsa/analysis/spectral.py +171 -172
  21. {mcp_server_mcsa-0.1.0 → mcp_server_mcsa-0.1.2}/src/mcp_server_mcsa/analysis/test_signal.py +232 -232
  22. {mcp_server_mcsa-0.1.0 → mcp_server_mcsa-0.1.2}/src/mcp_server_mcsa/analysis/timefreq.py +132 -132
  23. {mcp_server_mcsa-0.1.0 → mcp_server_mcsa-0.1.2}/src/mcp_server_mcsa/server.py +954 -955
  24. {mcp_server_mcsa-0.1.0 → mcp_server_mcsa-0.1.2}/tests/conftest.py +48 -49
  25. {mcp_server_mcsa-0.1.0 → mcp_server_mcsa-0.1.2}/tests/test_bearing.py +91 -92
  26. {mcp_server_mcsa-0.1.0 → mcp_server_mcsa-0.1.2}/tests/test_envelope_timefreq.py +105 -105
  27. {mcp_server_mcsa-0.1.0 → mcp_server_mcsa-0.1.2}/tests/test_fault_detection.py +130 -132
  28. {mcp_server_mcsa-0.1.0 → mcp_server_mcsa-0.1.2}/tests/test_file_io.py +238 -239
  29. {mcp_server_mcsa-0.1.0 → mcp_server_mcsa-0.1.2}/tests/test_motor.py +78 -78
  30. {mcp_server_mcsa-0.1.0 → mcp_server_mcsa-0.1.2}/tests/test_preprocessing.py +117 -117
  31. {mcp_server_mcsa-0.1.0 → mcp_server_mcsa-0.1.2}/tests/test_signal_gen.py +91 -91
  32. {mcp_server_mcsa-0.1.0 → mcp_server_mcsa-0.1.2}/tests/test_spectral.py +108 -108
  33. mcp_server_mcsa-0.1.2/uv.lock +1232 -0
  34. {mcp_server_mcsa-0.1.0 → mcp_server_mcsa-0.1.2}/tests/__init__.py +0 -0
@@ -1,37 +1,37 @@
1
- name: CI
2
-
3
- on:
4
- push:
5
- branches: [main]
6
- pull_request:
7
- branches: [main]
8
-
9
- jobs:
10
- test:
11
- runs-on: ubuntu-latest
12
- strategy:
13
- matrix:
14
- python-version: ["3.10", "3.11", "3.12", "3.13"]
15
-
16
- steps:
17
- - uses: actions/checkout@v4
18
-
19
- - name: Install uv
20
- uses: astral-sh/setup-uv@v4
21
- with:
22
- enable-cache: true
23
-
24
- - name: Set up Python ${{ matrix.python-version }}
25
- run: uv python install ${{ matrix.python-version }}
26
-
27
- - name: Install dependencies
28
- run: uv sync --dev
29
-
30
- - name: Lint with ruff
31
- run: uv run ruff check src/ tests/
32
-
33
- - name: Type check with pyright
34
- run: uv run pyright src/
35
-
36
- - name: Run tests
37
- run: uv run pytest -v --tb=short
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ python-version: ["3.10", "3.11", "3.12", "3.13"]
15
+
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+
19
+ - name: Install uv
20
+ uses: astral-sh/setup-uv@v4
21
+ with:
22
+ enable-cache: true
23
+
24
+ - name: Set up Python ${{ matrix.python-version }}
25
+ run: uv python install ${{ matrix.python-version }}
26
+
27
+ - name: Install dependencies
28
+ run: uv sync --dev
29
+
30
+ - name: Lint with ruff
31
+ run: uv run ruff check src/ tests/
32
+
33
+ - name: Type check with pyright
34
+ run: uv run pyright src/
35
+
36
+ - name: Run tests
37
+ run: uv run pytest -v --tb=short
@@ -0,0 +1,39 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ jobs:
12
+ test:
13
+ runs-on: ubuntu-latest
14
+ strategy:
15
+ matrix:
16
+ python-version: ["3.10", "3.11", "3.12", "3.13"]
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ - uses: astral-sh/setup-uv@v4
20
+ - name: Set up Python ${{ matrix.python-version }}
21
+ run: uv python install ${{ matrix.python-version }}
22
+ - name: Install dependencies
23
+ run: uv sync --dev
24
+ - name: Run tests
25
+ run: uv run pytest --tb=short -q
26
+
27
+ publish:
28
+ needs: test
29
+ runs-on: ubuntu-latest
30
+ environment: pypi
31
+ permissions:
32
+ id-token: write
33
+ steps:
34
+ - uses: actions/checkout@v4
35
+ - uses: astral-sh/setup-uv@v4
36
+ - name: Build
37
+ run: uv build
38
+ - name: Publish to PyPI
39
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -1,41 +1,43 @@
1
- # Python
2
- __pycache__/
3
- *.py[cod]
4
- *$py.class
5
- *.so
6
- *.egg-info/
7
- *.egg
8
- dist/
9
- build/
10
- .eggs/
11
-
12
- # Virtual environments
13
- .venv/
14
- venv/
15
- env/
16
- ENV/
17
-
18
- # IDE
19
- .vscode/
20
- .idea/
21
- *.swp
22
- *.swo
23
- *~
24
-
25
- # OS
26
- .DS_Store
27
- Thumbs.db
28
- desktop.ini
29
-
30
- # Testing
31
- .coverage
32
- htmlcov/
33
- .pytest_cache/
34
- .mypy_cache/
35
-
36
- # Distribution
37
- *.whl
38
- *.tar.gz
39
-
40
- # uv
41
- uv.lock
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.so
6
+ *.egg-info/
7
+ *.egg
8
+ dist/
9
+ build/
10
+ .eggs/
11
+
12
+ # Virtual environments
13
+ .venv/
14
+ venv/
15
+ env/
16
+ ENV/
17
+
18
+ # IDE
19
+ .vscode/
20
+ .idea/
21
+ *.swp
22
+ *.swo
23
+ *~
24
+
25
+ # OS
26
+ .DS_Store
27
+ Thumbs.db
28
+ desktop.ini
29
+
30
+ # Testing
31
+ .coverage
32
+ htmlcov/
33
+ .pytest_cache/
34
+ .mypy_cache/
35
+
36
+ # Distribution
37
+ *.whl
38
+ *.tar.gz
39
+
40
+ # MCP Publisher
41
+ mcp-publisher.exe
42
+ mcp-publisher
43
+ .mcpregistry_*
@@ -1,12 +1,12 @@
1
- FROM python:3.12-slim
2
-
3
- COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
4
-
5
- WORKDIR /app
6
-
7
- COPY pyproject.toml .
8
- COPY src/ src/
9
-
10
- RUN uv sync --no-dev --frozen 2>/dev/null || uv pip install --system .
11
-
12
- ENTRYPOINT ["mcp-server-mcsa"]
1
+ FROM python:3.12-slim
2
+
3
+ COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
4
+
5
+ WORKDIR /app
6
+
7
+ COPY pyproject.toml .
8
+ COPY src/ src/
9
+
10
+ RUN uv sync --no-dev --frozen 2>/dev/null || uv pip install --system .
11
+
12
+ ENTRYPOINT ["mcp-server-mcsa"]
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Contributors
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
+ MIT License
2
+
3
+ Copyright (c) 2026 Contributors
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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mcp-server-mcsa
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: MCP server for Motor Current Signature Analysis (MCSA) — spectral analysis, fault frequency calculation, and fault detection in electric motors
5
5
  Project-URL: Homepage, https://github.com/LGDiMaggio/mcp-motor-current-signature-analysis
6
6
  Project-URL: Repository, https://github.com/LGDiMaggio/mcp-motor-current-signature-analysis
@@ -30,6 +30,8 @@ Description-Content-Type: text/markdown
30
30
 
31
31
  # mcp-server-mcsa
32
32
 
33
+ <!-- mcp-name: io.github.LGDiMaggio/mcp-server-mcsa -->
34
+
33
35
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
34
36
  [![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)
35
37
  [![MCP](https://img.shields.io/badge/MCP-compatible-green.svg)](https://modelcontextprotocol.io)