rhylthyme-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.
@@ -0,0 +1,191 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to the Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by the Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding any notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ Copyright 2024 Rhylthyme Contributors
180
+
181
+ Licensed under the Apache License, Version 2.0 (the "License");
182
+ you may not use this file except in compliance with the License.
183
+ You may obtain a copy of the License at
184
+
185
+ http://www.apache.org/licenses/LICENSE-2.0
186
+
187
+ Unless required by applicable law or agreed to in writing, software
188
+ distributed under the License is distributed on an "AS IS" BASIS,
189
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
190
+ See the License for the specific language governing permissions and
191
+ limitations under the License.
@@ -0,0 +1,61 @@
1
+ Metadata-Version: 2.4
2
+ Name: rhylthyme-mcp
3
+ Version: 0.1.0
4
+ Summary: MCP server for creating interactive schedule visualizations with Claude
5
+ License: Apache-2.0
6
+ Requires-Python: >=3.10
7
+ Description-Content-Type: text/markdown
8
+ License-File: LICENSE
9
+ Requires-Dist: mcp>=1.0.0
10
+ Requires-Dist: requests>=2.28.0
11
+ Dynamic: license-file
12
+
13
+ # rhylthyme-mcp
14
+
15
+ MCP server that lets Claude create interactive schedule visualizations from natural language.
16
+
17
+ ## Install
18
+
19
+ ```bash
20
+ pip install rhylthyme-mcp
21
+ ```
22
+
23
+ ## Setup
24
+
25
+ Add to your Claude Desktop config (`~/Library/Application Support/Claude/claude_desktop_config.json` on Mac):
26
+
27
+ ```json
28
+ {
29
+ "mcpServers": {
30
+ "rhylthyme": {
31
+ "command": "rhylthyme-mcp"
32
+ }
33
+ }
34
+ }
35
+ ```
36
+
37
+ Restart Claude Desktop.
38
+
39
+ ## Usage
40
+
41
+ Ask Claude to plan or schedule anything:
42
+
43
+ - "Plan a Thanksgiving dinner for 12 people"
44
+ - "Schedule an RNA extraction protocol"
45
+ - "Coordinate a bakery production run for tomorrow morning"
46
+ - "Make a schedule for cooking beef stew and a side salad"
47
+
48
+ Claude will generate a structured schedule and open an interactive timeline in your browser with playback controls, track visualization, and an itinerary view.
49
+
50
+ ## How it works
51
+
52
+ 1. You describe a process in natural language
53
+ 2. Claude generates a Rhylthyme program JSON (parallel tracks, durations, dependencies, resource constraints)
54
+ 3. The MCP server sends it to rhylthyme.com for rendering
55
+ 4. An interactive HTML timeline opens in your browser
56
+ 5. Program JSON is saved to `~/.rhylthyme/visualizations/`
57
+
58
+ ## Requirements
59
+
60
+ - Python 3.10+
61
+ - Claude Desktop with MCP support
@@ -0,0 +1,49 @@
1
+ # rhylthyme-mcp
2
+
3
+ MCP server that lets Claude create interactive schedule visualizations from natural language.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ pip install rhylthyme-mcp
9
+ ```
10
+
11
+ ## Setup
12
+
13
+ Add to your Claude Desktop config (`~/Library/Application Support/Claude/claude_desktop_config.json` on Mac):
14
+
15
+ ```json
16
+ {
17
+ "mcpServers": {
18
+ "rhylthyme": {
19
+ "command": "rhylthyme-mcp"
20
+ }
21
+ }
22
+ }
23
+ ```
24
+
25
+ Restart Claude Desktop.
26
+
27
+ ## Usage
28
+
29
+ Ask Claude to plan or schedule anything:
30
+
31
+ - "Plan a Thanksgiving dinner for 12 people"
32
+ - "Schedule an RNA extraction protocol"
33
+ - "Coordinate a bakery production run for tomorrow morning"
34
+ - "Make a schedule for cooking beef stew and a side salad"
35
+
36
+ Claude will generate a structured schedule and open an interactive timeline in your browser with playback controls, track visualization, and an itinerary view.
37
+
38
+ ## How it works
39
+
40
+ 1. You describe a process in natural language
41
+ 2. Claude generates a Rhylthyme program JSON (parallel tracks, durations, dependencies, resource constraints)
42
+ 3. The MCP server sends it to rhylthyme.com for rendering
43
+ 4. An interactive HTML timeline opens in your browser
44
+ 5. Program JSON is saved to `~/.rhylthyme/visualizations/`
45
+
46
+ ## Requirements
47
+
48
+ - Python 3.10+
49
+ - Claude Desktop with MCP support
@@ -0,0 +1,24 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "rhylthyme-mcp"
7
+ version = "0.1.0"
8
+ description = "MCP server for creating interactive schedule visualizations with Claude"
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ license = {text = "Apache-2.0"}
12
+ dependencies = [
13
+ "mcp>=1.0.0",
14
+ "requests>=2.28.0",
15
+ ]
16
+
17
+ [project.scripts]
18
+ rhylthyme-mcp = "rhylthyme_mcp.server:main"
19
+
20
+ [tool.setuptools]
21
+ package-dir = {"" = "src"}
22
+
23
+ [tool.setuptools.packages.find]
24
+ where = ["src"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1 @@
1
+ """Rhylthyme MCP Server - schedule visualization for Claude."""
@@ -0,0 +1,268 @@
1
+ #!/usr/bin/env python3
2
+ """
3
+ Rhylthyme MCP Server - Create interactive schedule visualizations from natural language.
4
+
5
+ Claude generates a Rhylthyme program JSON, this server sends it to rhylthyme.com
6
+ for rendering, and opens the resulting interactive timeline in the user's browser.
7
+
8
+ Install:
9
+ pip install rhylthyme-mcp
10
+
11
+ Add to Claude Desktop config (~/.config/Claude/claude_desktop_config.json):
12
+ {
13
+ "mcpServers": {
14
+ "rhylthyme": {
15
+ "command": "rhylthyme-mcp"
16
+ }
17
+ }
18
+ }
19
+ """
20
+
21
+ import json
22
+ import sys
23
+ import webbrowser
24
+ from pathlib import Path
25
+ from typing import Any
26
+
27
+ import requests
28
+
29
+ from mcp.server import Server
30
+ from mcp.server.stdio import stdio_server
31
+ from mcp.types import Tool, TextContent
32
+
33
+
34
+ API_URL = "https://www.rhylthyme.com/api/visualize"
35
+ VIZ_DIR = Path.home() / ".rhylthyme" / "visualizations"
36
+
37
+
38
+ VISUALIZE_TOOL_SCHEMA = {
39
+ "type": "object",
40
+ "properties": {
41
+ "program": {
42
+ "type": "object",
43
+ "description": "A Rhylthyme program JSON object describing a real-time schedule",
44
+ "properties": {
45
+ "programId": {
46
+ "type": "string",
47
+ "description": "Kebab-case identifier (e.g. 'thanksgiving-dinner')"
48
+ },
49
+ "name": {
50
+ "type": "string",
51
+ "description": "Human-readable name"
52
+ },
53
+ "description": {
54
+ "type": "string",
55
+ "description": "What this schedule coordinates"
56
+ },
57
+ "version": {
58
+ "type": "string",
59
+ "description": "Semver (default '1.0.0')"
60
+ },
61
+ "environmentType": {
62
+ "type": "string",
63
+ "description": "Environment type: kitchen, laboratory, manufacturing, event, airport, bakery, general"
64
+ },
65
+ "actors": {
66
+ "type": "integer",
67
+ "description": "Number of people/workers available (default 1)"
68
+ },
69
+ "tracks": {
70
+ "type": "array",
71
+ "description": "Parallel tracks of sequential steps",
72
+ "items": {
73
+ "type": "object",
74
+ "properties": {
75
+ "trackId": {"type": "string", "description": "Unique track ID (e.g. 'track-turkey')"},
76
+ "name": {"type": "string", "description": "Track display name"},
77
+ "steps": {
78
+ "type": "array",
79
+ "items": {
80
+ "type": "object",
81
+ "properties": {
82
+ "stepId": {"type": "string", "description": "Unique step ID"},
83
+ "name": {"type": "string", "description": "Step display name"},
84
+ "description": {"type": "string"},
85
+ "task": {"type": "string", "description": "Resource type this step uses (e.g. 'oven', 'stovetop', 'prep-work', 'centrifuge')"},
86
+ "duration": {
87
+ "type": "object",
88
+ "description": "Step duration",
89
+ "properties": {
90
+ "type": {"type": "string", "enum": ["fixed", "variable", "indefinite"]},
91
+ "seconds": {"type": "integer", "description": "Duration in seconds (1 min=60, 5 min=300, 30 min=1800, 1 hr=3600)"},
92
+ "minSeconds": {"type": "integer"},
93
+ "maxSeconds": {"type": "integer"}
94
+ }
95
+ },
96
+ "startTrigger": {
97
+ "type": "object",
98
+ "description": "When this step starts. Omit for first step in track (starts at program begin). Use previousStepComplete for sequential steps. Use stepComplete with a stepId from another track for cross-track dependencies.",
99
+ "properties": {
100
+ "type": {"type": "string", "enum": ["previousStepComplete", "stepComplete", "offset", "manual"]},
101
+ "stepId": {"type": "string", "description": "For stepComplete: the stepId this depends on (can be in another track)"},
102
+ "offsetSeconds": {"type": "integer"}
103
+ }
104
+ }
105
+ },
106
+ "required": ["stepId", "name", "duration", "task"]
107
+ }
108
+ }
109
+ },
110
+ "required": ["trackId", "name", "steps"]
111
+ }
112
+ },
113
+ "resourceConstraints": {
114
+ "type": "array",
115
+ "description": "Limits on concurrent resource usage",
116
+ "items": {
117
+ "type": "object",
118
+ "properties": {
119
+ "task": {"type": "string", "description": "Resource type name matching step task values"},
120
+ "maxConcurrent": {"type": "integer", "description": "Max steps using this resource at once"},
121
+ "description": {"type": "string"}
122
+ },
123
+ "required": ["task", "maxConcurrent"]
124
+ }
125
+ }
126
+ },
127
+ "required": ["programId", "name", "tracks"]
128
+ }
129
+ },
130
+ "required": ["program"]
131
+ }
132
+
133
+
134
+ def _save_and_open(program: dict, html_content: str) -> str:
135
+ """Save HTML + JSON to ~/.rhylthyme/visualizations/ and open in browser."""
136
+ VIZ_DIR.mkdir(parents=True, exist_ok=True)
137
+ program_id = program.get("programId", "untitled")
138
+ safe_id = "".join(c if c.isalnum() or c in "-_" else "-" for c in program_id)
139
+
140
+ html_path = VIZ_DIR / f"{safe_id}.html"
141
+ json_path = VIZ_DIR / f"{safe_id}.json"
142
+
143
+ html_path.write_text(html_content, encoding="utf-8")
144
+ json_path.write_text(json.dumps(program, indent=2), encoding="utf-8")
145
+
146
+ webbrowser.open(f"file://{html_path}")
147
+ return str(html_path)
148
+
149
+
150
+ def create_server() -> Server:
151
+ """Create and configure the MCP server."""
152
+ server = Server("rhylthyme")
153
+
154
+ @server.list_tools()
155
+ async def list_tools() -> list[Tool]:
156
+ return [
157
+ Tool(
158
+ name="visualize_schedule",
159
+ description="""Create an interactive schedule visualization and open it in the browser.
160
+
161
+ Takes a Rhylthyme program JSON describing a real-time coordinated workflow and sends it to
162
+ rhylthyme.com to generate an interactive D3.js timeline with playback controls.
163
+
164
+ USE THIS TOOL when a user asks you to plan, schedule, or coordinate any multi-step process:
165
+ - Cooking: "Plan a Thanksgiving dinner" or "Make a schedule for cooking lasagna"
166
+ - Lab work: "Schedule an RNA extraction protocol"
167
+ - Events: "Coordinate an airport gate turnaround"
168
+ - Manufacturing: "Plan a bakery production run"
169
+ - Any process with parallel tasks, timing, and resource constraints
170
+
171
+ HOW TO BUILD THE PROGRAM:
172
+ 1. Break the process into parallel tracks (e.g., one track per dish, per workstation, per sub-process)
173
+ 2. Each track has sequential steps with durations in seconds (1 min = 60, 1 hr = 3600)
174
+ 3. Steps within a track auto-chain (use startTrigger type "previousStepComplete" after the first step)
175
+ 4. Cross-track dependencies use startTrigger type "stepComplete" with the stepId of the dependency
176
+ 5. The first step in each track starts when the program starts (no startTrigger needed)
177
+ 6. Add resourceConstraints to limit concurrent usage (e.g., oven maxConcurrent=1)
178
+ 7. Set "task" on each step to the resource type it uses (e.g., "oven", "stovetop", "prep-work")
179
+
180
+ TIPS:
181
+ - For meals, work backwards from serving time so everything finishes together
182
+ - Use realistic durations based on actual cooking/process times
183
+ - Group related steps into tracks named after the dish or sub-process
184
+ - Add descriptions to steps explaining what to do""",
185
+ inputSchema=VISUALIZE_TOOL_SCHEMA
186
+ )
187
+ ]
188
+
189
+ @server.call_tool()
190
+ async def call_tool(name: str, arguments: dict[str, Any]) -> list[TextContent]:
191
+ if name != "visualize_schedule":
192
+ return [TextContent(type="text", text=f"Unknown tool: {name}")]
193
+
194
+ program = arguments.get("program")
195
+ if not program:
196
+ return [TextContent(type="text", text="Error: No program provided")]
197
+
198
+ for field in ("programId", "name", "tracks"):
199
+ if not program.get(field):
200
+ return [TextContent(type="text", text=f"Error: program must have '{field}'")]
201
+
202
+ try:
203
+ # Send to rhylthyme.com for visualization
204
+ resp = requests.post(
205
+ API_URL,
206
+ json={"program": program},
207
+ headers={"Content-Type": "application/json"},
208
+ timeout=30,
209
+ )
210
+
211
+ if resp.status_code != 200:
212
+ error_detail = resp.text[:200]
213
+ return [TextContent(type="text", text=f"Error from rhylthyme.com ({resp.status_code}): {error_detail}")]
214
+
215
+ html_content = resp.text
216
+
217
+ # Save locally and open in browser
218
+ saved_path = _save_and_open(program, html_content)
219
+
220
+ # Build response summary
221
+ track_count = len(program.get("tracks", []))
222
+ step_count = sum(len(t.get("steps", [])) for t in program.get("tracks", []))
223
+
224
+ tracks_summary = ""
225
+ for t in program.get("tracks", []):
226
+ step_names = [s.get("name", "unnamed") for s in t.get("steps", [])]
227
+ tracks_summary += f"\n - **{t.get('name', 'Unnamed')}**: {', '.join(step_names)}"
228
+
229
+ return [TextContent(
230
+ type="text",
231
+ text=f"""Visualization for "{program.get('name')}" opened in your browser!
232
+
233
+ **Schedule overview:**
234
+ - {track_count} parallel track(s), {step_count} total step(s)
235
+ - Environment: {program.get('environmentType', 'general')}
236
+
237
+ **Tracks:**{tracks_summary}
238
+
239
+ **Saved to:** {saved_path}
240
+
241
+ The interactive timeline is now open. You can start/pause playback, switch between timeline and itinerary views, and adjust speed."""
242
+ )]
243
+
244
+ except requests.Timeout:
245
+ return [TextContent(type="text", text="Error: Request to rhylthyme.com timed out. Try again.")]
246
+ except requests.ConnectionError:
247
+ return [TextContent(type="text", text="Error: Could not connect to rhylthyme.com. Check your internet connection.")]
248
+ except Exception as e:
249
+ return [TextContent(type="text", text=f"Error: {str(e)}")]
250
+
251
+ return server
252
+
253
+
254
+ async def _run():
255
+ """Run the MCP server (async)."""
256
+ server = create_server()
257
+ async with stdio_server() as (read_stream, write_stream):
258
+ await server.run(read_stream, write_stream, server.create_initialization_options())
259
+
260
+
261
+ def main():
262
+ """Entry point for the rhylthyme-mcp command."""
263
+ import asyncio
264
+ asyncio.run(_run())
265
+
266
+
267
+ if __name__ == "__main__":
268
+ main()
@@ -0,0 +1,61 @@
1
+ Metadata-Version: 2.4
2
+ Name: rhylthyme-mcp
3
+ Version: 0.1.0
4
+ Summary: MCP server for creating interactive schedule visualizations with Claude
5
+ License: Apache-2.0
6
+ Requires-Python: >=3.10
7
+ Description-Content-Type: text/markdown
8
+ License-File: LICENSE
9
+ Requires-Dist: mcp>=1.0.0
10
+ Requires-Dist: requests>=2.28.0
11
+ Dynamic: license-file
12
+
13
+ # rhylthyme-mcp
14
+
15
+ MCP server that lets Claude create interactive schedule visualizations from natural language.
16
+
17
+ ## Install
18
+
19
+ ```bash
20
+ pip install rhylthyme-mcp
21
+ ```
22
+
23
+ ## Setup
24
+
25
+ Add to your Claude Desktop config (`~/Library/Application Support/Claude/claude_desktop_config.json` on Mac):
26
+
27
+ ```json
28
+ {
29
+ "mcpServers": {
30
+ "rhylthyme": {
31
+ "command": "rhylthyme-mcp"
32
+ }
33
+ }
34
+ }
35
+ ```
36
+
37
+ Restart Claude Desktop.
38
+
39
+ ## Usage
40
+
41
+ Ask Claude to plan or schedule anything:
42
+
43
+ - "Plan a Thanksgiving dinner for 12 people"
44
+ - "Schedule an RNA extraction protocol"
45
+ - "Coordinate a bakery production run for tomorrow morning"
46
+ - "Make a schedule for cooking beef stew and a side salad"
47
+
48
+ Claude will generate a structured schedule and open an interactive timeline in your browser with playback controls, track visualization, and an itinerary view.
49
+
50
+ ## How it works
51
+
52
+ 1. You describe a process in natural language
53
+ 2. Claude generates a Rhylthyme program JSON (parallel tracks, durations, dependencies, resource constraints)
54
+ 3. The MCP server sends it to rhylthyme.com for rendering
55
+ 4. An interactive HTML timeline opens in your browser
56
+ 5. Program JSON is saved to `~/.rhylthyme/visualizations/`
57
+
58
+ ## Requirements
59
+
60
+ - Python 3.10+
61
+ - Claude Desktop with MCP support
@@ -0,0 +1,11 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ src/rhylthyme_mcp/__init__.py
5
+ src/rhylthyme_mcp/server.py
6
+ src/rhylthyme_mcp.egg-info/PKG-INFO
7
+ src/rhylthyme_mcp.egg-info/SOURCES.txt
8
+ src/rhylthyme_mcp.egg-info/dependency_links.txt
9
+ src/rhylthyme_mcp.egg-info/entry_points.txt
10
+ src/rhylthyme_mcp.egg-info/requires.txt
11
+ src/rhylthyme_mcp.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ rhylthyme-mcp = rhylthyme_mcp.server:main
@@ -0,0 +1,2 @@
1
+ mcp>=1.0.0
2
+ requests>=2.28.0
@@ -0,0 +1 @@
1
+ rhylthyme_mcp