pullini-mcp 0.7.1__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.
@@ -0,0 +1,233 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
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
+ share/python-wheels/
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
+ # poetry.toml
110
+
111
+ # pdm
112
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115
+ # pdm.lock
116
+ # pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # pixi
121
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122
+ # pixi.lock
123
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124
+ # in the .venv directory. It is recommended not to include this directory in version control.
125
+ .pixi
126
+
127
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
128
+ __pypackages__/
129
+
130
+ # Celery stuff
131
+ celerybeat-schedule
132
+ celerybeat.pid
133
+
134
+ # Redis
135
+ *.rdb
136
+ *.aof
137
+ *.pid
138
+
139
+ # RabbitMQ
140
+ mnesia/
141
+ rabbitmq/
142
+ rabbitmq-data/
143
+
144
+ # ActiveMQ
145
+ activemq-data/
146
+
147
+ # SageMath parsed files
148
+ *.sage.py
149
+
150
+ # Environments
151
+ .env
152
+ .envrc
153
+ .venv
154
+ env/
155
+ venv/
156
+ ENV/
157
+ env.bak/
158
+ venv.bak/
159
+
160
+ # Spyder project settings
161
+ .spyderproject
162
+ .spyproject
163
+
164
+ # Rope project settings
165
+ .ropeproject
166
+
167
+ # mkdocs documentation
168
+ /site
169
+
170
+ # mypy
171
+ .mypy_cache/
172
+ .dmypy.json
173
+ dmypy.json
174
+
175
+ # Pyre type checker
176
+ .pyre/
177
+
178
+ # pytype static type analyzer
179
+ .pytype/
180
+
181
+ # Cython debug symbols
182
+ cython_debug/
183
+
184
+ # PyCharm
185
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
186
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
187
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
188
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
189
+ # .idea/
190
+
191
+ # Abstra
192
+ # Abstra is an AI-powered process automation framework.
193
+ # Ignore directories containing user credentials, local state, and settings.
194
+ # Learn more at https://abstra.io/docs
195
+ .abstra/
196
+
197
+ # Visual Studio Code
198
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
199
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
200
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
201
+ # you could uncomment the following to ignore the entire vscode folder
202
+ # .vscode/
203
+ # Temporary file for partial code execution
204
+ tempCodeRunnerFile.py
205
+
206
+ # Ruff stuff:
207
+ .ruff_cache/
208
+
209
+ # PyPI configuration file
210
+ .pypirc
211
+
212
+ # Marimo
213
+ marimo/_static/
214
+ marimo/_lsp/
215
+ __marimo__/
216
+
217
+ # Streamlit
218
+ .streamlit/secrets.toml
219
+
220
+ # Pullini
221
+ /data/
222
+ /staticfiles/
223
+ static/css/app.css
224
+ static/js/vendor/
225
+
226
+ # Node / Tailwind
227
+ node_modules/
228
+ npm-debug.log*
229
+
230
+ # Django / pytest caches
231
+ .pytest_cache/
232
+ .coverage
233
+ htmlcov/
@@ -0,0 +1,127 @@
1
+ Metadata-Version: 2.5
2
+ Name: pullini-mcp
3
+ Version: 0.7.1
4
+ Summary: Local stdio MCP connector for Pullini artifacts (E6, T6).
5
+ Project-URL: Homepage, https://github.com/rykhalskyi/pullini
6
+ Project-URL: Repository, https://github.com/rykhalskyi/pullini
7
+ Project-URL: Issues, https://github.com/rykhalskyi/pullini/issues
8
+ Author-email: Iaroslav Rykhalskyi <rikhalskiy@gmail.com>
9
+ License-Expression: MIT
10
+ Keywords: agents,artifacts,fastmcp,mcp,pullini
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Topic :: Software Development :: Documentation
21
+ Requires-Python: >=3.10
22
+ Requires-Dist: httpx>=0.27
23
+ Requires-Dist: mcp>=2
24
+ Description-Content-Type: text/markdown
25
+
26
+ # pullini-mcp
27
+
28
+ A local **stdio** [MCP](https://modelcontextprotocol.io) connector that lets an
29
+ agent create, read, update, delete and share [Pullini](https://github.com/rykhalskyi/pullini)
30
+ artifacts over the authenticated artifact REST API.
31
+
32
+ The connector runs on the agent's machine. It reads its configuration from the
33
+ environment and needs no ASGI or OAuth infrastructure on the Pullini host
34
+ (decision D-25).
35
+
36
+ ## Install
37
+
38
+ Runs with [uv](https://docs.astral.sh/uv/), no install step required:
39
+
40
+ ```bash
41
+ uvx pullini-mcp
42
+ ```
43
+
44
+ Or install it into an environment:
45
+
46
+ ```bash
47
+ uv tool install pullini-mcp # or: pip install pullini-mcp
48
+ ```
49
+
50
+ ## Configure
51
+
52
+ Two environment variables:
53
+
54
+ | Variable | Description |
55
+ | --------------- | ------------------------------------------------------------------ |
56
+ | `PULLINI_URL` | Base URL of your Pullini host, e.g. `https://pullini.example.com`. |
57
+ | `PULLINI_TOKEN` | A personal access token created at `/settings/tokens/` (`pln_…`). |
58
+
59
+ The token is sent as `Authorization: Bearer <token>`; all resources are scoped to
60
+ the token's owner. Treat the raw secret like a password.
61
+
62
+ ### MCP client config
63
+
64
+ The client launches the server and passes the two variables. A copy-paste
65
+ example lives in [`mcp.example.json`](mcp.example.json).
66
+
67
+ **From a local checkout** (before the package is published): point `--directory`
68
+ at the `mcp/` folder of your clone.
69
+
70
+ ```json
71
+ {
72
+ "mcpServers": {
73
+ "pullini": {
74
+ "command": "uv",
75
+ "args": ["run", "--directory", "/path/to/pullini/mcp", "pullini-mcp"],
76
+ "env": {
77
+ "PULLINI_URL": "http://localhost:8000",
78
+ "PULLINI_TOKEN": "pln_xxxxxxxx_yyyyyyyyyyyyyyyyyyyyyyyy"
79
+ }
80
+ }
81
+ }
82
+ }
83
+ ```
84
+
85
+ **From PyPI** (once published):
86
+
87
+ ```json
88
+ {
89
+ "mcpServers": {
90
+ "pullini": {
91
+ "command": "uvx",
92
+ "args": ["pullini-mcp"],
93
+ "env": {
94
+ "PULLINI_URL": "https://pullini.example.com",
95
+ "PULLINI_TOKEN": "pln_xxxxxxxx_yyyyyyyyyyyyyyyyyyyyyyyy"
96
+ }
97
+ }
98
+ }
99
+ }
100
+ ```
101
+
102
+ ## Tools
103
+
104
+ | Tool | What it does |
105
+ | ----------------- | -------------------------------------------------------------- |
106
+ | `store_artifact` | Create an artifact, or overwrite one when `slug` is given. |
107
+ | `list_artifacts` | List the token owner's artifacts. |
108
+ | `get_artifact` | Fetch one artifact (source Markdown, rendered HTML, plain text). |
109
+ | `update_artifact` | Change an artifact's title and/or content. |
110
+ | `delete_artifact` | Delete an artifact. |
111
+ | `share_artifact` | Enable or revoke the unlisted share link. |
112
+
113
+ `content` is Markdown; fenced ` ```mermaid ` blocks render as diagrams. Artifacts
114
+ are **private by default**: `share_artifact` returns a read-only `share_url`
115
+ anyone with the link can open, and revoking clears it.
116
+
117
+ ## Development
118
+
119
+ ```bash
120
+ uv sync
121
+ uv run ruff check .
122
+ uv run ruff format --check .
123
+ uv run pytest
124
+ ```
125
+
126
+ Tests mock the HTTP transport with `httpx.MockTransport`, so no Pullini host is
127
+ needed.
@@ -0,0 +1,102 @@
1
+ # pullini-mcp
2
+
3
+ A local **stdio** [MCP](https://modelcontextprotocol.io) connector that lets an
4
+ agent create, read, update, delete and share [Pullini](https://github.com/rykhalskyi/pullini)
5
+ artifacts over the authenticated artifact REST API.
6
+
7
+ The connector runs on the agent's machine. It reads its configuration from the
8
+ environment and needs no ASGI or OAuth infrastructure on the Pullini host
9
+ (decision D-25).
10
+
11
+ ## Install
12
+
13
+ Runs with [uv](https://docs.astral.sh/uv/), no install step required:
14
+
15
+ ```bash
16
+ uvx pullini-mcp
17
+ ```
18
+
19
+ Or install it into an environment:
20
+
21
+ ```bash
22
+ uv tool install pullini-mcp # or: pip install pullini-mcp
23
+ ```
24
+
25
+ ## Configure
26
+
27
+ Two environment variables:
28
+
29
+ | Variable | Description |
30
+ | --------------- | ------------------------------------------------------------------ |
31
+ | `PULLINI_URL` | Base URL of your Pullini host, e.g. `https://pullini.example.com`. |
32
+ | `PULLINI_TOKEN` | A personal access token created at `/settings/tokens/` (`pln_…`). |
33
+
34
+ The token is sent as `Authorization: Bearer <token>`; all resources are scoped to
35
+ the token's owner. Treat the raw secret like a password.
36
+
37
+ ### MCP client config
38
+
39
+ The client launches the server and passes the two variables. A copy-paste
40
+ example lives in [`mcp.example.json`](mcp.example.json).
41
+
42
+ **From a local checkout** (before the package is published): point `--directory`
43
+ at the `mcp/` folder of your clone.
44
+
45
+ ```json
46
+ {
47
+ "mcpServers": {
48
+ "pullini": {
49
+ "command": "uv",
50
+ "args": ["run", "--directory", "/path/to/pullini/mcp", "pullini-mcp"],
51
+ "env": {
52
+ "PULLINI_URL": "http://localhost:8000",
53
+ "PULLINI_TOKEN": "pln_xxxxxxxx_yyyyyyyyyyyyyyyyyyyyyyyy"
54
+ }
55
+ }
56
+ }
57
+ }
58
+ ```
59
+
60
+ **From PyPI** (once published):
61
+
62
+ ```json
63
+ {
64
+ "mcpServers": {
65
+ "pullini": {
66
+ "command": "uvx",
67
+ "args": ["pullini-mcp"],
68
+ "env": {
69
+ "PULLINI_URL": "https://pullini.example.com",
70
+ "PULLINI_TOKEN": "pln_xxxxxxxx_yyyyyyyyyyyyyyyyyyyyyyyy"
71
+ }
72
+ }
73
+ }
74
+ }
75
+ ```
76
+
77
+ ## Tools
78
+
79
+ | Tool | What it does |
80
+ | ----------------- | -------------------------------------------------------------- |
81
+ | `store_artifact` | Create an artifact, or overwrite one when `slug` is given. |
82
+ | `list_artifacts` | List the token owner's artifacts. |
83
+ | `get_artifact` | Fetch one artifact (source Markdown, rendered HTML, plain text). |
84
+ | `update_artifact` | Change an artifact's title and/or content. |
85
+ | `delete_artifact` | Delete an artifact. |
86
+ | `share_artifact` | Enable or revoke the unlisted share link. |
87
+
88
+ `content` is Markdown; fenced ` ```mermaid ` blocks render as diagrams. Artifacts
89
+ are **private by default**: `share_artifact` returns a read-only `share_url`
90
+ anyone with the link can open, and revoking clears it.
91
+
92
+ ## Development
93
+
94
+ ```bash
95
+ uv sync
96
+ uv run ruff check .
97
+ uv run ruff format --check .
98
+ uv run pytest
99
+ ```
100
+
101
+ Tests mock the HTTP transport with `httpx.MockTransport`, so no Pullini host is
102
+ needed.
@@ -0,0 +1,17 @@
1
+ {
2
+ "mcpServers": {
3
+ "pullini": {
4
+ "command": "uv",
5
+ "args": [
6
+ "run",
7
+ "--directory",
8
+ "/path/to/pullini/mcp",
9
+ "pullini-mcp"
10
+ ],
11
+ "env": {
12
+ "PULLINI_URL": "http://localhost:8000",
13
+ "PULLINI_TOKEN": "pln_348fd66e_Xf3ZHb8RxQtvKwTH-NuZz9ymToevfJS2q97_GAXDu5M"
14
+ }
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,60 @@
1
+ [project]
2
+ name = "pullini-mcp"
3
+ version = "0.7.1"
4
+ description = "Local stdio MCP connector for Pullini artifacts (E6, T6)."
5
+ readme = "README.md"
6
+ requires-python = ">=3.10"
7
+ license = "MIT"
8
+ authors = [
9
+ { name = "Iaroslav Rykhalskyi", email = "rikhalskiy@gmail.com" }
10
+ ]
11
+ keywords = ["mcp", "pullini", "artifacts", "agents", "fastmcp"]
12
+ classifiers = [
13
+ "Development Status :: 4 - Beta",
14
+ "Environment :: Console",
15
+ "Intended Audience :: Developers",
16
+ "License :: OSI Approved :: MIT License",
17
+ "Programming Language :: Python :: 3",
18
+ "Programming Language :: Python :: 3.10",
19
+ "Programming Language :: Python :: 3.11",
20
+ "Programming Language :: Python :: 3.12",
21
+ "Programming Language :: Python :: 3.13",
22
+ "Topic :: Software Development :: Documentation",
23
+ ]
24
+ dependencies = [
25
+ "httpx>=0.27",
26
+ "mcp>=2",
27
+ ]
28
+
29
+ [project.urls]
30
+ Homepage = "https://github.com/rykhalskyi/pullini"
31
+ Repository = "https://github.com/rykhalskyi/pullini"
32
+ Issues = "https://github.com/rykhalskyi/pullini/issues"
33
+
34
+ [project.scripts]
35
+ pullini-mcp = "pullini_mcp.server:main"
36
+
37
+ [dependency-groups]
38
+ dev = [
39
+ "pytest>=8.0",
40
+ "ruff>=0.16.9",
41
+ ]
42
+
43
+ [build-system]
44
+ requires = ["hatchling"]
45
+ build-backend = "hatchling.build"
46
+
47
+ [tool.hatch.build.targets.wheel]
48
+ packages = ["src/pullini_mcp"]
49
+
50
+ [tool.pytest.ini_options]
51
+ testpaths = ["tests"]
52
+ addopts = "-q"
53
+ pythonpath = ["src"]
54
+
55
+ [tool.ruff]
56
+ line-length = 100
57
+ target-version = "py310"
58
+
59
+ [tool.ruff.lint]
60
+ select = ["E", "F", "I", "UP", "B", "C4", "SIM"]
@@ -0,0 +1,7 @@
1
+ """pullini-mcp: a local stdio MCP connector for Pullini artifacts (E6, T6)."""
2
+
3
+ from __future__ import annotations
4
+
5
+ __all__ = ["__version__"]
6
+
7
+ __version__ = "0.7.1"