Skip to main content
This is the canonical example shipped in the sedata-ai-packages repo at example-servers/typescript-mcp-server/. It instruments two tools:
  • calculate-bmi — pure math, no safety check.
  • text-summarizer — accepts free-form text, wrapped with safetyCheck.

Project setup

Set your token:

server.ts

Run

Drive it with any MCP client (Claude Desktop, Inspector, your agent runtime). After a few calls, traces appear at app.sedata-ai.tech within ~5 seconds.

What you’ll see

If the safety API flags an input, the response includes structuredContent.summary === '🚫 CONTENT BLOCKED: ...' and the original handler is not called.

Variations

BMI calculator only

A minimal version with one tool, no safety.

Summarizer with safety

Focused walkthrough of the safety wrapper.