@trainheroic-unofficial/coach-mcp 0.4.1 → 0.4.2

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 (2) hide show
  1. package/dist/server.mjs +16 -2
  2. package/package.json +3 -3
package/dist/server.mjs CHANGED
@@ -453,6 +453,17 @@ async function confirmGate(server, requestId, message, confirmArg) {
453
453
  }
454
454
  }
455
455
  //#endregion
456
+ //#region ../core/src/instructions.ts
457
+ /**
458
+ * Server-level guidance passed as the MCP `instructions` string. The host model receives it
459
+ * in the initialize result and treats it like a system hint. Its job is to stop tool-layer
460
+ * implementation details from leaking into user-facing replies: by default a model narrates
461
+ * capability using the raw snake_case tool name (e.g. `athlete_session_create`), and the tool
462
+ * descriptions here reference each other by name to drive correct chaining, which primes that
463
+ * leak further. This tells the host to keep that wiring internal and speak in app terms.
464
+ */
465
+ const SERVER_INSTRUCTIONS = "Speak to the user in plain, everyday language about their training. Describe what you are doing in the TrainHeroic app's own terms (for example, say you are creating a workout rather than naming a tool). Do not surface internal tool names (the snake_case identifiers such as athlete_session_create), raw parameter names, or numeric ids in your replies unless the user explicitly asks for them; they are implementation details. The tool descriptions cross-reference each other by name only so you can chain them correctly. Keep that wiring to yourself.";
466
+ //#endregion
456
467
  //#region ../core/src/tools/reads.ts
457
468
  function enc(value) {
458
469
  return encodeURIComponent(String(value));
@@ -1998,6 +2009,9 @@ var JsonFileLibraryCache = class {
1998
2009
  }
1999
2010
  };
2000
2011
  //#endregion
2012
+ //#region package.json
2013
+ var version = "0.4.1";
2014
+ //#endregion
2001
2015
  //#region src/server.ts
2002
2016
  async function main() {
2003
2017
  const email = process.env.TRAINHEROIC_EMAIL;
@@ -2013,8 +2027,8 @@ async function main() {
2013
2027
  };
2014
2028
  const server = new McpServer({
2015
2029
  name: "trainheroic-local",
2016
- version: "0.2.0"
2017
- });
2030
+ version
2031
+ }, { instructions: SERVER_INSTRUCTIONS });
2018
2032
  registerReadTools(server, ctx);
2019
2033
  registerAthleteTools(server, ctx);
2020
2034
  registerTeamTools(server, ctx);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trainheroic-unofficial/coach-mcp",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,8 +21,8 @@
21
21
  "dependencies": {
22
22
  "@modelcontextprotocol/sdk": "^1.29.0",
23
23
  "zod": "^4.4.3",
24
- "@trainheroic-unofficial/core": "0.4.1",
25
- "@trainheroic-unofficial/js": "0.4.1"
24
+ "@trainheroic-unofficial/core": "0.4.2",
25
+ "@trainheroic-unofficial/js": "0.4.2"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^26.0.0",