@codetelemetry/mcp 0.6.0 → 0.7.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/README.md CHANGED
@@ -31,7 +31,7 @@ deterministic (see [Releases & discovery](#releases--discovery)):
31
31
  ```json
32
32
  {
33
33
  "mcpServers": {
34
- "codetelemetry": { "command": "npx", "args": ["-y", "--package=@codetelemetry/mcp@0.6.0", "codetelemetry-mcp"] }
34
+ "codetelemetry": { "command": "npx", "args": ["-y", "--package=@codetelemetry/mcp@0.7.0", "codetelemetry-mcp"] }
35
35
  }
36
36
  }
37
37
  ```
@@ -45,7 +45,7 @@ sessions without local setup, or **Connect my coding tool** to record your own w
45
45
  Run the project connection command from the repository you choose:
46
46
 
47
47
  ```sh
48
- npx -y @codetelemetry/connect@0.3.1 join --organization-id tm_example --client codex --project .
48
+ npx -y @codetelemetry/connect@0.3.2 join --organization-id tm_example --client codex --project .
49
49
  # For Claude Code, use --client claude.
50
50
  ```
51
51
 
@@ -67,9 +67,9 @@ verification. **My sessions** is scoped to your authenticated ingest ownership;
67
67
  Optional history import uses the saved project and credentials, without a key argument:
68
68
 
69
69
  ```sh
70
- npx -y @codetelemetry/connect@0.3.1 import --workspace <name> --preview
70
+ npx -y @codetelemetry/connect@0.3.2 import --workspace <name> --preview
71
71
  # Choose numbers from that preview; no session content uploads until confirmation:
72
- npx -y @codetelemetry/connect@0.3.1 import --workspace <name> --select 1,2 --confirm
72
+ npx -y @codetelemetry/connect@0.3.2 import --workspace <name> --select 1,2 --confirm
73
73
  ```
74
74
 
75
75
  Preview is local-only and defaults to the last 30 days. It keeps at most 100 session
@@ -269,7 +269,12 @@ explain prose requirements the deterministic Grader cannot establish. Invoking a
269
269
  skill can be checked; compliance with all its written guidance cannot be inferred
270
270
  from invocation alone. Review inferred commands and adapt local working-directory
271
271
  matchers if your sessions run at another path. Pass `repositoryId` from session
272
- metadata to scope checks to the recorded repository.
272
+ metadata to scope checks to the recorded repository. Give a check `issues`
273
+ (`["owner/repo#N"]`, lowercase) to make it a task check: it is required only for a
274
+ pull request that GitHub reports closes one of those issues, and it adds to the
275
+ organization and repository checks. The PR gate reads GitHub's closing-issue
276
+ references; when a repository has task checks, unknown or unmapped linkage fails
277
+ closed.
273
278
 
274
279
  The agent then reads `get_grader_config` (follow `nextOffset` for remaining checks)
275
280
  and sends selected `upsertChecks` and/or `removeCheckIds` to
@@ -463,7 +463,7 @@ export async function run(argv) {
463
463
  result.previewSessions.forEach((session, i) => out(`${i + 1}. ${session.source} ${session.sessionId} · ${new Date(session.endMs).toISOString()} · ${session.events} events`));
464
464
  if (result.remaining)
465
465
  out(`${result.remaining} additional sessions remain; narrow --since for another preview.`);
466
- out(`Import selected numbers: npx -y @codetelemetry/connect@0.3.1 import --workspace ${flags.workspace} --select 1,2 --confirm`);
466
+ out(`Import selected numbers: npx -y @codetelemetry/connect@0.3.2 import --workspace ${flags.workspace} --select 1,2 --confirm`);
467
467
  }
468
468
  else
469
469
  out(`Imported ${result.totals.sessions} sessions; ${result.remaining} remain. ${result.errors.slice(0, 3).join(" ")}`);
@@ -1,5 +1,5 @@
1
1
  import type { KeyScope } from "./connectivity.ts";
2
- export declare const WORKSPACE_MCP_PACKAGE = "@codetelemetry/mcp@0.6.0";
2
+ export declare const WORKSPACE_MCP_PACKAGE = "@codetelemetry/mcp@0.7.0";
3
3
  export declare const MAX_WORKSPACE_BYTES: number;
4
4
  export declare const MAX_WORKSPACES = 64;
5
5
  export type WorkspaceBinding = {
@@ -5,7 +5,7 @@ import { createHash, randomBytes } from "node:crypto";
5
5
  import { buildOtelSection } from "./codexConfig.js";
6
6
  import { repositoryHookSource, quotedCommand, REPOSITORY_HOOK_FILE, REPOSITORY_HOOK_STATE_FILE } from "./repositoryHook.js";
7
7
  import { looksLikeKey } from "./keys.js";
8
- export const WORKSPACE_MCP_PACKAGE = "@codetelemetry/mcp@0.6.0";
8
+ export const WORKSPACE_MCP_PACKAGE = "@codetelemetry/mcp@0.7.0";
9
9
  export const MAX_WORKSPACE_BYTES = 64 * 1024;
10
10
  export const MAX_WORKSPACES = 64;
11
11
  const isContextFile = (name) => /^[a-z][a-z0-9_-]{0,63}\.json$/.test(name) && name !== REPOSITORY_HOOK_STATE_FILE;
package/dist/src/tools.js CHANGED
@@ -421,6 +421,7 @@ const GRADER_CHECK_PROP = obj({
421
421
  evidenceRequirement: { type: "string", enum: ["coverage_increase"] },
422
422
  createdFromActivityId: { type: "string", maxLength: 512 },
423
423
  components: { type: "array", minItems: 1, maxItems: 8, items: obj({ name: { type: "string", minLength: 1, maxLength: 120 }, matcherRule: GRADER_MATCHER_PROP, requireSuccess: { type: "boolean" } }, ["name", "matcherRule", "requireSuccess"]) },
424
+ issues: { type: "array", minItems: 1, maxItems: 20, uniqueItems: true, items: { type: "string", minLength: 3, maxLength: 220, pattern: "^[a-z0-9][a-z0-9-]{0,38}/[a-z0-9._-]{1,100}#[1-9][0-9]{0,9}$" }, description: "Task scope: the GitHub issues (lowercase owner/repo#number) this check is required for. It applies only when the pull request being judged closes one of them, as GitHub reports it, and adds to organization and repository checks; it never applies outside a pull request. Issue and PR text never select it." },
424
425
  linkage: { type: "string", enum: ["signadot"], description: "Links a three-component composite to recorded sandbox readiness, an exact routing key and declared endpoint, and a positive validation result. May be required before push after the final edit. Keep it when re-saving a check read from get_grader_config; dropping it leaves an unlinked composite." },
425
426
  }, ["id", "name", "category", "weight", "satisfactionMode", "minimumOccurrences", "aggregationMode", "enabled"]);
426
427
  function graderSchemaValid(value, schema) {
@@ -1632,7 +1633,7 @@ export const TOOLS = [
1632
1633
  {
1633
1634
  name: "update_grader_config",
1634
1635
  title: "Update the Grader draft",
1635
- description: "Save selected instruction/skill-derived checks to the authenticated workspace's Grader draft. features records which instruction features the user wants graded. Use seed_grader_config to inspect sources, then get_grader_config to obtain expectedRevision. upsertChecks add or update by id, preserving unmentioned checks; removeCheckIds removes only named checks. Checks use the dashboard's ValidationCheck shape and deterministic matcherRule (source, executable, packageScript, normalizedArguments, toolNamespace/toolName, operation, workingDirectory, etc.). For example, a skill check can require source=agent_tool, toolName=Skill, and operation=<skill name>; do not equate invoking a skill with complying with all its prose. Match only observable evidence, keep rationale/source in description, and apply repositoryId/environment scope when appropriate. The backend validates checks and refuses stale revisions with conflict; read again before retrying any uncertain save. After saving, use write_grader_config_artifact to leave selected checks as Terraform or Pulumi when requested. This saves a draft; use publish_grader_config with the returned revision to apply it when the user wants publication.",
1636
+ description: "Save selected instruction/skill-derived checks to the authenticated workspace's Grader draft. features records which instruction features the user wants graded. Use seed_grader_config to inspect sources, then get_grader_config to obtain expectedRevision. upsertChecks add or update by id, preserving unmentioned checks; removeCheckIds removes only named checks. Checks use the dashboard's ValidationCheck shape and deterministic matcherRule (source, executable, packageScript, normalizedArguments, toolNamespace/toolName, operation, workingDirectory, etc.). For example, a skill check can require source=agent_tool, toolName=Skill, and operation=<skill name>; do not equate invoking a skill with complying with all its prose. Match only observable evidence, keep rationale/source in description, and apply repositoryId/environment scope when appropriate. Use issues for checks that only one GitHub issue's pull request must pass (task scope). The backend validates checks and refuses stale revisions with conflict; read again before retrying any uncertain save. After saving, use write_grader_config_artifact to leave selected checks as Terraform or Pulumi when requested. This saves a draft; use publish_grader_config with the returned revision to apply it when the user wants publication.",
1636
1637
  inputSchema: obj({
1637
1638
  expectedRevision: { type: "string", pattern: "^[a-f0-9]{64}$", description: "revision from get_grader_config; prevents overwriting a changed draft." },
1638
1639
  features: GRADER_FEATURES_PROP,
@@ -1,2 +1,2 @@
1
1
  export declare const MCP_SERVER_NAME = "codetelemetry";
2
- export declare const MCP_SERVER_VERSION = "0.6.0";
2
+ export declare const MCP_SERVER_VERSION = "0.7.0";
@@ -1,2 +1,2 @@
1
1
  export const MCP_SERVER_NAME = "codetelemetry";
2
- export const MCP_SERVER_VERSION = "0.6.0";
2
+ export const MCP_SERVER_VERSION = "0.7.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codetelemetry/mcp",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "CodeTelemetry MCP server \u2014 lets a coding agent onboard a user end to end: authenticate (device code), obtain an ingest key, write the Claude Code OTEL config, send a test event, and confirm telemetry landed \u2014 then search, read, interpret and compare the user's own coding sessions, plan the next one, and size tasks, plans and Linear issues from that history. The plaintext key never enters the model's context.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "serverName": "codetelemetry",
3
- "serverVersion": "0.6.0",
4
- "registryHash": "491c37a8f144fa1418e3e3ae091e6aac3ace57ef09a675169920d229dda83c7a",
3
+ "serverVersion": "0.7.0",
4
+ "registryHash": "eebf2611c67780abfae82ff19098d5b9cff943aebbc9fae45b60e37ccd836a61",
5
5
  "toolCount": 34,
6
6
  "tools": [
7
7
  {
@@ -1480,6 +1480,19 @@
1480
1480
  "additionalProperties": false
1481
1481
  }
1482
1482
  },
1483
+ "issues": {
1484
+ "type": "array",
1485
+ "minItems": 1,
1486
+ "maxItems": 20,
1487
+ "uniqueItems": true,
1488
+ "items": {
1489
+ "type": "string",
1490
+ "minLength": 3,
1491
+ "maxLength": 220,
1492
+ "pattern": "^[a-z0-9][a-z0-9-]{0,38}/[a-z0-9._-]{1,100}#[1-9][0-9]{0,9}$"
1493
+ },
1494
+ "description": "Task scope: the GitHub issues (lowercase owner/repo#number) this check is required for. It applies only when the pull request being judged closes one of them, as GitHub reports it, and adds to organization and repository checks; it never applies outside a pull request. Issue and PR text never select it."
1495
+ },
1483
1496
  "linkage": {
1484
1497
  "type": "string",
1485
1498
  "enum": [
@@ -1534,7 +1547,7 @@
1534
1547
  {
1535
1548
  "name": "update_grader_config",
1536
1549
  "title": "Update the Grader draft",
1537
- "description": "Save selected instruction/skill-derived checks to the authenticated workspace's Grader draft. features records which instruction features the user wants graded. Use seed_grader_config to inspect sources, then get_grader_config to obtain expectedRevision. upsertChecks add or update by id, preserving unmentioned checks; removeCheckIds removes only named checks. Checks use the dashboard's ValidationCheck shape and deterministic matcherRule (source, executable, packageScript, normalizedArguments, toolNamespace/toolName, operation, workingDirectory, etc.). For example, a skill check can require source=agent_tool, toolName=Skill, and operation=<skill name>; do not equate invoking a skill with complying with all its prose. Match only observable evidence, keep rationale/source in description, and apply repositoryId/environment scope when appropriate. The backend validates checks and refuses stale revisions with conflict; read again before retrying any uncertain save. After saving, use write_grader_config_artifact to leave selected checks as Terraform or Pulumi when requested. This saves a draft; use publish_grader_config with the returned revision to apply it when the user wants publication.",
1550
+ "description": "Save selected instruction/skill-derived checks to the authenticated workspace's Grader draft. features records which instruction features the user wants graded. Use seed_grader_config to inspect sources, then get_grader_config to obtain expectedRevision. upsertChecks add or update by id, preserving unmentioned checks; removeCheckIds removes only named checks. Checks use the dashboard's ValidationCheck shape and deterministic matcherRule (source, executable, packageScript, normalizedArguments, toolNamespace/toolName, operation, workingDirectory, etc.). For example, a skill check can require source=agent_tool, toolName=Skill, and operation=<skill name>; do not equate invoking a skill with complying with all its prose. Match only observable evidence, keep rationale/source in description, and apply repositoryId/environment scope when appropriate. Use issues for checks that only one GitHub issue's pull request must pass (task scope). The backend validates checks and refuses stale revisions with conflict; read again before retrying any uncertain save. After saving, use write_grader_config_artifact to leave selected checks as Terraform or Pulumi when requested. This saves a draft; use publish_grader_config with the returned revision to apply it when the user wants publication.",
1538
1551
  "inputSchema": {
1539
1552
  "type": "object",
1540
1553
  "properties": {
@@ -1742,6 +1755,19 @@
1742
1755
  "additionalProperties": false
1743
1756
  }
1744
1757
  },
1758
+ "issues": {
1759
+ "type": "array",
1760
+ "minItems": 1,
1761
+ "maxItems": 20,
1762
+ "uniqueItems": true,
1763
+ "items": {
1764
+ "type": "string",
1765
+ "minLength": 3,
1766
+ "maxLength": 220,
1767
+ "pattern": "^[a-z0-9][a-z0-9-]{0,38}/[a-z0-9._-]{1,100}#[1-9][0-9]{0,9}$"
1768
+ },
1769
+ "description": "Task scope: the GitHub issues (lowercase owner/repo#number) this check is required for. It applies only when the pull request being judged closes one of them, as GitHub reports it, and adds to organization and repository checks; it never applies outside a pull request. Issue and PR text never select it."
1770
+ },
1745
1771
  "linkage": {
1746
1772
  "type": "string",
1747
1773
  "enum": [