mcp-server-pixeltable-developer 0.2.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.
Files changed (100) hide show
  1. mcp_server_pixeltable_developer-0.2.1/.gitignore +92 -0
  2. mcp_server_pixeltable_developer-0.2.1/LICENSE +201 -0
  3. mcp_server_pixeltable_developer-0.2.1/PKG-INFO +303 -0
  4. mcp_server_pixeltable_developer-0.2.1/README.md +268 -0
  5. mcp_server_pixeltable_developer-0.2.1/canvas.html +243 -0
  6. mcp_server_pixeltable_developer-0.2.1/docs/migration-0.1-to-0.2.md +367 -0
  7. mcp_server_pixeltable_developer-0.2.1/docs/review-0.1.0.md +451 -0
  8. mcp_server_pixeltable_developer-0.2.1/docs/review-0.2.0.md +549 -0
  9. mcp_server_pixeltable_developer-0.2.1/evals/README.md +115 -0
  10. mcp_server_pixeltable_developer-0.2.1/evals/fixtures/audio.wav +0 -0
  11. mcp_server_pixeltable_developer-0.2.1/evals/fixtures/document.html +1 -0
  12. mcp_server_pixeltable_developer-0.2.1/evals/fixtures/generate.py +167 -0
  13. mcp_server_pixeltable_developer-0.2.1/evals/fixtures/image.png +0 -0
  14. mcp_server_pixeltable_developer-0.2.1/evals/fixtures/manifest.json +25 -0
  15. mcp_server_pixeltable_developer-0.2.1/evals/fixtures/video.mp4 +0 -0
  16. mcp_server_pixeltable_developer-0.2.1/evals/prepare_sources.py +167 -0
  17. mcp_server_pixeltable_developer-0.2.1/evals/prompts/01-initial-http-app.md +5 -0
  18. mcp_server_pixeltable_developer-0.2.1/evals/prompts/02-document-retrieval.md +5 -0
  19. mcp_server_pixeltable_developer-0.2.1/evals/prompts/03-image-video.md +5 -0
  20. mcp_server_pixeltable_developer-0.2.1/evals/prompts/04-audio-processing.md +5 -0
  21. mcp_server_pixeltable_developer-0.2.1/evals/prompts/05-tool-calling.md +5 -0
  22. mcp_server_pixeltable_developer-0.2.1/evals/prompts/06-schema-evolution.md +5 -0
  23. mcp_server_pixeltable_developer-0.2.1/evals/prompts/07-failed-computation-recovery.md +5 -0
  24. mcp_server_pixeltable_developer-0.2.1/evals/prompts/08-cloud-preparation.md +5 -0
  25. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/audio_processing__mcp_skill__r1/evidence.json +118 -0
  26. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/audio_processing__mcp_skill__r2/evidence.json +118 -0
  27. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/audio_processing__skill_only__r1/evidence.json +118 -0
  28. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/audio_processing__skill_only__r2/evidence.json +118 -0
  29. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/audio_processing__website_docs__r1/evidence.json +118 -0
  30. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/audio_processing__website_docs__r2/evidence.json +118 -0
  31. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/cloud_preparation__mcp_skill__r1/evidence.json +147 -0
  32. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/cloud_preparation__mcp_skill__r2/evidence.json +147 -0
  33. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/cloud_preparation__skill_only__r1/evidence.json +147 -0
  34. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/cloud_preparation__skill_only__r2/evidence.json +147 -0
  35. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/cloud_preparation__website_docs__r1/evidence.json +147 -0
  36. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/cloud_preparation__website_docs__r2/evidence.json +147 -0
  37. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/document_retrieval__mcp_skill__r1/evidence.json +118 -0
  38. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/document_retrieval__mcp_skill__r2/evidence.json +118 -0
  39. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/document_retrieval__skill_only__r1/evidence.json +118 -0
  40. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/document_retrieval__skill_only__r2/evidence.json +118 -0
  41. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/document_retrieval__website_docs__r1/evidence.json +118 -0
  42. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/document_retrieval__website_docs__r2/evidence.json +118 -0
  43. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/failed_computation_recovery__mcp_skill__r1/evidence.json +123 -0
  44. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/failed_computation_recovery__mcp_skill__r2/evidence.json +123 -0
  45. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/failed_computation_recovery__skill_only__r1/evidence.json +123 -0
  46. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/failed_computation_recovery__skill_only__r2/evidence.json +123 -0
  47. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/failed_computation_recovery__website_docs__r1/evidence.json +123 -0
  48. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/failed_computation_recovery__website_docs__r2/evidence.json +123 -0
  49. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/image_video__mcp_skill__r1/evidence.json +118 -0
  50. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/image_video__mcp_skill__r2/evidence.json +118 -0
  51. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/image_video__skill_only__r1/evidence.json +118 -0
  52. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/image_video__skill_only__r2/evidence.json +118 -0
  53. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/image_video__website_docs__r1/evidence.json +118 -0
  54. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/image_video__website_docs__r2/evidence.json +118 -0
  55. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/initial_http_app__mcp_skill__r2/evidence.json +203 -0
  56. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/initial_http_app__skill_only__r1/evidence.json +202 -0
  57. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/initial_http_app__skill_only__r2/evidence.json +208 -0
  58. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/initial_http_app__website_docs__r1/evidence.json +207 -0
  59. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/initial_http_app__website_docs__r2/evidence.json +125 -0
  60. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/schema_evolution__mcp_skill__r1/evidence.json +133 -0
  61. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/schema_evolution__mcp_skill__r2/evidence.json +133 -0
  62. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/schema_evolution__skill_only__r1/evidence.json +133 -0
  63. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/schema_evolution__skill_only__r2/evidence.json +133 -0
  64. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/schema_evolution__website_docs__r1/evidence.json +133 -0
  65. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/schema_evolution__website_docs__r2/evidence.json +133 -0
  66. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/settings.json +14 -0
  67. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/summary.md +12 -0
  68. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/tool_calling__mcp_skill__r1/evidence.json +122 -0
  69. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/tool_calling__mcp_skill__r2/evidence.json +122 -0
  70. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/tool_calling__skill_only__r1/evidence.json +122 -0
  71. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/tool_calling__skill_only__r2/evidence.json +122 -0
  72. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/tool_calling__website_docs__r1/evidence.json +122 -0
  73. mcp_server_pixeltable_developer-0.2.1/evals/results/full-20260910/tool_calling__website_docs__r2/evidence.json +122 -0
  74. mcp_server_pixeltable_developer-0.2.1/evals/results/pilot3-20260910/initial_http_app__mcp_skill__r1/evidence.json +204 -0
  75. mcp_server_pixeltable_developer-0.2.1/evals/results/pilot3-20260910/settings.json +14 -0
  76. mcp_server_pixeltable_developer-0.2.1/evals/results/pilot3-20260910/summary.md +12 -0
  77. mcp_server_pixeltable_developer-0.2.1/evals/run_trials.py +588 -0
  78. mcp_server_pixeltable_developer-0.2.1/evals/scenarios.json +103 -0
  79. mcp_server_pixeltable_developer-0.2.1/evals/sources.lock.json +90 -0
  80. mcp_server_pixeltable_developer-0.2.1/evals/trials.csv +49 -0
  81. mcp_server_pixeltable_developer-0.2.1/evals/validate_results.py +379 -0
  82. mcp_server_pixeltable_developer-0.2.1/evals/verify_trial.py +642 -0
  83. mcp_server_pixeltable_developer-0.2.1/pyproject.toml +96 -0
  84. mcp_server_pixeltable_developer-0.2.1/scripts/build-mcpb.sh +21 -0
  85. mcp_server_pixeltable_developer-0.2.1/scripts/run-conformance.sh +113 -0
  86. mcp_server_pixeltable_developer-0.2.1/src/mcp_server_pixeltable_developer/__init__.py +11 -0
  87. mcp_server_pixeltable_developer-0.2.1/src/mcp_server_pixeltable_developer/__main__.py +29 -0
  88. mcp_server_pixeltable_developer-0.2.1/src/mcp_server_pixeltable_developer/_worker.py +51 -0
  89. mcp_server_pixeltable_developer-0.2.1/src/mcp_server_pixeltable_developer/canvas.py +403 -0
  90. mcp_server_pixeltable_developer-0.2.1/src/mcp_server_pixeltable_developer/conformance.py +45 -0
  91. mcp_server_pixeltable_developer-0.2.1/src/mcp_server_pixeltable_developer/models.py +192 -0
  92. mcp_server_pixeltable_developer-0.2.1/src/mcp_server_pixeltable_developer/prompts.py +97 -0
  93. mcp_server_pixeltable_developer-0.2.1/src/mcp_server_pixeltable_developer/resources.py +134 -0
  94. mcp_server_pixeltable_developer-0.2.1/src/mcp_server_pixeltable_developer/runtime.py +324 -0
  95. mcp_server_pixeltable_developer-0.2.1/src/mcp_server_pixeltable_developer/server.py +125 -0
  96. mcp_server_pixeltable_developer-0.2.1/src/mcp_server_pixeltable_developer/tools.py +700 -0
  97. mcp_server_pixeltable_developer-0.2.1/src/mcp_server_pixeltable_developer/unsafe.py +441 -0
  98. mcp_server_pixeltable_developer-0.2.1/src/mcp_server_pixeltable_stio/__init__.py +14 -0
  99. mcp_server_pixeltable_developer-0.2.1/src/mcp_server_pixeltable_stio/__main__.py +6 -0
  100. mcp_server_pixeltable_developer-0.2.1/src/mcp_server_pixeltable_stio/server.py +5 -0
