mcp-ts-template
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-ts-templateadd 3 and 5"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-ts-template
Production-ready Model Context Protocol (MCP) server template in TypeScript, built on the official @modelcontextprotocol/sdk. Ships an example tool, resource, and prompt.
Use this template
gh repo create my-mcp --template vidyasagarr7/mcp-ts-templateRelated MCP server: MCP Server Starter
Layout
src/
server.ts # stdio entry point (transport wiring only)
index.ts # createServer(): registers tools/resources/prompts
core/tools.ts # pure domain logic (testable, no MCP concerns)
version.ts
tests/ # vitest specsGolden rule: transport in server.ts, registration in index.ts, logic in core/.
Develop
npm install
npm run dev # run server from source over stdio
npm test # vitest
npm run typecheck
npm run build
npm run inspect # launch MCP Inspector against the built serverTry the server by hand
npm run build
# Initialize handshake over stdio:
printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"probe","version":"0"}}}' | node dist/server.jsRegister a new tool
Add pure logic to
src/core/tools.ts.Add a unit test in
tests/.Register it in
src/index.tsviaserver.registerTool(...)with azodinput schema.
Connect from a client
Point any MCP client (Claude Desktop, MCP Inspector, etc.) at the built binary:
{
"mcpServers": {
"my-mcp": { "command": "node", "args": ["/abs/path/dist/server.js"] }
}
}Make it yours (rename checklist)
package.json:name,description,binkey,repository,keywordssrc/index.ts:new McpServer({ name: ... })Replace the example
addtool /greetingresource /summarizeprompt with your ownKeep transport in
server.ts, registration inindex.ts, logic incore/
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
- addA
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/vidyasagarr7/mcp-ts-template'
If you have feedback or need assistance with the MCP directory API, please join our Discord server