@trainheroic-unofficial/coach-mcp 3.3.2 → 3.3.3

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 +14 -8
  2. package/package.json +3 -3
package/dist/server.mjs CHANGED
@@ -739,23 +739,23 @@ function toId(value) {
739
739
  const READ = {
740
740
  readOnlyHint: true,
741
741
  destructiveHint: false,
742
- openWorldHint: true
742
+ openWorldHint: false
743
743
  };
744
744
  const ADDITIVE = {
745
745
  readOnlyHint: false,
746
746
  destructiveHint: false,
747
- openWorldHint: true
747
+ openWorldHint: false
748
748
  };
749
749
  const SYNC = {
750
750
  readOnlyHint: false,
751
751
  idempotentHint: true,
752
752
  destructiveHint: false,
753
- openWorldHint: true
753
+ openWorldHint: false
754
754
  };
755
755
  const DESTRUCTIVE = {
756
756
  readOnlyHint: false,
757
757
  destructiveHint: true,
758
- openWorldHint: true
758
+ openWorldHint: false
759
759
  };
760
760
  /**
761
761
  * Run a tool body, converting thrown errors into an in-band tool error. Generic so a caller that
@@ -3933,7 +3933,10 @@ function registerAthleteTools(server, ctx) {
3933
3933
  confirm: z.boolean().optional()
3934
3934
  },
3935
3935
  outputSchema: toolOutputSchema(athleteInviteOutputSchema),
3936
- annotations: DESTRUCTIVE
3936
+ annotations: {
3937
+ ...DESTRUCTIVE,
3938
+ openWorldHint: true
3939
+ }
3937
3940
  }, ({ teamId, emails, message, confirm }, extra) => attempt(async () => {
3938
3941
  const list = asEmailList(emails);
3939
3942
  if (list.length === 0) return errorResult("Provide at least one email address to invite.");
@@ -3974,7 +3977,7 @@ function registerAthleteTools(server, ctx) {
3974
3977
  readOnlyHint: false,
3975
3978
  idempotentHint: true,
3976
3979
  destructiveHint: false,
3977
- openWorldHint: true
3980
+ openWorldHint: false
3978
3981
  }
3979
3982
  }, ({ athleteIds }) => apiCall(ctx, "PUT", "/v5/athletes/restore", { body: { athleteIds: athleteIds.map(toId) } }));
3980
3983
  registerAthleteLogTools(server, ctx);
@@ -4619,7 +4622,10 @@ function registerWrites(server, ctx) {
4619
4622
  confirm: z.boolean().optional()
4620
4623
  },
4621
4624
  outputSchema: toolOutputSchema(messageSentOutputSchema),
4622
- annotations: DESTRUCTIVE
4625
+ annotations: {
4626
+ ...DESTRUCTIVE,
4627
+ openWorldHint: true
4628
+ }
4623
4629
  }, ({ streamId, text, replyTo, confirm }, extra) => attempt(async () => {
4624
4630
  const id = toId(streamId);
4625
4631
  const blocked = confirmGate(extra, `Send this message to stream ${id}? It is athlete-facing and immediate.`, confirm);
@@ -4693,7 +4699,7 @@ var JsonFileLibraryCache = class {
4693
4699
  };
4694
4700
  //#endregion
4695
4701
  //#region package.json
4696
- var version = "3.3.2";
4702
+ var version = "3.3.3";
4697
4703
  //#endregion
4698
4704
  //#region src/server.ts
4699
4705
  function main() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trainheroic-unofficial/coach-mcp",
3
- "version": "3.3.2",
3
+ "version": "3.3.3",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,8 +21,8 @@
21
21
  "dependencies": {
22
22
  "@modelcontextprotocol/server": "2.0.0",
23
23
  "zod": "^4.4.3",
24
- "@trainheroic-unofficial/core": "3.3.2",
25
- "@trainheroic-unofficial/js": "3.3.2"
24
+ "@trainheroic-unofficial/core": "3.3.3",
25
+ "@trainheroic-unofficial/js": "3.3.3"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^26.2.0",