typescript-server-template

TypeScript MCP Server Template

Content Preview
# TypeScript MCP Server Template

```ts
import { FastMCP } from "fastmcp";

const server = new FastMCP({ name: "my-server" });

server.tool(
  "list_items",
  "List items from upstream service",
  async (input) => {
    return {
      content: [{ type: "text", text: JSON.stringify({ status: "todo", input }) }],
    };
  }
);

server.run();
```
How to Use

Recommended: Install to project (local)

mkdir -p .claude/skills
curl -o .claude/skills/typescript-server-template.md \
  https://raw.githubusercontent.com/alirezarezvani/claude-skills/main/engineering/mcp-server-builder/references/typescript-server-template.md

Skill is scoped to this project only. Add .claude/skills/ to your .gitignoreif you don't want to commit it.

Alternative: Clone full repo

git clone https://github.com/alirezarezvani/claude-skills

Then reference at engineering/mcp-server-builder/references/typescript-server-template.md

Related Skills