@@ -0,0 +1,92 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.so
6
+ .Python
7
+ build/
8
+ develop-eggs/
9
+ dist/
10
+ downloads/
11
+ eggs/
12
+ .eggs/
13
+ lib/
14
+ lib64/
15
+ parts/
16
+ sdist/
17
+ var/
18
+ wheels/
19
+ *.egg-info/
20
+ .installed.cfg
21
+ *.egg
22
+ MANIFEST
23
+
24
+ # PyInstaller
25
+ *.manifest
26
+ *.spec
27
+
28
+ # Installer logs
29
+ pip-log.txt
30
+ pip-delete-this-directory.txt
31
+
32
+ # Unit test / coverage reports
33
+ htmlcov/
34
+ .tox/
35
+ .nox/
36
+ .coverage
37
+ .coverage.*
38
+ .cache
39
+ nosetests.xml
40
+ coverage.xml
41
+ *.cover
42
+ .hypothesis/
43
+ .pytest_cache/
44
+
45
+ # Virtual environments
46
+ .env
47
+ .venv
48
+ .venv-*/
49
+ env/
50
+ venv/
51
+ ENV/
52
+ env.bak/
53
+ venv.bak/
54
+
55
+ # IDEs
56
+ .vscode/
57
+ .idea/
58
+ *.swp
59
+ *.swo
60
+ *~
61
+
62
+ # OS
63
+ .DS_Store
64
+ .DS_Store?
65
+ ._*
66
+ .Spotlight-V100
67
+ .Trashes
68
+ ehthumbs.db
69
+ Thumbs.db
70
+
71
+ # Pixeltable specific
72
+ .pixeltable/
73
+
74
+ # MCP server specific
75
+ *.log
76
+
77
+ # uv
78
+ .python-version
79
+
80
+ # Testing logs
81
+ pixeltable_testing_logs/
82
+ conformance-results/
83
+ evals/results/*/sources/
84
+ evals/results/*/*/workspace/
85
+ evals/results/*/*/prompt.txt
86
+ evals/results/*/*/transcript.jsonl
87
+ evals/results/*/*/stderr.txt
88
+ evals/results/*/*/final.txt
89
+ evals/results/*/*/verifier.json
90
+
91
+ # Sample data
92
+ sample_data/
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,303 @@
1
+ Metadata-Version: 2.5
2
+ Name: mcp-server-pixeltable-developer
3
+ Version: 0.2.1
4
+ Summary: A local developer MCP server for Pixeltable applications
5
+ Project-URL: Homepage, https://github.com/pixeltable/mcp-server-pixeltable-developer
6
+ Project-URL: Bug Tracker, https://github.com/pixeltable/mcp-server-pixeltable-developer/issues
7
+ Author: Pixeltable
8
+ License: Apache-2.0
9
+ License-File: LICENSE
10
+ Keywords: ai,data,machine-learning,mcp,multimodal,pixeltable
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Programming Language :: Python :: 3.14
19
+ Requires-Python: >=3.11
20
+ Requires-Dist: mcp<3,>=2.2
21
+ Requires-Dist: packaging>=24
22
+ Requires-Dist: pixeltable[serve]<0.8,>=0.7.10
23
+ Requires-Dist: pydantic<3,>=2.11
24
+ Provides-Extra: canvas
25
+ Requires-Dist: fastapi>=0.115.0; extra == 'canvas'
26
+ Requires-Dist: uvicorn>=0.32.0; extra == 'canvas'
27
+ Provides-Extra: test
28
+ Requires-Dist: build>=1.2; extra == 'test'
29
+ Requires-Dist: mcp[cli]<3,>=2.2; extra == 'test'
30
+ Requires-Dist: pyright>=1.1.405; extra == 'test'
31
+ Requires-Dist: pytest-asyncio>=0.24; extra == 'test'
32
+ Requires-Dist: pytest>=8.0; extra == 'test'
33
+ Requires-Dist: ruff>=0.12; extra == 'test'
34
+ Description-Content-Type: text/markdown
35
+
36
+ # Pixeltable Developer MCP Server
37
+
38
+ <!-- mcp-name: io.github.pixeltable/mcp-server-pixeltable-developer -->
39
+
40
+ A local Model Context Protocol server for building, inspecting, and operating
41
+ [Pixeltable](https://pixeltable.com/) applications. Version 0.2 follows the
42
+ application-first workflow in [pixeltable-skill 2.12.0](https://github.com/pixeltable/pixeltable-skill/blob/67f5a4222ce325420c461606c099e9ee0f9c9c02/skills/pixeltable-skill/SKILL.md): generate one `app.py`, apply its schema, and serve its routes with the `pxt` CLI.
43
+
44
+ ## Compatibility
45
+
46
+ | Component | Supported line |
47
+ |---|---|
48
+ | Python | 3.11 or newer |
49
+ | Pixeltable | `>=0.7.10,<0.8` with the `serve` extra |
50
+ | MCP Python SDK | `>=2.2,<3` |
51
+ | Pixeltable skill | 2.12.0 |
52
+ | Production transport | local `stdio` |
53
+
54
+ The server is a **beta developer tool**. It runs with the permissions of the
55
+ process that launched it and can mutate the selected Pixeltable catalog. Point
56
+ `PIXELTABLE_MCP_PROJECT_ROOT` at the application directory and `PIXELTABLE_HOME`
57
+ at the intended catalog before startup. Both locations are fixed for the life of
58
+ the process. Use a separate catalog for evaluation and automated tests.
59
+
60
+ ## Install and connect
61
+
62
+ Install [`uv`](https://docs.astral.sh/uv/getting-started/installation/), then run the server from PyPI:
63
+
64
+ ```bash
65
+ uvx mcp-server-pixeltable-developer --version
66
+ ```
67
+
68
+ For reproducible development from a clone:
69
+
70
+ ```bash
71
+ git clone https://github.com/pixeltable/mcp-server-pixeltable-developer.git
72
+ cd mcp-server-pixeltable-developer
73
+ uv sync --frozen --extra test
74
+ ```
75
+
76
+ The repository also builds a container image that runs the same `stdio` server.
77
+ Mount your application directory and point both variables at the mounts; the
78
+ catalog is lost with the container unless you mount one too. On macOS, the host
79
+ paths must be shared with your container engine, or the mount lands inside its VM:
80
+
81
+ ```bash
82
+ docker build -t mcp-server-pixeltable-developer .
83
+ docker run --rm -i \
84
+ -e PIXELTABLE_MCP_PROJECT_ROOT=/work/app -e PIXELTABLE_HOME=/work/catalog \
85
+ -v /absolute/path/to/pixeltable-app:/work/app \
86
+ -v /absolute/path/to/.pixeltable:/work/catalog \
87
+ mcp-server-pixeltable-developer
88
+ ```
89
+
90
+ Configure a client to launch the server over `stdio`. Replace the application
91
+ project and catalog paths with absolute paths:
92
+
93
+ ```json
94
+ {
95
+ "mcpServers": {
96
+ "pixeltable": {
97
+ "command": "uvx",
98
+ "args": ["mcp-server-pixeltable-developer"],
99
+ "env": {
100
+ "PIXELTABLE_MCP_PROJECT_ROOT": "/absolute/path/to/pixeltable-app",
101
+ "PIXELTABLE_HOME": "/absolute/path/to/.pixeltable"
102
+ }
103
+ }
104
+ }
105
+ }
106
+ ```
107
+
108
+ Claude Code:
109
+
110
+ ```bash
111
+ claude mcp add pixeltable -e PIXELTABLE_MCP_PROJECT_ROOT=/absolute/path/to/pixeltable-app -e PIXELTABLE_HOME=/absolute/path/to/.pixeltable -- uvx mcp-server-pixeltable-developer
112
+ ```
113
+
114
+ To run a clone instead, use `"command": "uv"` with
115
+ `"args": ["run", "--directory", "/absolute/path/to/mcp-server-pixeltable-developer", "mcp-server-pixeltable-developer"]`.
116
+
117
+ Restart the client after changing its MCP configuration. Keep one server
118
+ process per catalog when performing schema or service mutations.
119
+
120
+ The `pxt` CLI talks to one local daemon per port (22089 by default), and a
121
+ `pxt` command from a different project root restarts that daemon. If you run
122
+ `pxt` for another project while the server is working, its calls can fail with
123
+ `RemoteDisconnected`. Give the server its own port by adding
124
+ `"PXT_PORT": "22090"` (any free port) to `env`.
125
+
126
+ ## Default interface
127
+
128
+ Version 0.2 exposes a focused interface instead of mirroring the whole
129
+ Pixeltable Python API.
130
+
131
+ ### Tools
132
+
133
+ | Area | Tools |
134
+ |---|---|
135
+ | Inspect | `pixeltable_list_catalog`, `pixeltable_describe`, `pixeltable_rows`, `pixeltable_get_row`, `pixeltable_errors` |
136
+ | Data | `pixeltable_insert_rows`, `pixeltable_recompute` |
137
+ | App scaffold | `pixeltable_scaffold_app` |
138
+ | Schema lifecycle | `pixeltable_schema_check`, `pixeltable_schema_diff`, `pixeltable_schema_update`, `pixeltable_schema_prune` |
139
+ | Service lifecycle | `pixeltable_service_check`, `pixeltable_service_diff`, `pixeltable_service_update`, `pixeltable_service_list`, `pixeltable_service_stop`, `pixeltable_service_prune` |
140
+
141
+ Read tools declare read-only MCP annotations. Mutation tools declare their
142
+ write and destructive behavior. Arguments and results use typed schemas, and
143
+ recoverable failures are returned as MCP tool errors so clients can retry with
144
+ corrected input.
145
+
146
+ ### Resources
147
+
148
+ | URI | Purpose |
149
+ |---|---|
150
+ | `pixeltable://status` | Server, dependency, transport, catalog, and unsafe-mode status |
151
+ | `pixeltable://catalog` | Current catalog inventory |
152
+ | `pixeltable://guidance/app` | Pixeltable 0.7 application workflow |
153
+ | `pixeltable://guidance/cloud` | Cloud preparation guidance; it does not deploy resources |
154
+
155
+ ### Prompts
156
+
157
+ - `pixeltable_build_app`
158
+ - `pixeltable_build_rag`
159
+ - `pixeltable_build_agent`
160
+ - `pixeltable_debug_computation`
161
+
162
+ The prompts are short task guides aligned with pixeltable-skill 2.12.0. The
163
+ skill remains the detailed source for provider output shapes, multimodal views,
164
+ indexes, tool calling, serving, debugging, and Cloud workflows.
165
+
166
+ ## Unsafe mode
167
+
168
+ Host-code execution, package installation, and browser display are disabled by
169
+ default. A trusted local user can opt in before starting the server:
170
+
171
+ ```bash
172
+ export PIXELTABLE_MCP_ENABLE_UNSAFE=1
173
+ ```
174
+
175
+ This adds:
176
+
177
+ - `pixeltable_unsafe_execute_python`
178
+ - `pixeltable_unsafe_install_package`
179
+ - `pixeltable_unsafe_display`
180
+
181
+ These tools are available only on `stdio`. They can execute arbitrary Python,
182
+ change the server environment, read files available to the server process, and
183
+ render untrusted content. Enable them only for a trusted, local MCP client and
184
+ a disposable development environment. Do not expose unsafe mode through an
185
+ HTTP transport.
186
+
187
+ The repository may use an in-process or HTTP harness in tests. HTTP is not a
188
+ supported production transport for version 0.2. A future HTTP release must add
189
+ authorization, concurrency and request limits, origin and host validation,
190
+ per-principal isolation, and an explicit threat model before it is supported.
191
+
192
+ ## Recommended Pixeltable workflow
193
+
194
+ Start an application with the current Pixeltable CLI:
195
+
196
+ ```bash
197
+ pip install 'pixeltable[serve]>=0.7.10,<0.8'
198
+ pxt init
199
+ pxt service example --out app.py
200
+ pxt schema check app.py
201
+ pxt schema diff app.py my_app
202
+ pxt schema update app.py my_app
203
+ pxt service check app.py
204
+ pxt service update app.py my_app
205
+ pxt service list
206
+ ```
207
+
208
+ `my_app` is a catalog directory. It is not a filesystem directory. Edit
209
+ `app.py` and apply the schema again when the model changes. Apply the service
210
+ again after route changes. Use `pxt service list` to discover the assigned URL.
211
+
212
+ The application file should declare `TableModel` classes and, when HTTP routes
213
+ are needed, a `FastAPIRouter`. Stored columns use annotations. Computed columns
214
+ use assignments. Types are non-nullable by default; write `T | None` for an
215
+ optional column. Do not use `pxt.Required`.
216
+
217
+ Schema updates intentionally require a review step. `schema_check` validates
218
+ the file, `schema_diff` previews catalog changes, and `schema_update` applies
219
+ them. Prune operations are separate because they can remove catalog objects.
220
+ To change a computed-column expression, edit it and apply the schema again:
221
+ the update keeps existing values, so run `pxt recompute my_app/docs COLUMN -f`
222
+ to refresh them. Changing a column's type is unsupported in place; rename a
223
+ computed column instead.
224
+
225
+ For Cloud, prepare the same `app.py`, sign in with `pxt login` (or set
226
+ `PIXELTABLE_API_KEY`), declare the target `pxt://org:db` in `pixeltable.toml`,
227
+ and review `pixeltable://guidance/cloud`. The MCP server does not create paid
228
+ resources or deploy to Cloud automatically.
229
+
230
+ ## Develop and verify
231
+
232
+ Use a disposable catalog:
233
+
234
+ ```bash
235
+ export PIXELTABLE_MCP_PROJECT_ROOT="$PWD"
236
+ export PIXELTABLE_HOME="$(mktemp -d)/catalog"
237
+ uv sync --frozen --extra test
238
+ uv run pytest -q
239
+ PIXELTABLE_DISABLE_STDOUT=1 uv run pytest --run-slow -q
240
+ uv run python list_tools.py
241
+ ./scripts/run-conformance.sh
242
+ ./scripts/build-mcpb.sh
243
+ ```
244
+
245
+ `build-mcpb.sh` writes the desktop-extension bundle to `dist/` from tracked files
246
+ only. Pushing a `v*` tag publishes to PyPI through trusted publishing once the test,
247
+ quality, bounds, conformance, and evaluation-artifact jobs pass; register this
248
+ repository, workflow `ci.yml`, and environment `pypi` as a trusted publisher on
249
+ PyPI one time before the first tag.
250
+
251
+ Run the MCP Inspector only as a local test harness:
252
+
253
+ ```bash
254
+ uv run mcp dev src/mcp_server_pixeltable_developer/server.py:mcp
255
+ ```
256
+
257
+ Before release, also run the latest-dependency compatibility job, the MCP
258
+ in-memory contract tests, the subprocess `stdio` smoke test, lint, type checks,
259
+ and package build verification described in the review report.
260
+
261
+ ## Privacy Policy
262
+
263
+ The server runs entirely on the machine that starts it. It collects no telemetry
264
+ and no analytics, and it sends nothing to Pixeltable or to any third party.
265
+
266
+ **What it handles.** The Pixeltable catalog at `PIXELTABLE_HOME` and the
267
+ application files under `PIXELTABLE_MCP_PROJECT_ROOT`, both chosen by you. Tool
268
+ results are returned to the MCP client that launched the server, which is how
269
+ your assistant reads them. Nothing else receives them.
270
+
271
+ **Storage and retention.** The server stores nothing of its own. Catalog data
272
+ stays in `PIXELTABLE_HOME` on your disk, under your control, and is removed when
273
+ you remove it.
274
+
275
+ **Secrets.** Command output is passed through a redactor that masks common
276
+ credential forms, including URL passwords and API tokens, before it reaches the
277
+ client.
278
+
279
+ **Third parties.** If your application declares computed columns that call model
280
+ providers, Pixeltable makes those calls with the credentials you configured. That
281
+ traffic is your application's, not this server's.
282
+
283
+ **Unsafe mode.** With `PIXELTABLE_MCP_ENABLE_UNSAFE=1`, the added tools execute
284
+ arbitrary Python, install packages, and read files available to the server
285
+ process. Enable it only on a trusted local machine.
286
+
287
+ **Contact.** Report privacy questions through
288
+ [GitHub issues](https://github.com/pixeltable/mcp-server-pixeltable-developer/issues).
289
+
290
+ ## Documentation
291
+
292
+ - [0.1.0 evidence review](docs/review-0.1.0.md)
293
+ - [0.2.0 implementation review](docs/review-0.2.0.md)
294
+ - [Migration from 0.1 to 0.2](docs/migration-0.1-to-0.2.md)
295
+ - [Agent evaluation protocol](evals/README.md)
296
+ - [Pixeltable documentation](https://docs.pixeltable.com/)
297
+ - [Pixeltable get started](https://www.pixeltable.com/get-started.md)
298
+ - [Pixeltable LLM reference](https://www.pixeltable.com/llms.txt)
299
+ - [MCP Python SDK 2 documentation](https://py.sdk.modelcontextprotocol.io/v2/)
300
+
301
+ ## License
302
+
303
+ Apache-2.0. See [LICENSE](LICENSE).