able-mcp-notable 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.
- able_mcp_notable-0.1.0/.gitignore +10 -0
- able_mcp_notable-0.1.0/CHANGELOG.md +20 -0
- able_mcp_notable-0.1.0/LICENSE +201 -0
- able_mcp_notable-0.1.0/PKG-INFO +87 -0
- able_mcp_notable-0.1.0/README.md +62 -0
- able_mcp_notable-0.1.0/pyproject.toml +42 -0
- able_mcp_notable-0.1.0/src/notable_mcp/__init__.py +0 -0
- able_mcp_notable-0.1.0/src/notable_mcp/server.py +129 -0
- able_mcp_notable-0.1.0/src/notable_mcp/simulator.py +92 -0
- able_mcp_notable-0.1.0/src/notable_mcp/tools/__init__.py +0 -0
- able_mcp_notable-0.1.0/src/notable_mcp/tools/control.py +57 -0
- able_mcp_notable-0.1.0/src/notable_mcp/tools/liquid.py +38 -0
- able_mcp_notable-0.1.0/src/notable_mcp/tools/modules.py +46 -0
- able_mcp_notable-0.1.0/src/notable_mcp/tools/protocol.py +75 -0
- able_mcp_notable-0.1.0/src/notable_mcp/tools/status.py +17 -0
- able_mcp_notable-0.1.0/src/notable_mcp/tools_schema.py +191 -0
- able_mcp_notable-0.1.0/tests/test_protocol_tools.py +190 -0
- able_mcp_notable-0.1.0/tests/test_server_routing.py +134 -0
- able_mcp_notable-0.1.0/tests/test_tools_control.py +69 -0
- able_mcp_notable-0.1.0/tests/test_tools_liquid.py +58 -0
- able_mcp_notable-0.1.0/tests/test_tools_modules.py +58 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `able-mcp-notable` will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [0.1.0] - 2026-05-13
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- Initial release. MCP server for the ABLE Labs Notable 8-channel liquid-handling robot.
|
|
14
|
+
- Liquid handling, module control, and device configuration tools (SPEC-PROTO-001).
|
|
15
|
+
- Protocol authoring tools: create / add_step / save / load / list / validate / simulate (SPEC-PROTO-001).
|
|
16
|
+
- Real-device mode infrastructure (App Server bundling and lifecycle, SPEC-DIST-001).
|
|
17
|
+
- Console entry point `able-mcp-notable`.
|
|
18
|
+
|
|
19
|
+
### Known limitations
|
|
20
|
+
- Real-device mode (`simulate: false`) requires App Server binaries that are not yet published. Setting `simulate: false` will raise `BinaryDownloadError` until v0.2.0. Default simulation mode works without external dependencies.
|
|
@@ -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 describing the origin of the Work and
|
|
141
|
+
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 accept and charge a
|
|
167
|
+
fee for accepting support, warranty, indemnity, or other liability
|
|
168
|
+
obligations and/or rights consistent with this License. However, in
|
|
169
|
+
accepting such obligations, You may act only on Your own behalf
|
|
170
|
+
and on Your sole responsibility, not on behalf of any other
|
|
171
|
+
Contributor, and only if You agree to indemnify, defend, and hold
|
|
172
|
+
each Contributor harmless for any liability incurred by, or claims
|
|
173
|
+
asserted against, such Contributor by reason of your accepting any
|
|
174
|
+
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 2026 ABLE Labs
|
|
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,87 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: able-mcp-notable
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: MCP server for ABLE Labs Notable liquid-handling robot — exposes device control tools to Claude via the Model Context Protocol.
|
|
5
|
+
Project-URL: Homepage, https://github.com/ABLE-Labs/mcp
|
|
6
|
+
Project-URL: Issues, https://github.com/ABLE-Labs/mcp/issues
|
|
7
|
+
Project-URL: Documentation, https://github.com/ABLE-Labs/mcp#readme
|
|
8
|
+
Author-email: ABLE Labs <support@ablelabs.com>
|
|
9
|
+
License-Expression: Apache-2.0
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: ablelabs,claude,mcp,robotics
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Intended Audience :: Science/Research
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Topic :: Scientific/Engineering
|
|
20
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
21
|
+
Requires-Python: >=3.11
|
|
22
|
+
Requires-Dist: able-mcp-core>=0.1.0
|
|
23
|
+
Requires-Dist: mcp>=1.0.0
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
|
|
26
|
+
# able-mcp-notable
|
|
27
|
+
|
|
28
|
+
MCP server for the ABLE Labs Notable 8-channel liquid-handling robot.
|
|
29
|
+
Exposes device control tools (liquid handling, module control, device
|
|
30
|
+
configuration) and protocol authoring tools (create / save / load / simulate)
|
|
31
|
+
to Claude and any other MCP-compatible client.
|
|
32
|
+
|
|
33
|
+
## v0.1.0 — simulation only
|
|
34
|
+
|
|
35
|
+
This release runs in **simulation mode only**. You can author protocols
|
|
36
|
+
in natural language with Claude, save them as JSON, and step-simulate
|
|
37
|
+
them — all without any physical device. Real-device mode (which spawns
|
|
38
|
+
a bundled App Server binary) is implemented in code (SPEC-DIST-001) but
|
|
39
|
+
the App Server binaries are scheduled for **v0.2.0**. Enabling
|
|
40
|
+
`simulate: false` in this release will fail with `BinaryDownloadError`.
|
|
41
|
+
|
|
42
|
+
## Install
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
# One-shot run (recommended for Claude Desktop)
|
|
46
|
+
uvx able-mcp-notable
|
|
47
|
+
|
|
48
|
+
# Or install into a Python environment
|
|
49
|
+
pip install able-mcp-notable
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
`able-mcp-core` is pulled in automatically as a dependency.
|
|
53
|
+
|
|
54
|
+
## Claude Desktop configuration
|
|
55
|
+
|
|
56
|
+
Add to `claude_desktop_config.json`:
|
|
57
|
+
|
|
58
|
+
```json
|
|
59
|
+
{
|
|
60
|
+
"mcpServers": {
|
|
61
|
+
"notable": {
|
|
62
|
+
"command": "uvx",
|
|
63
|
+
"args": ["able-mcp-notable"]
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
No additional configuration is required for v0.1.0 — the server starts
|
|
70
|
+
in simulation mode by default.
|
|
71
|
+
|
|
72
|
+
## What you can do
|
|
73
|
+
|
|
74
|
+
- Ask Claude to create a protocol step-by-step ("물 50uL를 A1에서 빨아서
|
|
75
|
+
B1에 분주하는 프로토콜 만들어줘")
|
|
76
|
+
- Save the resulting protocol JSON to `~/.able-mcp/protocols/`
|
|
77
|
+
- Re-load and simulate any saved protocol
|
|
78
|
+
- Validate protocols against device-specific step rules
|
|
79
|
+
|
|
80
|
+
## Links
|
|
81
|
+
|
|
82
|
+
- Repository: <https://github.com/ABLE-Labs/mcp>
|
|
83
|
+
- Issues: <https://github.com/ABLE-Labs/mcp/issues>
|
|
84
|
+
|
|
85
|
+
## License
|
|
86
|
+
|
|
87
|
+
Apache-2.0. See the `LICENSE` file shipped with the distribution.
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# able-mcp-notable
|
|
2
|
+
|
|
3
|
+
MCP server for the ABLE Labs Notable 8-channel liquid-handling robot.
|
|
4
|
+
Exposes device control tools (liquid handling, module control, device
|
|
5
|
+
configuration) and protocol authoring tools (create / save / load / simulate)
|
|
6
|
+
to Claude and any other MCP-compatible client.
|
|
7
|
+
|
|
8
|
+
## v0.1.0 — simulation only
|
|
9
|
+
|
|
10
|
+
This release runs in **simulation mode only**. You can author protocols
|
|
11
|
+
in natural language with Claude, save them as JSON, and step-simulate
|
|
12
|
+
them — all without any physical device. Real-device mode (which spawns
|
|
13
|
+
a bundled App Server binary) is implemented in code (SPEC-DIST-001) but
|
|
14
|
+
the App Server binaries are scheduled for **v0.2.0**. Enabling
|
|
15
|
+
`simulate: false` in this release will fail with `BinaryDownloadError`.
|
|
16
|
+
|
|
17
|
+
## Install
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
# One-shot run (recommended for Claude Desktop)
|
|
21
|
+
uvx able-mcp-notable
|
|
22
|
+
|
|
23
|
+
# Or install into a Python environment
|
|
24
|
+
pip install able-mcp-notable
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
`able-mcp-core` is pulled in automatically as a dependency.
|
|
28
|
+
|
|
29
|
+
## Claude Desktop configuration
|
|
30
|
+
|
|
31
|
+
Add to `claude_desktop_config.json`:
|
|
32
|
+
|
|
33
|
+
```json
|
|
34
|
+
{
|
|
35
|
+
"mcpServers": {
|
|
36
|
+
"notable": {
|
|
37
|
+
"command": "uvx",
|
|
38
|
+
"args": ["able-mcp-notable"]
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
No additional configuration is required for v0.1.0 — the server starts
|
|
45
|
+
in simulation mode by default.
|
|
46
|
+
|
|
47
|
+
## What you can do
|
|
48
|
+
|
|
49
|
+
- Ask Claude to create a protocol step-by-step ("물 50uL를 A1에서 빨아서
|
|
50
|
+
B1에 분주하는 프로토콜 만들어줘")
|
|
51
|
+
- Save the resulting protocol JSON to `~/.able-mcp/protocols/`
|
|
52
|
+
- Re-load and simulate any saved protocol
|
|
53
|
+
- Validate protocols against device-specific step rules
|
|
54
|
+
|
|
55
|
+
## Links
|
|
56
|
+
|
|
57
|
+
- Repository: <https://github.com/ABLE-Labs/mcp>
|
|
58
|
+
- Issues: <https://github.com/ABLE-Labs/mcp/issues>
|
|
59
|
+
|
|
60
|
+
## License
|
|
61
|
+
|
|
62
|
+
Apache-2.0. See the `LICENSE` file shipped with the distribution.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "able-mcp-notable"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "MCP server for ABLE Labs Notable liquid-handling robot — exposes device control tools to Claude via the Model Context Protocol."
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
license = "Apache-2.0"
|
|
7
|
+
requires-python = ">=3.11"
|
|
8
|
+
keywords = ["mcp", "claude", "ablelabs", "robotics"]
|
|
9
|
+
authors = [{ name = "ABLE Labs", email = "support@ablelabs.com" }]
|
|
10
|
+
classifiers = [
|
|
11
|
+
"Development Status :: 4 - Beta",
|
|
12
|
+
"Intended Audience :: Developers",
|
|
13
|
+
"Intended Audience :: Science/Research",
|
|
14
|
+
"Operating System :: OS Independent",
|
|
15
|
+
"Programming Language :: Python :: 3",
|
|
16
|
+
"Programming Language :: Python :: 3.11",
|
|
17
|
+
"Programming Language :: Python :: 3.12",
|
|
18
|
+
"Topic :: Scientific/Engineering",
|
|
19
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
20
|
+
]
|
|
21
|
+
dependencies = [
|
|
22
|
+
"able-mcp-core>=0.1.0",
|
|
23
|
+
"mcp>=1.0.0",
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
[project.urls]
|
|
27
|
+
Homepage = "https://github.com/ABLE-Labs/mcp"
|
|
28
|
+
Issues = "https://github.com/ABLE-Labs/mcp/issues"
|
|
29
|
+
Documentation = "https://github.com/ABLE-Labs/mcp#readme"
|
|
30
|
+
|
|
31
|
+
[project.scripts]
|
|
32
|
+
able-mcp-notable = "notable_mcp.server:main"
|
|
33
|
+
|
|
34
|
+
[build-system]
|
|
35
|
+
requires = ["hatchling"]
|
|
36
|
+
build-backend = "hatchling.build"
|
|
37
|
+
|
|
38
|
+
[tool.hatch.build.targets.wheel]
|
|
39
|
+
packages = ["src/notable_mcp"]
|
|
40
|
+
|
|
41
|
+
[tool.uv.sources]
|
|
42
|
+
able-mcp-core = { workspace = true }
|
|
File without changes
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import asyncio
|
|
2
|
+
from mcp.server import Server
|
|
3
|
+
from mcp.server.stdio import stdio_server
|
|
4
|
+
from mcp import types
|
|
5
|
+
from mcp_core.adapters.notable_golang import NotableGolangAdapter
|
|
6
|
+
from mcp_core.config import load_config
|
|
7
|
+
from mcp_core.protocol import ProtocolRegistry
|
|
8
|
+
from mcp_core.protocol.dispatch import dispatch_protocol_tool
|
|
9
|
+
from .simulator import NotableSimulator
|
|
10
|
+
from .tools_schema import all_tools
|
|
11
|
+
from .tools import protocol as protocol_tool_handlers
|
|
12
|
+
from .tools.control import (
|
|
13
|
+
handle_compile_protocol,
|
|
14
|
+
handle_start_run, handle_stop_run, handle_pause_run,
|
|
15
|
+
handle_resume_run, handle_reset_robot, handle_emergency_stop,
|
|
16
|
+
)
|
|
17
|
+
from .tools.status import handle_get_robot_status, handle_get_run_status
|
|
18
|
+
from .tools.liquid import (
|
|
19
|
+
handle_aspirate, handle_dispense, handle_mix,
|
|
20
|
+
handle_pick_up_tip, handle_drop_tip,
|
|
21
|
+
)
|
|
22
|
+
from .tools.modules import (
|
|
23
|
+
handle_initialize_robot, handle_configure_pipette, handle_configure_deck,
|
|
24
|
+
handle_shake_plate, handle_control_odtc_door, handle_run_thermocycler,
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
SERVER_INSTRUCTIONS = """
|
|
29
|
+
NOTABLE 8ch liquid handler MCP server.
|
|
30
|
+
Always check get_robot_status before controlling the device.
|
|
31
|
+
Use emergency_stop for immediate halt.
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
TOOLS = all_tools()
|
|
35
|
+
_REGISTRY = ProtocolRegistry()
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def create_app(adapter) -> Server:
|
|
39
|
+
app = Server("notable-mcp", instructions=SERVER_INSTRUCTIONS)
|
|
40
|
+
|
|
41
|
+
@app.list_tools()
|
|
42
|
+
async def list_tools():
|
|
43
|
+
return TOOLS
|
|
44
|
+
|
|
45
|
+
@app.call_tool()
|
|
46
|
+
async def call_tool(name: str, arguments: dict):
|
|
47
|
+
proto_text = await dispatch_protocol_tool(
|
|
48
|
+
name,
|
|
49
|
+
arguments,
|
|
50
|
+
tools_module=protocol_tool_handlers,
|
|
51
|
+
registry=_REGISTRY,
|
|
52
|
+
simulator=adapter,
|
|
53
|
+
)
|
|
54
|
+
if proto_text is not None:
|
|
55
|
+
return [types.TextContent(type="text", text=proto_text)]
|
|
56
|
+
match name:
|
|
57
|
+
case "compile_protocol":
|
|
58
|
+
text = await handle_compile_protocol(adapter, arguments["protocol_id"])
|
|
59
|
+
case "get_run_status":
|
|
60
|
+
text = await handle_get_run_status(adapter, arguments["run_id"])
|
|
61
|
+
case "get_robot_status":
|
|
62
|
+
text = await handle_get_robot_status(adapter)
|
|
63
|
+
case "start_run":
|
|
64
|
+
text = await handle_start_run(adapter, arguments["run_id"])
|
|
65
|
+
case "stop_run":
|
|
66
|
+
text = await handle_stop_run(adapter, arguments["run_id"])
|
|
67
|
+
case "pause_run":
|
|
68
|
+
text = await handle_pause_run(adapter, arguments["run_id"])
|
|
69
|
+
case "resume_run":
|
|
70
|
+
text = await handle_resume_run(adapter, arguments["run_id"])
|
|
71
|
+
case "reset_robot":
|
|
72
|
+
text = await handle_reset_robot(adapter)
|
|
73
|
+
case "emergency_stop":
|
|
74
|
+
text = await handle_emergency_stop(adapter)
|
|
75
|
+
case "aspirate":
|
|
76
|
+
text = await handle_aspirate(adapter, arguments["volume_ul"], arguments.get("flow_rate"))
|
|
77
|
+
case "dispense":
|
|
78
|
+
text = await handle_dispense(adapter, arguments["volume_ul"], arguments.get("flow_rate"))
|
|
79
|
+
case "mix":
|
|
80
|
+
text = await handle_mix(adapter, arguments["volume_ul"], arguments.get("repetitions", 3), arguments.get("flow_rate"))
|
|
81
|
+
case "pick_up_tip":
|
|
82
|
+
text = await handle_pick_up_tip(adapter)
|
|
83
|
+
case "drop_tip":
|
|
84
|
+
text = await handle_drop_tip(adapter)
|
|
85
|
+
case "initialize_robot":
|
|
86
|
+
text = await handle_initialize_robot(adapter)
|
|
87
|
+
case "configure_pipette":
|
|
88
|
+
text = await handle_configure_pipette(adapter, arguments["pipette_config"])
|
|
89
|
+
case "configure_deck":
|
|
90
|
+
text = await handle_configure_deck(adapter, arguments["deck_config"])
|
|
91
|
+
case "shake_plate":
|
|
92
|
+
text = await handle_shake_plate(adapter, arguments["rpm"], arguments["duration_sec"])
|
|
93
|
+
case "control_odtc_door":
|
|
94
|
+
text = await handle_control_odtc_door(adapter, arguments["action"])
|
|
95
|
+
case "run_thermocycler":
|
|
96
|
+
text = await handle_run_thermocycler(adapter, arguments["method_name"])
|
|
97
|
+
case _:
|
|
98
|
+
text = f"Unknown tool: {name}"
|
|
99
|
+
return [types.TextContent(type="text", text=text)]
|
|
100
|
+
|
|
101
|
+
return app
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
def main():
|
|
105
|
+
cfg = load_config("notable", default_port=8080)
|
|
106
|
+
|
|
107
|
+
if cfg.simulate:
|
|
108
|
+
async def run_simulate():
|
|
109
|
+
adapter = NotableSimulator()
|
|
110
|
+
app = create_app(adapter)
|
|
111
|
+
async with stdio_server() as (read_stream, write_stream):
|
|
112
|
+
await app.run(read_stream, write_stream, app.create_initialization_options())
|
|
113
|
+
|
|
114
|
+
asyncio.run(run_simulate())
|
|
115
|
+
return
|
|
116
|
+
|
|
117
|
+
# Real-device path: import lifecycle lazily so simulate mode never loads it.
|
|
118
|
+
from mcp_core.app_server import AppServerLifecycle
|
|
119
|
+
|
|
120
|
+
async def run_real():
|
|
121
|
+
async with AppServerLifecycle("notable-mcp", cfg) as running:
|
|
122
|
+
adapter = NotableGolangAdapter(
|
|
123
|
+
base_url=f"http://{running.host}:{running.port}"
|
|
124
|
+
)
|
|
125
|
+
app = create_app(adapter)
|
|
126
|
+
async with stdio_server() as (read_stream, write_stream):
|
|
127
|
+
await app.run(read_stream, write_stream, app.create_initialization_options())
|
|
128
|
+
|
|
129
|
+
asyncio.run(run_real())
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import asyncio
|
|
2
|
+
|
|
3
|
+
from mcp_core.simulator.base import BaseSimulator
|
|
4
|
+
from mcp_core.protocol.schema import ProtocolStep
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class NotableSimulator(BaseSimulator):
|
|
8
|
+
"""NOTABLE 8ch device-specific simulator."""
|
|
9
|
+
|
|
10
|
+
async def aspirate(self, volume_ul: float, flow_rate: float | None = None) -> dict:
|
|
11
|
+
await asyncio.sleep(0.1)
|
|
12
|
+
return {"status": "ok", "message": f"[SIM] Aspirated {volume_ul}µL"}
|
|
13
|
+
|
|
14
|
+
async def dispense(self, volume_ul: float, flow_rate: float | None = None) -> dict:
|
|
15
|
+
await asyncio.sleep(0.1)
|
|
16
|
+
return {"status": "ok", "message": f"[SIM] Dispensed {volume_ul}µL"}
|
|
17
|
+
|
|
18
|
+
async def mix(self, volume_ul: float, repetitions: int = 3, flow_rate: float | None = None) -> dict:
|
|
19
|
+
await asyncio.sleep(0.1)
|
|
20
|
+
return {"status": "ok", "message": f"[SIM] Mixed {volume_ul}µL x{repetitions}"}
|
|
21
|
+
|
|
22
|
+
async def pick_up_tip(self) -> dict:
|
|
23
|
+
await asyncio.sleep(0.1)
|
|
24
|
+
return {"status": "ok", "message": "[SIM] Tip picked up"}
|
|
25
|
+
|
|
26
|
+
async def drop_tip(self) -> dict:
|
|
27
|
+
await asyncio.sleep(0.1)
|
|
28
|
+
return {"status": "ok", "message": "[SIM] Tip dropped"}
|
|
29
|
+
|
|
30
|
+
async def initialize_robot(self) -> dict:
|
|
31
|
+
await asyncio.sleep(0.5)
|
|
32
|
+
return {"status": "ok", "message": "[SIM] Robot initialized"}
|
|
33
|
+
|
|
34
|
+
async def configure_pipette(self, pipette_config: dict) -> dict:
|
|
35
|
+
return {"status": "ok", "message": f"[SIM] Pipette configured: {pipette_config}"}
|
|
36
|
+
|
|
37
|
+
async def configure_deck(self, deck_config: dict) -> dict:
|
|
38
|
+
return {"status": "ok", "message": f"[SIM] Deck configured: {deck_config}"}
|
|
39
|
+
|
|
40
|
+
async def shake_plate(self, rpm: int, duration_sec: float) -> dict:
|
|
41
|
+
await asyncio.sleep(0.1)
|
|
42
|
+
return {"status": "ok", "message": f"[SIM] Shaking at {rpm} RPM for {duration_sec}s"}
|
|
43
|
+
|
|
44
|
+
async def control_odtc_door(self, action: str) -> dict:
|
|
45
|
+
return {"status": "ok", "message": f"[SIM] ODTC door {action}"}
|
|
46
|
+
|
|
47
|
+
async def run_thermocycler(self, method_name: str) -> dict:
|
|
48
|
+
await asyncio.sleep(0.2)
|
|
49
|
+
return {"status": "ok", "message": f"[SIM] Thermocycler method '{method_name}' started"}
|
|
50
|
+
|
|
51
|
+
async def simulate_step(self, step: ProtocolStep) -> str:
|
|
52
|
+
"""Dispatch one protocol step for NOTABLE 8ch."""
|
|
53
|
+
kind = step.step_type
|
|
54
|
+
params = step.params or {}
|
|
55
|
+
try:
|
|
56
|
+
if kind == "aspirate":
|
|
57
|
+
volume = params.get("volume", params.get("volume_ul", 0))
|
|
58
|
+
well = params.get("well", params.get("location", ""))
|
|
59
|
+
await self.aspirate(float(volume), params.get("flow_rate"))
|
|
60
|
+
return f"aspirate {volume}uL at {well}".strip()
|
|
61
|
+
if kind == "dispense":
|
|
62
|
+
volume = params.get("volume", params.get("volume_ul", 0))
|
|
63
|
+
well = params.get("well", params.get("location", ""))
|
|
64
|
+
await self.dispense(float(volume), params.get("flow_rate"))
|
|
65
|
+
return f"dispense {volume}uL at {well}".strip()
|
|
66
|
+
if kind == "mix":
|
|
67
|
+
volume = params.get("volume", params.get("volume_ul", 0))
|
|
68
|
+
reps = int(params.get("repetitions", params.get("reps", 3)))
|
|
69
|
+
await self.mix(float(volume), reps, params.get("flow_rate"))
|
|
70
|
+
return f"mix {volume}uL x{reps}"
|
|
71
|
+
if kind == "pick_up_tip":
|
|
72
|
+
await self.pick_up_tip()
|
|
73
|
+
return f"pick_up_tip {params.get('tip', '')}".strip()
|
|
74
|
+
if kind == "drop_tip":
|
|
75
|
+
await self.drop_tip()
|
|
76
|
+
return "drop_tip"
|
|
77
|
+
if kind == "shake_plate":
|
|
78
|
+
rpm = int(params.get("rpm", 0))
|
|
79
|
+
duration = float(params.get("duration_sec", params.get("duration", 0.0)))
|
|
80
|
+
await self.shake_plate(rpm, duration)
|
|
81
|
+
return f"shake_plate {rpm}rpm {duration}s"
|
|
82
|
+
if kind == "control_odtc_door":
|
|
83
|
+
action = str(params.get("action", "open"))
|
|
84
|
+
await self.control_odtc_door(action)
|
|
85
|
+
return f"control_odtc_door {action}"
|
|
86
|
+
if kind == "run_thermocycler":
|
|
87
|
+
method = str(params.get("method_name", params.get("method", "")))
|
|
88
|
+
await self.run_thermocycler(method)
|
|
89
|
+
return f"run_thermocycler {method}"
|
|
90
|
+
except Exception as exc: # noqa: BLE001
|
|
91
|
+
return f"{kind} FAIL: {exc}"
|
|
92
|
+
return await super().simulate_step(step)
|
|
File without changes
|