@codetelemetry/mcp 0.4.1 → 0.6.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.
@@ -1,9 +1,175 @@
1
1
  {
2
2
  "serverName": "codetelemetry",
3
- "serverVersion": "0.4.1",
4
- "registryHash": "217ada41e87180ec24e8e8d96108a2e52dfc5eae0c4007aa313eac6a11b7ece8",
5
- "toolCount": 30,
3
+ "serverVersion": "0.6.0",
4
+ "registryHash": "491c37a8f144fa1418e3e3ae091e6aac3ace57ef09a675169920d229dda83c7a",
5
+ "toolCount": 34,
6
6
  "tools": [
7
+ {
8
+ "name": "discover_grader_checks",
9
+ "title": "Discover Grader checks from history",
10
+ "description": "Discover common validation checks for a recorded repository and grading focus. The service selects PR-producing sessions (default), scans bounded canonical history asynchronously and ranks exact normalized commands by distinct sessions. Returns a runId; poll get_grader_run for candidates, package scope, provenance, ambiguities and coverage. No local files or scripts. Partial evidence never proves an absence. Does not change the Grader.",
11
+ "inputSchema": {
12
+ "type": "object",
13
+ "properties": {
14
+ "repository": {
15
+ "type": "string",
16
+ "minLength": 1,
17
+ "maxLength": 512,
18
+ "description": "Recorded repository label, as returned by search_sessions."
19
+ },
20
+ "features": {
21
+ "type": "string",
22
+ "minLength": 1,
23
+ "maxLength": 4000,
24
+ "description": "Grading focus, for example common tests and static analysis before pushing."
25
+ },
26
+ "days": {
27
+ "type": "integer",
28
+ "minimum": 1,
29
+ "maximum": 30,
30
+ "description": "History window; defaults to 30 days."
31
+ },
32
+ "cohort": {
33
+ "type": "string",
34
+ "enum": [
35
+ "pull_requests",
36
+ "substantive"
37
+ ],
38
+ "description": "Defaults to PR-producing sessions. substantive includes all sessions with observed work."
39
+ }
40
+ },
41
+ "required": [
42
+ "repository",
43
+ "features"
44
+ ],
45
+ "additionalProperties": false
46
+ }
47
+ },
48
+ {
49
+ "name": "backtest_grader_checks",
50
+ "title": "Backtest Grader checks",
51
+ "description": "Start an asynchronous backtest using discoveryId plus candidateIds, or draftRevision plus checkIds and repository (optional days/cohort/features). Uses pinned recorded evidence and the live Grader evaluator. Poll get_grader_run for completion and after-last-edit/before-push timing separately, per-session evidence, unknown outcomes and coverage limits. Does not publish or rewrite historical scores.",
52
+ "inputSchema": {
53
+ "type": "object",
54
+ "properties": {
55
+ "repository": {
56
+ "type": "string",
57
+ "minLength": 1,
58
+ "maxLength": 512,
59
+ "description": "Recorded repository label, as returned by search_sessions."
60
+ },
61
+ "features": {
62
+ "type": "string",
63
+ "minLength": 1,
64
+ "maxLength": 4000,
65
+ "description": "Grading focus, for example common tests and static analysis before pushing."
66
+ },
67
+ "days": {
68
+ "type": "integer",
69
+ "minimum": 1,
70
+ "maximum": 30,
71
+ "description": "History window; defaults to 30 days."
72
+ },
73
+ "cohort": {
74
+ "type": "string",
75
+ "enum": [
76
+ "pull_requests",
77
+ "substantive"
78
+ ],
79
+ "description": "Defaults to PR-producing sessions. substantive includes all sessions with observed work."
80
+ },
81
+ "discoveryId": {
82
+ "type": "string",
83
+ "pattern": "^[a-f0-9-]{36}$"
84
+ },
85
+ "candidateIds": {
86
+ "type": "array",
87
+ "minItems": 1,
88
+ "maxItems": 30,
89
+ "uniqueItems": true,
90
+ "items": {
91
+ "type": "string",
92
+ "minLength": 1,
93
+ "maxLength": 128
94
+ }
95
+ },
96
+ "draftRevision": {
97
+ "type": "string",
98
+ "pattern": "^[a-f0-9]{64}$"
99
+ },
100
+ "checkIds": {
101
+ "type": "array",
102
+ "minItems": 1,
103
+ "maxItems": 30,
104
+ "uniqueItems": true,
105
+ "items": {
106
+ "type": "string",
107
+ "minLength": 1,
108
+ "maxLength": 128
109
+ }
110
+ }
111
+ },
112
+ "additionalProperties": false
113
+ }
114
+ },
115
+ {
116
+ "name": "get_grader_run",
117
+ "title": "Read Grader discovery or backtest progress",
118
+ "description": "Poll a Grader run and follow returned cursors for bounded result pages. Returns progress, pinned window/cohort/evaluator, ranked candidates or check summaries and per-session evidence. Follow summaryCursor for remaining check summaries, or draftChecksCursor to discover saved check IDs/names for backtesting with the returned draftRevision. Runs expire after 24 hours. Report partial, unknown and stale evidence explicitly; do not treat missing telemetry as a failed check. Access is checked on every call.",
119
+ "inputSchema": {
120
+ "type": "object",
121
+ "properties": {
122
+ "runId": {
123
+ "type": "string",
124
+ "pattern": "^[a-f0-9-]{36}$"
125
+ },
126
+ "cursor": {
127
+ "type": "string",
128
+ "minLength": 1,
129
+ "maxLength": 32
130
+ }
131
+ },
132
+ "required": [
133
+ "runId"
134
+ ],
135
+ "additionalProperties": false
136
+ }
137
+ },
138
+ {
139
+ "name": "save_grader_draft",
140
+ "title": "Save selected backtested Grader checks",
141
+ "description": "Save selected candidates from a completed backtest into the Grader draft, preserving unrelated checks. Use current draftRevision from get_grader_run, or read get_grader_config, for expectedRevision. Refuses changed revisions and unresolved package or operand ambiguities. Returns saved check IDs and a new draft revision. Requires Grader write permission. Does not publish, change enforcement or rewrite stored scores. Never automatically retry an uncertain save; read the draft first.",
142
+ "inputSchema": {
143
+ "type": "object",
144
+ "properties": {
145
+ "backtestId": {
146
+ "type": "string",
147
+ "pattern": "^[a-f0-9-]{36}$"
148
+ },
149
+ "candidateIds": {
150
+ "type": "array",
151
+ "minItems": 1,
152
+ "maxItems": 30,
153
+ "uniqueItems": true,
154
+ "items": {
155
+ "type": "string",
156
+ "minLength": 1,
157
+ "maxLength": 128
158
+ }
159
+ },
160
+ "expectedRevision": {
161
+ "type": "string",
162
+ "pattern": "^[a-f0-9]{64}$"
163
+ }
164
+ },
165
+ "required": [
166
+ "backtestId",
167
+ "candidateIds",
168
+ "expectedRevision"
169
+ ],
170
+ "additionalProperties": false
171
+ }
172
+ },
7
173
  {
8
174
  "name": "bootstrap_workspace",
9
175
  "title": "Create or resume a workspace setup",
@@ -1319,7 +1485,7 @@
1319
1485
  "enum": [
1320
1486
  "signadot"
1321
1487
  ],
1322
- "description": "Links a three-component composite's steps to one Signadot sandbox: the sandbox it was ready in, a request or test routed to it, and that run's result. Never before push. Keep it when re-saving a check read from get_grader_config; dropping it leaves an unlinked composite that any sandbox step and any request satisfy."
1488
+ "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."
1323
1489
  }
1324
1490
  },
1325
1491
  "required": [
@@ -1581,7 +1747,7 @@
1581
1747
  "enum": [
1582
1748
  "signadot"
1583
1749
  ],
1584
- "description": "Links a three-component composite's steps to one Signadot sandbox: the sandbox it was ready in, a request or test routed to it, and that run's result. Never before push. Keep it when re-saving a check read from get_grader_config; dropping it leaves an unlinked composite that any sandbox step and any request satisfy."
1750
+ "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."
1585
1751
  }
1586
1752
  },
