@trainheroic-unofficial/coach-mcp 0.1.0

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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Alan Cohen
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,56 @@
1
+ # @trainheroic-unofficial/coach-mcp
2
+
3
+ Local single-user MCP server for a TrainHeroic coach. Runs on your machine over stdio; credentials come from the environment.
4
+
5
+ For the hosted version (no install, OAuth login), see the [root README](../../README.md).
6
+
7
+ ---
8
+
9
+ ## Install
10
+
11
+ ### Claude Desktop extension (easiest)
12
+
13
+ Download `trainheroic-coach-mcp.mcpb` from the [Releases page](https://github.com/alandotcom/trainheroic-skill/releases), drag it onto Claude Desktop, and enter your TrainHeroic email and password. Credentials are stored in the OS keychain. No Node toolchain needed.
14
+
15
+ ### Claude Code
16
+
17
+ ```bash
18
+ claude mcp add trainheroic \
19
+ -e TRAINHEROIC_EMAIL=coach@example.com \
20
+ -e TRAINHEROIC_PASSWORD=yourpassword \
21
+ -- npx -y @trainheroic-unofficial/coach-mcp
22
+ ```
23
+
24
+ ### Claude Desktop / `.mcp.json` / other stdio clients
25
+
26
+ ```jsonc
27
+ {
28
+ "mcpServers": {
29
+ "trainheroic": {
30
+ "command": "npx",
31
+ "args": ["-y", "@trainheroic-unofficial/coach-mcp"],
32
+ "env": {
33
+ "TRAINHEROIC_EMAIL": "coach@example.com",
34
+ "TRAINHEROIC_PASSWORD": "yourpassword"
35
+ }
36
+ }
37
+ }
38
+ }
39
+ ```
40
+
41
+ ---
42
+
43
+ ## Develop
44
+
45
+ ```bash
46
+ pnpm start # run from source (needs TRAINHEROIC_EMAIL and TRAINHEROIC_PASSWORD)
47
+ pnpm inspect # MCP Inspector UI against the source server
48
+ pnpm build # tsdown → dist/server.mjs
49
+ pnpm build:mcpb # bundle + pack the Desktop extension → dist/trainheroic-coach-mcp.mcpb
50
+ pnpm typecheck
51
+ pnpm test
52
+ ```
53
+
54
+ ### Cut a release (maintainers)
55
+
56
+ Push a `coach-mcp-v*` tag. The `Release Coach MCPB` GitHub Actions workflow builds, signs, and attaches the `.mcpb` to the Release. Set `MCPB_CERT` / `MCPB_KEY` repo secrets to sign with a real certificate; omitting them produces a self-signed build.