laria-mcp 0.1.0__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 (36) hide show
  1. laria_mcp-0.1.0/.github/workflows/ci.yml +18 -0
  2. laria_mcp-0.1.0/.gitignore +9 -0
  3. laria_mcp-0.1.0/LICENSE +21 -0
  4. laria_mcp-0.1.0/PKG-INFO +50 -0
  5. laria_mcp-0.1.0/README.md +15 -0
  6. laria_mcp-0.1.0/docs/superpowers/plans/2026-11-17-laria-mcp.md +3188 -0
  7. laria_mcp-0.1.0/docs/superpowers/specs/2026-11-17-laria-mcp-design.md +155 -0
  8. laria_mcp-0.1.0/examples/make_examples.py +55 -0
  9. laria_mcp-0.1.0/pyproject.toml +52 -0
  10. laria_mcp-0.1.0/src/laria_mcp/__init__.py +36 -0
  11. laria_mcp-0.1.0/src/laria_mcp/__main__.py +5 -0
  12. laria_mcp-0.1.0/src/laria_mcp/cli.py +105 -0
  13. laria_mcp-0.1.0/src/laria_mcp/discovery.py +70 -0
  14. laria_mcp-0.1.0/src/laria_mcp/handles.py +54 -0
  15. laria_mcp-0.1.0/src/laria_mcp/hermes.py +49 -0
  16. laria_mcp-0.1.0/src/laria_mcp/hotreload.py +47 -0
  17. laria_mcp-0.1.0/src/laria_mcp/loader.py +63 -0
  18. laria_mcp-0.1.0/src/laria_mcp/magic.py +160 -0
  19. laria_mcp-0.1.0/src/laria_mcp/notebook_tool.py +124 -0
  20. laria_mcp-0.1.0/src/laria_mcp/results.py +104 -0
  21. laria_mcp-0.1.0/src/laria_mcp/server.py +291 -0
  22. laria_mcp-0.1.0/src/laria_mcp/widget.py +73 -0
  23. laria_mcp-0.1.0/tests/conftest.py +52 -0
  24. laria_mcp-0.1.0/tests/test_cli.py +34 -0
  25. laria_mcp-0.1.0/tests/test_discovery.py +52 -0
  26. laria_mcp-0.1.0/tests/test_handles.py +37 -0
  27. laria_mcp-0.1.0/tests/test_hermes.py +54 -0
  28. laria_mcp-0.1.0/tests/test_hotreload.py +51 -0
  29. laria_mcp-0.1.0/tests/test_loader.py +48 -0
  30. laria_mcp-0.1.0/tests/test_magic.py +60 -0
  31. laria_mcp-0.1.0/tests/test_notebook_tool.py +55 -0
  32. laria_mcp-0.1.0/tests/test_package.py +14 -0
  33. laria_mcp-0.1.0/tests/test_results.py +90 -0
  34. laria_mcp-0.1.0/tests/test_server.py +124 -0
  35. laria_mcp-0.1.0/tests/test_server_http.py +83 -0
  36. laria_mcp-0.1.0/tests/test_widget.py +55 -0
@@ -0,0 +1,18 @@
1
+ name: CI
2
+ on:
3
+ push:
4
+ branches: [main]
5
+ pull_request:
6
+ jobs:
7
+ test:
8
+ runs-on: ubuntu-latest
9
+ strategy:
10
+ matrix:
11
+ python-version: ["3.10", "3.11", "3.12"]
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+ - uses: actions/setup-python@v5
15
+ with:
16
+ python-version: ${{ matrix.python-version }}
17
+ - run: pip install -e ".[dev]"
18
+ - run: pytest -q
@@ -0,0 +1,9 @@
1
+ __pycache__/
2
+ *.egg-info/
3
+ .venv/
4
+ dist/
5
+ build/
6
+ .pytest_cache/
7
+ docs/_build/
8
+ .ipynb_checkpoints/
9
+ .DS_Store
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 group27 (cs1302a)
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.
@@ -0,0 +1,50 @@
1
+ Metadata-Version: 2.5
2
+ Name: laria-mcp
3
+ Version: 0.1.0
4
+ Summary: Serve a Jupyter notebook's functions as MCP tools for AI agents such as Hermes and Claude.
5
+ Project-URL: Homepage, https://github.com/bebdyshev/cs1302a-project
6
+ Project-URL: Documentation, https://bebdyshev.github.io/cs1302a-project/
7
+ Project-URL: Issues, https://github.com/bebdyshev/cs1302a-project/issues
8
+ Author: group27 (cs1302a)
9
+ License-Expression: MIT
10
+ License-File: LICENSE
11
+ Keywords: agents,hermes,jupyter,llm-tools,mcp,model-context-protocol,notebook
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Framework :: Jupyter
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Intended Audience :: Science/Research
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Requires-Python: >=3.10
21
+ Requires-Dist: ipython>=8.12
22
+ Requires-Dist: ipywidgets>=8
23
+ Requires-Dist: mcp<2,>=1.20
24
+ Requires-Dist: nbclient>=0.10
25
+ Requires-Dist: nbformat>=5.9
26
+ Requires-Dist: pyyaml>=6
27
+ Provides-Extra: dev
28
+ Requires-Dist: httpx>=0.27; extra == 'dev'
29
+ Requires-Dist: ipykernel>=6; extra == 'dev'
30
+ Requires-Dist: matplotlib>=3.7; extra == 'dev'
31
+ Requires-Dist: numpy>=1.24; extra == 'dev'
32
+ Requires-Dist: pandas>=2; extra == 'dev'
33
+ Requires-Dist: pytest>=8; extra == 'dev'
34
+ Description-Content-Type: text/markdown
35
+
36
+ # laria-mcp
37
+
38
+ Turn a Jupyter notebook into an MCP server, so AI agents (Hermes, Claude, ...) can call its functions as tools.
39
+
40
+ pip install laria-mcp
41
+ laria serve analysis.ipynb
42
+
43
+ In a notebook:
44
+
45
+ %load_ext laria_mcp
46
+ %laria serve
47
+
48
+ Full documentation: https://bebdyshev.github.io/cs1302a-project/
49
+
50
+ Team group27 (cs1302a). Licensed under the MIT License.
@@ -0,0 +1,15 @@
1
+ # laria-mcp
2
+
3
+ Turn a Jupyter notebook into an MCP server, so AI agents (Hermes, Claude, ...) can call its functions as tools.
4
+
5
+ pip install laria-mcp
6
+ laria serve analysis.ipynb
7
+
8
+ In a notebook:
9
+
10
+ %load_ext laria_mcp
11
+ %laria serve
12
+
13
+ Full documentation: https://bebdyshev.github.io/cs1302a-project/
14
+
15
+ Team group27 (cs1302a). Licensed under the MIT License.