We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/macroforge-ts/mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
overview.md•428 B
# ts\_macro\_derive
The `#[ts_macro_derive]` attribute is a Rust procedural macro that registers your function as a
Macroforge derive macro.
## Basic Syntax
Rust
```
use macroforge_ts::macros::ts_macro_derive;
use macroforge_ts::ts_syn::{TsStream, MacroforgeError};
#[ts_macro_derive(MacroName)]
pub fn my_macro(mut input: TsStream) -> Result<TsStream, MacroforgeError> {
// Macro implementation
}
```