mcp-ts-template
v3.0.9TypeScript template for building MCP servers with declarative tooling, observability, and auth.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
template_cat_fact Template Cat Fact
Fetches a random cat fact from a public API with an optional maximum length.
| Parameter | Type | Description |
|---|---|---|
maxLength | integer | Optional: The maximum character length of the cat fact to retrieve. |
template_code_review_sampling Code Review with Sampling
Demonstrates MCP sampling by requesting an LLM to review code snippets. The tool uses the client's LLM to generate a code review summary.
| Parameter | Type | Description |
|---|---|---|
code * | string | The code snippet to review. |
focus | string | The focus area for the code review. |
language | string | Programming language of the code (e.g., "typescript", "python"). |
maxTokens | integer | Maximum tokens for the LLM response. |
template_echo_message Template Echo Message
Echoes a message back with optional formatting and repetition.
| Parameter | Type | Description |
|---|---|---|
message * | string | The message to echo back. To trigger a test error, provide 'TRIGGER_ERROR'. |
includeTimestamp | boolean | Whether to include an ISO 8601 timestamp in the response. |
mode | string | How to format the message ('standard' | 'uppercase' | 'lowercase'). |
repeat | integer | Number of times to repeat the formatted message. |
template_image_test Template Image Test
Fetches a random cat image and returns it base64-encoded with the MIME type. Useful for testing image handling.
| Parameter | Type | Description |
|---|---|---|
trigger | boolean | A trigger to invoke the tool and fetch a new cat image. |
template_madlibs_elicitation Mad Libs Elicitation Game
Plays a game of Mad Libs. If any parts of speech (noun, verb, adjective) are missing, it will use elicitation to ask the user for them.
| Parameter | Type | Description |
|---|---|---|
adjective | string | An adjective for the story. |
noun | string | A noun for the story. |
verb | string | A verb (past tense) for the story. |
template_data_explorer Template Data Explorer
Generates sample sales data and renders an interactive explorer. Users can sort columns, filter rows, and select entries directly in the UI. Hosts without MCP Apps support receive a text table.
| Parameter | Type | Description |
|---|---|---|
rowCount | integer | Number of sample rows to generate (5–100). |
template_async_countdown Async Countdown (Task Demo)
Demonstrates the MCP Tasks API with a countdown timer. When the client supports tasks, returns immediately with a task handle for polling. Otherwise, runs synchronously and returns the result directly.
| Parameter | Type | Description |
|---|---|---|
seconds * | integer | Number of seconds to count down (1-60) |
message | string | Optional message to include in the final result |
simulateFailure | boolean | If true, simulates a failure at 50% progress (for testing) |