Skip to content
Merged
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- standards-version: 1.11.0 -->
<!-- standards-version: 1.10.0 -->

# AGENTS.md

Expand Down
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- standards-version: 1.11.0 -->
<!-- standards-version: 1.10.0 -->

# CLAUDE.md

Expand Down
8 changes: 4 additions & 4 deletions src/tools/__tests__/tools.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ describe("devtools_getFleetStatus happy path", () => {
"fetch",
makeFetchMock({
"registry.json": REGISTRY_FIXTURE,
"VERSION": VERSION_FIXTURE,
"STANDARDS_VERSION": VERSION_FIXTURE,
"releases/latest": JSON.stringify({ tag_name: "v1.0.0" }),
}),
);
Expand All @@ -142,13 +142,13 @@ describe("devtools_getFleetStatus happy path", () => {
});

describe("devtools_checkDrift happy path", () => {
it("returns summary with metaVersion and results array", async () => {
it("returns summary with standardsVersion and results array", async () => {
vi.stubGlobal(
"fetch",
makeFetchMock({
"drift-checker.config.json": DRIFT_CONFIG_FIXTURE,
"registry.json": REGISTRY_FIXTURE,
"VERSION": VERSION_FIXTURE,
"STANDARDS_VERSION": VERSION_FIXTURE,
"CLAUDE.md": CLAUDE_MD_FIXTURE,
"contents/.github/workflows": JSON.stringify([
{ name: "drift-check.yml", type: "file" },
Expand All @@ -169,7 +169,7 @@ describe("devtools_checkDrift happy path", () => {
const result = await tool.handler({ slug: "steam-mcp", verbose: false });
expect(result.isError).toBeUndefined();
const parsed = JSON.parse(result.content[0].text);
expect(parsed).toHaveProperty("metaVersion");
expect(parsed).toHaveProperty("standardsVersion");
expect(parsed).toHaveProperty("results");
});
});
Expand Down
16 changes: 8 additions & 8 deletions src/tools/checkDrift.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { z } from "zod";
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import {
fetchRegistry,
fetchMetaVersion,
fetchStandardsVersion,
rawFetch,
githubFetch,
extractStandardsVersion,
Expand Down Expand Up @@ -35,10 +35,10 @@ function parseSemver(v: string): [number, number, number] {
function applySignalPolicy(
policy: string,
repoVersion: string,
metaVersion: string,
standardsVersion: string,
): Severity {
const [rm, rn, rp] = parseSemver(repoVersion);
const [mm, mn, mp] = parseSemver(metaVersion);
const [mm, mn, mp] = parseSemver(standardsVersion);

// Repo is ahead of meta - unexpected, surface as warning
if (
Expand Down Expand Up @@ -92,14 +92,14 @@ export function register(server: McpServer): void {
inputSchema,
async ({ slug, verbose }) => {
try {
const [configRaw, registry, metaVersion] = await Promise.all([
const [configRaw, registry, standardsVersion] = await Promise.all([
rawFetch(
"TMHSDigital",
"Developer-Tools-Directory",
"standards/drift-checker.config.json",
),
fetchRegistry(),
fetchMetaVersion(),
fetchStandardsVersion(),
]);

const config = JSON.parse(configRaw) as DriftConfig;
Expand Down Expand Up @@ -154,12 +154,12 @@ export function register(server: McpServer): void {
message: "standards-version marker not found in CLAUDE.md or AGENTS.md",
});
} else {
const severity = applySignalPolicy(policy, standardsVersion, metaVersion);
const severity = applySignalPolicy(policy, standardsVersion, standardsVersion);
if (severity !== "ok") {
repoFindings.push({
check: "version-signal",
severity,
message: `standards-version ${standardsVersion} vs meta ${metaVersion}`,
message: `standards-version ${standardsVersion} vs meta ${standardsVersion}`,
});
}
}
Expand Down Expand Up @@ -191,7 +191,7 @@ export function register(server: McpServer): void {
}));

const summary = {
metaVersion,
standardsVersion,
signalPolicy: policy,
checkedRepos: filtered.length,
errors: filtered.flatMap((r) =>
Expand Down
8 changes: 4 additions & 4 deletions src/tools/getFleetStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { z } from "zod";
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import {
fetchRegistry,
fetchMetaVersion,
fetchStandardsVersion,
rawFetch,
githubFetch,
extractStandardsVersion,
Expand Down Expand Up @@ -46,9 +46,9 @@ export function register(server: McpServer): void {
inputSchema,
async ({ include_standards_version }) => {
try {
const [registry, metaVersion] = await Promise.all([
const [registry, metaStandardsVersion] = await Promise.all([
fetchRegistry(),
fetchMetaVersion(),
fetchStandardsVersion(),
]);

const results = await Promise.all(
Expand Down Expand Up @@ -83,7 +83,7 @@ export function register(server: McpServer): void {
latestReleaseTag: latestTag,
versionSignal: versionSignal(entry.version, latestTag),
...(include_standards_version
? { standardsVersion, metaVersion }
? { standardsVersion, metaStandardsVersion }
: {}),
};
}),
Expand Down
4 changes: 2 additions & 2 deletions src/utils/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export async function fetchRegistry(): Promise<RegistryEntry[]> {
return JSON.parse(raw) as RegistryEntry[];
}

export async function fetchMetaVersion(): Promise<string> {
const raw = await rawFetch(META_OWNER, META_REPO, "VERSION");
export async function fetchStandardsVersion(): Promise<string> {
const raw = await rawFetch(META_OWNER, META_REPO, "STANDARDS_VERSION");
return raw.trim();
}
Loading