Decorators → metadata
Declare intent close to your code without losing explicit definitions.
TypeScript · MCP · Explicit contracts
Record MCP declarations with familiar TypeScript decorators. In the published 0.1.0 release, those declarations remain inspectable metadata only.
@McpServer({ name: "catalog" })
class CatalogTools {
@McpTool({
name: "find_product",
description: "Find a product by id",
})
findProduct(input: { id: string }) {
return this.catalog.get(input.id);
}
}Declare intent close to your code without losing explicit definitions.
Inspect declared server and tool options without starting an MCP runtime.
Keep 0.1.0 declaration-only while future runtime work remains unreleased.
Architecture
Published release boundary
type-mcp@0.1.0 records standard decorator metadata. It does not validate, compile, invoke, or transport decorated tools as MCP operations.
createMcpServer() and type-mcp/http / createMcpHandler() are reserved and throw in the published release. Applications need their own runnable MCP integration until a later TypeMCP release.
Get started