@macroforge/mcp-server
Version:
MCP server for Macroforge documentation and code analysis
52 lines (37 loc) • 878 B
Markdown
When expanding a file like this:
TypeScript
```
/** @derive(Debug) */
class User {
name: string;
age: number;
constructor(name: string, age: number) {
this.name = name;
this.age = age;
}
}
```
The CLI outputs the expanded code with the generated methods:
TypeScript
```
class User {
name: string;
age: number;
constructor(name: string, age: number) {
this.name = name;
this.age = age;
}
[](): string {
return `User { name: ${this.name}, age: ${this.age} }`;
}
}
```
Errors and warnings are printed to stderr in a readable format:
Text
```
[] error at src/user.ts:5:1: Unknown derive macro: InvalidMacro
[] warning at src/user.ts:10:3: Field 'unused' is never used
```