glados-mcp 0.2.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.
- glados_mcp-0.2.0/.gitignore +44 -0
- glados_mcp-0.2.0/LICENSE +22 -0
- glados_mcp-0.2.0/PKG-INFO +148 -0
- glados_mcp-0.2.0/README.md +117 -0
- glados_mcp-0.2.0/pyproject.toml +59 -0
- glados_mcp-0.2.0/server.json +39 -0
- glados_mcp-0.2.0/src/glados_mcp/__init__.py +8 -0
- glados_mcp-0.2.0/src/glados_mcp/__main__.py +6 -0
- glados_mcp-0.2.0/src/glados_mcp/data/glados.json +497 -0
- glados_mcp-0.2.0/src/glados_mcp/data/idx_to_token.pkl +0 -0
- glados_mcp-0.2.0/src/glados_mcp/data/lang_phoneme_dict.pkl +0 -0
- glados_mcp-0.2.0/src/glados_mcp/data/phoneme_to_id.pkl +0 -0
- glados_mcp-0.2.0/src/glados_mcp/data/token_to_idx.pkl +0 -0
- glados_mcp-0.2.0/src/glados_mcp/manager.py +194 -0
- glados_mcp-0.2.0/src/glados_mcp/server.py +130 -0
- glados_mcp-0.2.0/src/glados_mcp/sounds/looping_radio_mix.wav +0 -0
- glados_mcp-0.2.0/src/glados_mcp/sounds/portal_elevator_chime.wav +0 -0
- glados_mcp-0.2.0/src/glados_mcp/synth/__init__.py +1 -0
- glados_mcp-0.2.0/src/glados_mcp/synth/phonemizer.py +591 -0
- glados_mcp-0.2.0/src/glados_mcp/synth/tts_glados.py +324 -0
- glados_mcp-0.2.0/src/glados_mcp/synth/tts_kokoro.py +160 -0
- glados_mcp-0.2.0/src/glados_mcp/utils/__init__.py +1 -0
- glados_mcp-0.2.0/src/glados_mcp/utils/resources.py +122 -0
- glados_mcp-0.2.0/src/glados_mcp/utils/spoken_text_converter.py +800 -0
- glados_mcp-0.2.0/tests/test_manager.py +46 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Model files are downloaded to the user cache at runtime, never committed
|
|
2
|
+
*.onnx
|
|
3
|
+
*.bin
|
|
4
|
+
|
|
5
|
+
# Virtual environments
|
|
6
|
+
**/venv/
|
|
7
|
+
**/.venv/
|
|
8
|
+
|
|
9
|
+
# Python cache
|
|
10
|
+
__pycache__/
|
|
11
|
+
*.pyc
|
|
12
|
+
*.pyo
|
|
13
|
+
*.pyd
|
|
14
|
+
.Python
|
|
15
|
+
build/
|
|
16
|
+
develop-eggs/
|
|
17
|
+
dist/
|
|
18
|
+
downloads/
|
|
19
|
+
eggs/
|
|
20
|
+
.eggs/
|
|
21
|
+
lib/
|
|
22
|
+
lib64/
|
|
23
|
+
parts/
|
|
24
|
+
sdist/
|
|
25
|
+
var/
|
|
26
|
+
wheels/
|
|
27
|
+
*.egg-info/
|
|
28
|
+
.installed.cfg
|
|
29
|
+
*.egg
|
|
30
|
+
|
|
31
|
+
# IDE
|
|
32
|
+
.vscode/
|
|
33
|
+
.idea/
|
|
34
|
+
*.swp
|
|
35
|
+
*.swo
|
|
36
|
+
|
|
37
|
+
# OS
|
|
38
|
+
.DS_Store
|
|
39
|
+
Thumbs.db
|
|
40
|
+
|
|
41
|
+
# Tooling
|
|
42
|
+
.pytest_cache/
|
|
43
|
+
.ruff_cache/
|
|
44
|
+
.mcpregistry_*
|
glados_mcp-0.2.0/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 halfaipg
|
|
4
|
+
Copyright (c) 2022 David Ng (speech synthesis code from https://github.com/dnhkng/GLaDOS)
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE.
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: glados-mcp
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: MCP server that speaks aloud as GLaDOS (or a neutral Kokoro voice) while your AI assistant works
|
|
5
|
+
Project-URL: Homepage, https://github.com/halfaipg/glados-mcp
|
|
6
|
+
Project-URL: Repository, https://github.com/halfaipg/glados-mcp
|
|
7
|
+
Project-URL: Issues, https://github.com/halfaipg/glados-mcp/issues
|
|
8
|
+
Author: halfaipg
|
|
9
|
+
License-Expression: MIT
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: glados,kokoro,mcp,text-to-speech,tts,voice
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Operating System :: MacOS
|
|
15
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
16
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Classifier: Topic :: Multimedia :: Sound/Audio :: Speech
|
|
23
|
+
Requires-Python: >=3.10
|
|
24
|
+
Requires-Dist: anyio>=4.5
|
|
25
|
+
Requires-Dist: mcp<3,>=2
|
|
26
|
+
Requires-Dist: numpy>=1.26
|
|
27
|
+
Requires-Dist: onnxruntime>=1.16.0
|
|
28
|
+
Requires-Dist: sounddevice>=0.4.6
|
|
29
|
+
Requires-Dist: soundfile>=0.13.0
|
|
30
|
+
Description-Content-Type: text/markdown
|
|
31
|
+
|
|
32
|
+
# GLaDOS MCP Server
|
|
33
|
+
|
|
34
|
+
<!-- mcp-name: io.github.halfaipg/glados-mcp -->
|
|
35
|
+
|
|
36
|
+
A Model Context Protocol server that lets your AI assistant talk to you out loud: GLaDOS-style commentary on whatever it is doing, or one of 26 neutral Kokoro voices when you want it to be serious.
|
|
37
|
+
|
|
38
|
+
Speech is synthesized locally with ONNX models. Nothing you say or it says leaves your machine.
|
|
39
|
+
|
|
40
|
+
## Demo Videos (Turn on sound)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
https://github.com/user-attachments/assets/f5623dd5-ac9b-4adc-8641-104d634504c7
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
https://github.com/user-attachments/assets/542fb5c6-03ab-4f4d-9e73-0d7f29a71c4e
|
|
49
|
+
|
|
50
|
+
## Quick start
|
|
51
|
+
|
|
52
|
+
You need [uv](https://docs.astral.sh/uv/) and working speakers. Add this to your MCP client configuration (Claude Desktop, Cursor, and so on):
|
|
53
|
+
|
|
54
|
+
```json
|
|
55
|
+
{
|
|
56
|
+
"mcpServers": {
|
|
57
|
+
"glados": {
|
|
58
|
+
"command": "uvx",
|
|
59
|
+
"args": ["glados-mcp"]
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
For Claude Code:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
claude mcp add glados -- uvx glados-mcp
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
The first start downloads about 300 MB of voice models into your user cache directory. Until that finishes, the tools reply with download progress. To fetch the models ahead of time:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
uvx glados-mcp download
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
**Linux** also needs the PortAudio library (macOS and Windows wheels include it):
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
sudo apt install libportaudio2 # Debian/Ubuntu
|
|
81
|
+
sudo dnf install portaudio # Fedora/RHEL
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Tools
|
|
85
|
+
|
|
86
|
+
| Tool | What it does |
|
|
87
|
+
| --- | --- |
|
|
88
|
+
| `speak(text, voice?, volume?)` | Speaks the text and returns when playback finishes. Defaults to the GLaDOS voice. |
|
|
89
|
+
| `alert(alert_type?)` | Plays a Portal sound: `"chime"` (about 3 seconds, the default) or `"radio"` (about 22 seconds). Returns immediately. |
|
|
90
|
+
| `stop()` | Stops whatever is playing. |
|
|
91
|
+
| `list_voices()` | Lists GLaDOS and the Kokoro voices. |
|
|
92
|
+
|
|
93
|
+
To get running commentary, tell your assistant so, for example in your rules or `CLAUDE.md` file: "Use the glados speak tool to comment briefly on what you are doing."
|
|
94
|
+
|
|
95
|
+
## Voices
|
|
96
|
+
|
|
97
|
+
- **GLaDOS** (default): `glados`
|
|
98
|
+
- **Kokoro female, US**: af_alloy, af_aoede, af_bella, af_jessica, af_kore, af_nicole, af_nova, af_river, af_sarah, af_sky
|
|
99
|
+
- **Kokoro female, British**: bf_alice, bf_emma, bf_isabella, bf_lily
|
|
100
|
+
- **Kokoro male, US**: am_adam, am_echo, am_eric, am_fenrir, am_liam, am_michael, am_onyx, am_puck
|
|
101
|
+
- **Kokoro male, British**: bm_daniel, bm_fable, bm_george, bm_lewis
|
|
102
|
+
|
|
103
|
+
## Configuration
|
|
104
|
+
|
|
105
|
+
Optional environment variables:
|
|
106
|
+
|
|
107
|
+
| Variable | Default | Purpose |
|
|
108
|
+
| --- | --- | --- |
|
|
109
|
+
| `GLADOS_MCP_DEFAULT_VOICE` | `glados` | Voice used when `speak` is called without one. |
|
|
110
|
+
| `GLADOS_MCP_MODELS_DIR` | per-user cache directory | Where the voice models are stored. |
|
|
111
|
+
|
|
112
|
+
```json
|
|
113
|
+
{
|
|
114
|
+
"mcpServers": {
|
|
115
|
+
"glados": {
|
|
116
|
+
"command": "uvx",
|
|
117
|
+
"args": ["glados-mcp"],
|
|
118
|
+
"env": { "GLADOS_MCP_DEFAULT_VOICE": "bm_daniel" }
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## Development
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
git clone https://github.com/halfaipg/glados-mcp
|
|
128
|
+
cd glados-mcp
|
|
129
|
+
uv sync
|
|
130
|
+
uv run pytest
|
|
131
|
+
uv run glados-mcp # runs the server on stdio
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
To release, bump the version in `pyproject.toml` and `server.json`, then push a `v*` tag. The `Publish` workflow uploads to PyPI and the MCP Registry.
|
|
135
|
+
|
|
136
|
+
## Requirements
|
|
137
|
+
|
|
138
|
+
- Python 3.10 or newer
|
|
139
|
+
- Audio output
|
|
140
|
+
- Internet access on first run, for the model download
|
|
141
|
+
|
|
142
|
+
## Credits and license
|
|
143
|
+
|
|
144
|
+
MIT. The speech synthesis code and voice models come from [dnhkng/GLaDOS](https://github.com/dnhkng/GLaDOS) (MIT); the neutral voices are [Kokoro](https://huggingface.co/hexgrad/Kokoro-82M). GLaDOS and Portal are property of Valve. This is an unofficial fan project, not affiliated with or endorsed by Valve.
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
*"The cake is a lie, but the voice commentary is real."*
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# GLaDOS MCP Server
|
|
2
|
+
|
|
3
|
+
<!-- mcp-name: io.github.halfaipg/glados-mcp -->
|
|
4
|
+
|
|
5
|
+
A Model Context Protocol server that lets your AI assistant talk to you out loud: GLaDOS-style commentary on whatever it is doing, or one of 26 neutral Kokoro voices when you want it to be serious.
|
|
6
|
+
|
|
7
|
+
Speech is synthesized locally with ONNX models. Nothing you say or it says leaves your machine.
|
|
8
|
+
|
|
9
|
+
## Demo Videos (Turn on sound)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
https://github.com/user-attachments/assets/f5623dd5-ac9b-4adc-8641-104d634504c7
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
https://github.com/user-attachments/assets/542fb5c6-03ab-4f4d-9e73-0d7f29a71c4e
|
|
18
|
+
|
|
19
|
+
## Quick start
|
|
20
|
+
|
|
21
|
+
You need [uv](https://docs.astral.sh/uv/) and working speakers. Add this to your MCP client configuration (Claude Desktop, Cursor, and so on):
|
|
22
|
+
|
|
23
|
+
```json
|
|
24
|
+
{
|
|
25
|
+
"mcpServers": {
|
|
26
|
+
"glados": {
|
|
27
|
+
"command": "uvx",
|
|
28
|
+
"args": ["glados-mcp"]
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
For Claude Code:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
claude mcp add glados -- uvx glados-mcp
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
The first start downloads about 300 MB of voice models into your user cache directory. Until that finishes, the tools reply with download progress. To fetch the models ahead of time:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
uvx glados-mcp download
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
**Linux** also needs the PortAudio library (macOS and Windows wheels include it):
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
sudo apt install libportaudio2 # Debian/Ubuntu
|
|
50
|
+
sudo dnf install portaudio # Fedora/RHEL
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Tools
|
|
54
|
+
|
|
55
|
+
| Tool | What it does |
|
|
56
|
+
| --- | --- |
|
|
57
|
+
| `speak(text, voice?, volume?)` | Speaks the text and returns when playback finishes. Defaults to the GLaDOS voice. |
|
|
58
|
+
| `alert(alert_type?)` | Plays a Portal sound: `"chime"` (about 3 seconds, the default) or `"radio"` (about 22 seconds). Returns immediately. |
|
|
59
|
+
| `stop()` | Stops whatever is playing. |
|
|
60
|
+
| `list_voices()` | Lists GLaDOS and the Kokoro voices. |
|
|
61
|
+
|
|
62
|
+
To get running commentary, tell your assistant so, for example in your rules or `CLAUDE.md` file: "Use the glados speak tool to comment briefly on what you are doing."
|
|
63
|
+
|
|
64
|
+
## Voices
|
|
65
|
+
|
|
66
|
+
- **GLaDOS** (default): `glados`
|
|
67
|
+
- **Kokoro female, US**: af_alloy, af_aoede, af_bella, af_jessica, af_kore, af_nicole, af_nova, af_river, af_sarah, af_sky
|
|
68
|
+
- **Kokoro female, British**: bf_alice, bf_emma, bf_isabella, bf_lily
|
|
69
|
+
- **Kokoro male, US**: am_adam, am_echo, am_eric, am_fenrir, am_liam, am_michael, am_onyx, am_puck
|
|
70
|
+
- **Kokoro male, British**: bm_daniel, bm_fable, bm_george, bm_lewis
|
|
71
|
+
|
|
72
|
+
## Configuration
|
|
73
|
+
|
|
74
|
+
Optional environment variables:
|
|
75
|
+
|
|
76
|
+
| Variable | Default | Purpose |
|
|
77
|
+
| --- | --- | --- |
|
|
78
|
+
| `GLADOS_MCP_DEFAULT_VOICE` | `glados` | Voice used when `speak` is called without one. |
|
|
79
|
+
| `GLADOS_MCP_MODELS_DIR` | per-user cache directory | Where the voice models are stored. |
|
|
80
|
+
|
|
81
|
+
```json
|
|
82
|
+
{
|
|
83
|
+
"mcpServers": {
|
|
84
|
+
"glados": {
|
|
85
|
+
"command": "uvx",
|
|
86
|
+
"args": ["glados-mcp"],
|
|
87
|
+
"env": { "GLADOS_MCP_DEFAULT_VOICE": "bm_daniel" }
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Development
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
git clone https://github.com/halfaipg/glados-mcp
|
|
97
|
+
cd glados-mcp
|
|
98
|
+
uv sync
|
|
99
|
+
uv run pytest
|
|
100
|
+
uv run glados-mcp # runs the server on stdio
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
To release, bump the version in `pyproject.toml` and `server.json`, then push a `v*` tag. The `Publish` workflow uploads to PyPI and the MCP Registry.
|
|
104
|
+
|
|
105
|
+
## Requirements
|
|
106
|
+
|
|
107
|
+
- Python 3.10 or newer
|
|
108
|
+
- Audio output
|
|
109
|
+
- Internet access on first run, for the model download
|
|
110
|
+
|
|
111
|
+
## Credits and license
|
|
112
|
+
|
|
113
|
+
MIT. The speech synthesis code and voice models come from [dnhkng/GLaDOS](https://github.com/dnhkng/GLaDOS) (MIT); the neutral voices are [Kokoro](https://huggingface.co/hexgrad/Kokoro-82M). GLaDOS and Portal are property of Valve. This is an unofficial fan project, not affiliated with or endorsed by Valve.
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
*"The cake is a lie, but the voice commentary is real."*
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "glados-mcp"
|
|
3
|
+
version = "0.2.0"
|
|
4
|
+
description = "MCP server that speaks aloud as GLaDOS (or a neutral Kokoro voice) while your AI assistant works"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.10"
|
|
7
|
+
license = "MIT"
|
|
8
|
+
license-files = ["LICENSE"]
|
|
9
|
+
authors = [{ name = "halfaipg" }]
|
|
10
|
+
keywords = ["mcp", "tts", "text-to-speech", "glados", "kokoro", "voice"]
|
|
11
|
+
classifiers = [
|
|
12
|
+
"Development Status :: 4 - Beta",
|
|
13
|
+
"Intended Audience :: Developers",
|
|
14
|
+
"Programming Language :: Python :: 3",
|
|
15
|
+
"Programming Language :: Python :: 3.10",
|
|
16
|
+
"Programming Language :: Python :: 3.11",
|
|
17
|
+
"Programming Language :: Python :: 3.12",
|
|
18
|
+
"Programming Language :: Python :: 3.13",
|
|
19
|
+
"Operating System :: MacOS",
|
|
20
|
+
"Operating System :: Microsoft :: Windows",
|
|
21
|
+
"Operating System :: POSIX :: Linux",
|
|
22
|
+
"Topic :: Multimedia :: Sound/Audio :: Speech",
|
|
23
|
+
]
|
|
24
|
+
dependencies = [
|
|
25
|
+
"anyio>=4.5",
|
|
26
|
+
"mcp>=2,<3",
|
|
27
|
+
"numpy>=1.26",
|
|
28
|
+
"onnxruntime>=1.16.0",
|
|
29
|
+
"sounddevice>=0.4.6",
|
|
30
|
+
"soundfile>=0.13.0",
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
[project.urls]
|
|
34
|
+
Homepage = "https://github.com/halfaipg/glados-mcp"
|
|
35
|
+
Repository = "https://github.com/halfaipg/glados-mcp"
|
|
36
|
+
Issues = "https://github.com/halfaipg/glados-mcp/issues"
|
|
37
|
+
|
|
38
|
+
[project.scripts]
|
|
39
|
+
glados-mcp = "glados_mcp.server:main"
|
|
40
|
+
|
|
41
|
+
[build-system]
|
|
42
|
+
requires = ["hatchling>=1.27"]
|
|
43
|
+
build-backend = "hatchling.build"
|
|
44
|
+
|
|
45
|
+
[tool.hatch.build.targets.wheel]
|
|
46
|
+
packages = ["src/glados_mcp"]
|
|
47
|
+
|
|
48
|
+
[tool.hatch.build.targets.sdist]
|
|
49
|
+
include = ["src", "tests", "README.md", "LICENSE", "server.json"]
|
|
50
|
+
|
|
51
|
+
[dependency-groups]
|
|
52
|
+
dev = ["pytest>=8.3.3", "ruff>=0.6.9"]
|
|
53
|
+
|
|
54
|
+
[tool.ruff]
|
|
55
|
+
line-length = 120
|
|
56
|
+
target-version = "py310"
|
|
57
|
+
|
|
58
|
+
[tool.ruff.lint]
|
|
59
|
+
select = ["E", "F", "I"]
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
|
|
3
|
+
"name": "io.github.halfaipg/glados-mcp",
|
|
4
|
+
"title": "GLaDOS Voice",
|
|
5
|
+
"description": "Local text-to-speech: your AI assistant speaks aloud as GLaDOS or one of 26 Kokoro voices.",
|
|
6
|
+
"version": "0.2.0",
|
|
7
|
+
"repository": {
|
|
8
|
+
"url": "https://github.com/halfaipg/glados-mcp",
|
|
9
|
+
"source": "github"
|
|
10
|
+
},
|
|
11
|
+
"packages": [
|
|
12
|
+
{
|
|
13
|
+
"registryType": "pypi",
|
|
14
|
+
"identifier": "glados-mcp",
|
|
15
|
+
"version": "0.2.0",
|
|
16
|
+
"runtimeHint": "uvx",
|
|
17
|
+
"transport": {
|
|
18
|
+
"type": "stdio"
|
|
19
|
+
},
|
|
20
|
+
"environmentVariables": [
|
|
21
|
+
{
|
|
22
|
+
"name": "GLADOS_MCP_DEFAULT_VOICE",
|
|
23
|
+
"description": "Voice used when a speak call does not name one: \"glados\" or a Kokoro voice such as \"af_alloy\".",
|
|
24
|
+
"isRequired": false,
|
|
25
|
+
"isSecret": false,
|
|
26
|
+
"format": "string",
|
|
27
|
+
"default": "glados"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "GLADOS_MCP_MODELS_DIR",
|
|
31
|
+
"description": "Directory for the downloaded voice models (about 300 MB). Defaults to the per-user cache directory.",
|
|
32
|
+
"isRequired": false,
|
|
33
|
+
"isSecret": false,
|
|
34
|
+
"format": "filepath"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"""GLaDOS MCP server: GLaDOS and Kokoro text-to-speech for MCP clients."""
|
|
2
|
+
|
|
3
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
4
|
+
|
|
5
|
+
try:
|
|
6
|
+
__version__ = version("glados-mcp")
|
|
7
|
+
except PackageNotFoundError: # running from a source checkout that is not installed
|
|
8
|
+
__version__ = "0.0.0"
|