Skip to content

Commit fbcbe18

Browse files
authored
Merge pull request #10 from peopleworks/feat/mcp-registry
MCP: make the manifest publishable to the official registry
2 parents 6e23c7b + bef8d78 commit fbcbe18

2 files changed

Lines changed: 15 additions & 4 deletions

File tree

.github/workflows/nuget.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
4444
# Guards the classic footgun: tagging v0.2.0 while the csproj files still say 0.1.0.
4545
# --skip-duplicate would swallow that silently and report success.
46-
- name: Check the release tag matches the packed version
46+
- name: Check the release tag matches what we built
4747
if: github.event_name == 'release'
4848
run: |
4949
want="${GITHUB_REF_NAME#v}"
@@ -53,7 +53,18 @@ jobs:
5353
ls -1 out/
5454
exit 1
5555
fi
56-
echo "Tag $GITHUB_REF_NAME matches the packed version $want."
56+
57+
# The MCP manifest carries its own version twice, and the MCP registry serves it to
58+
# clients. If it drifts, the registry advertises a version that doesn't exist.
59+
manifest="src/SignsOfAI.Mcp/.mcp/server.json"
60+
server_version=$(jq -r '.version' "$manifest")
61+
package_version=$(jq -r '.packages[0].version' "$manifest")
62+
if [ "$server_version" != "$want" ] || [ "$package_version" != "$want" ]; then
63+
echo "::error::$manifest says version=$server_version, packages[0].version=$package_version — expected $want."
64+
exit 1
65+
fi
66+
67+
echo "Tag $GITHUB_REF_NAME matches the packages and the MCP manifest."
5768
5869
- name: NuGet login (trusted publishing)
5970
id: login

src/SignsOfAI.Mcp/.mcp/server.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-10-17/server.schema.json",
2+
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
33
"name": "io.github.peopleworks/signs-of-ai",
44
"version": "0.1.0",
55
"title": "Signs of AI Writing",
6-
"description": "Explainable AI-writing detection and originality checking in English and Spanish. Returns the evidence behind the score — overused vocabulary, rhetorical crutches, syntactic patterns and sentence-rhythm burstiness — each with a fix, and compares documents against each other to surface shared passages.",
6+
"description": "Bilingual (EN/ES) AI-writing detection that shows the evidence, plus originality checking.",
77
"packages": [
88
{
99
"registryType": "nuget",

0 commit comments

Comments
 (0)