1587
1753
  "required": [
@@ -1703,7 +1869,7 @@
1703
1869
  {
1704
1870
  "name": "import_history",
1705
1871
  "title": "Import past Claude Code / Codex sessions",
1706
- "description": "Use this when the user wants their EXISTING local Claude Code or Codex history (sessions from before CodeTelemetry was set up) to show in CodeTelemetry. It reads ~/.claude/projects and ~/.codex/sessions on this machine and sends them through the normal ingest under the session's key, tagged as imported. ALWAYS call it first with dryRun true (the default) and show the user the summary — sessions, tokens, what is skipped and the content setting — then ask before calling again with dryRun false. Sessions already captured live or already imported are skipped; an interrupted import resumes. Each call sends at most maxSessions; while `remaining` > 0, call again. Imported history has tokens, prompts and tool results but no per-request latency, retries, permission decisions or active time. content defaults to live: exactly the prompt / tool text the user's live exporters are configured to send (Claude OTEL_LOG_USER_PROMPTS / OTEL_LOG_TOOL_DETAILS, Codex log_user_prompt); none sends no text; all sends prompt text and tool inputs regardless — only with the user's explicit agreement.",
1872
+ "description": "Use this when the user wants their EXISTING local Claude Code or Codex history (sessions from before CodeTelemetry was set up) to show in CodeTelemetry. It reads ~/.claude/projects and ~/.codex/sessions on this machine and sends them through the normal ingest under the session's key, tagged as imported. ALWAYS call it first with dryRun true (the default) and show the user the summary — sessions, tokens, what is skipped and the content setting — then ask before calling again with dryRun false. Sessions already captured live or already imported are skipped; an interrupted import resumes. Each call sends at most maxSessions; while `remaining` > 0, call again. A persistent workspace restricts imports to its bound project and coding client; it never falls back to a personal or machine-wide destination. Imported history has tokens, prompts and tool results but no per-request latency, retries, permission decisions or active time. content defaults to live: exactly the prompt / tool text the user's live exporters are configured to send (Claude OTEL_LOG_USER_PROMPTS / OTEL_LOG_TOOL_DETAILS, Codex log_user_prompt); none sends no text; all sends prompt text and tool inputs regardless — only with the user's explicit agreement.",
1707
1873
  "inputSchema": {
1708
1874
  "type": "object",
1709
1875
  "properties": {