Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ Madar is deterministic local context compilation. It complements agents and IDE

---

## Rename and migration

Madar is the current project name and package. If you arrived from older `graphify-ts` links, listings, or git remotes, use `@lubab/madar`, `https://github.com/mohanagy/madar`, and `git@github.com:mohanagy/madar.git`. Any remaining `graphify-ts` mentions in this repository are historical migration context only.

---

## Who Madar is for

- Teams using AI coding agents on medium-to-large TypeScript/Node repos where broad exploration creates cost, latency, privacy, or wrong-file-edit risk.
Expand Down
2 changes: 1 addition & 1 deletion docs/mcp-registry/server.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
],
"_meta": {
"io.modelcontextprotocol.registry/publisher-provided": {
"notes": "Public npm package plus local graph artifact install flow.",
"notes": "Public npm package plus local graph artifact install flow. Madar is the renamed continuation of `graphify-ts`; use `@lubab/madar` and `https://github.com/mohanagy/madar` as the canonical package and repository.",
"source": "docs/mcp-registry/server.json"
}
}
Expand Down
2 changes: 2 additions & 0 deletions docs/reference/cli-and-mcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ npm run registry:validate

The official MCP Registry hosts metadata, not Madar code or your local graph artifact. Madar's registry entry points back to the public npm package and the same local-first runtime flow: run `madar generate .` to create `out/graph.json`, then start the local stdio server with `npx @lubab/madar serve --stdio out/graph.json`, or let `madar <agent> install` write that wiring for you.

If you still discover older `graphify-ts` links or listings, Madar is the current project name. Use `https://github.com/mohanagy/madar` and `@lubab/madar` as the canonical repository and package surfaces.

Private registry usage stays out of scope for the public Madar listing because the official MCP Registry only accepts public package sources. Keep private or self-hosted registry workflows separate from this metadata file.

## MCP tools
Expand Down
13 changes: 13 additions & 0 deletions tests/unit/mcp-registry-metadata.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ interface RegistryManifest {
$schema?: string
name?: string
description?: string
_meta?: {
'io.modelcontextprotocol.registry/publisher-provided'?: {
notes?: string
source?: string
}
}
repository?: {
id?: string
source?: string
Expand All @@ -70,6 +76,7 @@ describe('MCP Registry metadata', () => {
const npmPackage = registryManifest.packages?.[0]
const graphPathArgument = npmPackage?.packageArguments?.find((entry) => entry.valueHint === 'graph_path')
const toolProfile = npmPackage?.environmentVariables?.find((entry) => entry.name === 'MADAR_TOOL_PROFILE')
const publisherNotes = registryManifest._meta?.['io.modelcontextprotocol.registry/publisher-provided']

expect(registryManifest.$schema).toContain('static.modelcontextprotocol.io/schemas/')
expect(registryManifest.name).toBe('io.github.mohanagy/madar')
Expand Down Expand Up @@ -108,6 +115,10 @@ describe('MCP Registry metadata', () => {
default: 'core',
})
expect(toolProfile?.choices).toEqual(expect.arrayContaining(['core', 'full']))
expect(publisherNotes?.source).toBe('docs/mcp-registry/server.json')
expect(publisherNotes?.notes).toContain('Madar is the renamed continuation of `graphify-ts`')
expect(publisherNotes?.notes).toContain('`@lubab/madar`')
expect(publisherNotes?.notes).toContain('`https://github.com/mohanagy/madar`')
})

it('exposes a repeatable local validation command for the checked-in registry metadata', () => {
Expand Down Expand Up @@ -164,6 +175,8 @@ describe('MCP Registry metadata', () => {
expect(reference).toContain('npm run registry:validate')
expect(reference).toContain('The official MCP Registry hosts metadata, not Madar code or your local graph artifact.')
expect(reference).toContain('Private registry usage stays out of scope for the public Madar listing')
expect(reference).toContain('If you still discover older `graphify-ts` links or listings, Madar is the current project name.')
expect(reference).toContain('`https://github.com/mohanagy/madar`')
expect(releaseDoc).toContain('npm run registry:validate')
Comment on lines +178 to 180
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Assert the canonical npm package in this docs contract test.

These checks lock the repo URL, but they do not lock @lubab/madar. If the package identifier drops out of the CLI reference rename note, this PR objective still regresses while the test stays green.

Suggested assertion
     expect(reference).toContain('If you still discover older `graphify-ts` links or listings, Madar is the current project name.')
+    expect(reference).toContain('`@lubab/madar`')
     expect(reference).toContain('`https://github.com/mohanagy/madar`')
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
expect(reference).toContain('If you still discover older `graphify-ts` links or listings, Madar is the current project name.')
expect(reference).toContain('`https://github.com/mohanagy/madar`')
expect(releaseDoc).toContain('npm run registry:validate')
expect(reference).toContain('If you still discover older `graphify-ts` links or listings, Madar is the current project name.')
expect(reference).toContain('`@lubab/madar`')
expect(reference).toContain('`https://github.com/mohanagy/madar`')
expect(releaseDoc).toContain('npm run registry:validate')
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@tests/unit/mcp-registry-metadata.test.ts` around lines 178 - 180, The test
currently verifies repo URLs but misses asserting the canonical npm package
name; update the unit test in tests/unit/mcp-registry-metadata.test.ts to also
assert that the CLI reference text includes the package identifier by adding an
expectation against the same variable used for the CLI reference (reference)
toContain the string "`@lubab/madar`" so the test fails if the canonical package
name is removed or changed.

})
})
32 changes: 31 additions & 1 deletion tests/unit/rebrand-surface.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,21 @@ function readText(path: string): string {

const LEGACY_BRAND = ['g', 'r', 'a', 'p', 'h', 'i', 'f', 'y'].join('')
const LEGACY_OUT_DIR = `${LEGACY_BRAND}-out`
const RENAME_NOTE_HEADING = '## Rename and migration'

function stripRenameNote(text: string): string {
const headingIndex = text.indexOf(RENAME_NOTE_HEADING)
if (headingIndex === -1) {
return text
}

const nextHeadingIndex = text.indexOf('\n## ', headingIndex + RENAME_NOTE_HEADING.length)
if (nextHeadingIndex === -1) {
return text.slice(0, headingIndex)
}

return `${text.slice(0, headingIndex)}${text.slice(nextHeadingIndex + 1)}`
}

describe('rebrand surface', () => {
it('keeps only the madar command and removes compatibility packaging scripts', () => {
Expand Down Expand Up @@ -86,8 +101,23 @@ describe('rebrand surface', () => {
}
})

it('removes legacy branding from the main docs', () => {
it('documents the canonical Madar rename path for users arriving from legacy links', () => {
const readme = readText('README.md')
const headingIndex = readme.indexOf(RENAME_NOTE_HEADING)

expect(headingIndex).toBeGreaterThanOrEqual(0)

const renameSection = readme.slice(headingIndex, readme.indexOf('\n## ', headingIndex + RENAME_NOTE_HEADING.length))

expect(renameSection).toContain('`graphify-ts`')
expect(renameSection).toContain('`@lubab/madar`')
expect(renameSection).toContain('`https://github.com/mohanagy/madar`')
expect(renameSection).toContain('`git@github.com:mohanagy/madar.git`')
expect(stripRenameNote(readme)).not.toContain(LEGACY_BRAND)
})

it('removes legacy branding from the main docs', () => {
const readme = stripRenameNote(readText('README.md'))
const gettingStarted = readText('docs/tutorials/getting-started.md')
const capabilityMatrix = readText('docs/language-capability-matrix.md')
const releaseDoc = readText('docs/release.md')
Expand Down
Loading