@macroforge/mcp-server
Version:
MCP server for Macroforge documentation and code analysis
46 lines (31 loc) • 810 B
Markdown
## Attribute Options
### Name (Required)
The first argument is the macro name that users will reference in `@derive()`:
Rust
```
// Users write: @derive(JSON)
pub fn derive_json(...)
```
### Description
Provides documentation for the macro:
Rust
```
pub fn derive_json(...)
```
### Attributes
Declare which field-level decorators your macro accepts:
Rust
```
pub fn derive_debug(...)
```
Note
Declared attributes become available as `@attributeName({ options })` decorators in TypeScript.