Описание
Template repository for create a Wasm MCP Server
README
Template repository for creating a WebAssembly component Model Context Protocol (MCP) Server, with wasmCloud.
Dependencies
- Download Wasm Shell (wash) v2.2.0 or higher
Start the development loop
To start a new project based on this template, you can clone the repository or create a new project with wash:
wash new https://github.com/cosmonic-labs/mcp-server-template-ts --name my-project
When wash prompts you to Execute template setup command 'npm install'?, type y to select yes. This will run npm install automatically upon project creation. (If you'd rather run npm install manually after navigating to the directory, you can do that, too.)
In the project directory, start a development loop:
npm run dev
The dev script will automatically run the official MCP model inspector in your browser on http://localhost:6274/.
Using the model inspector you can connect to the local MCP server via HTTP, manipulate resources, run tools, and more.
Optional: Generate MCP tools from OpenAPI specification
You can generate MCP tools from an OpenAPI specification using the openapi2mcp tool.
Generate MCP tools from your OpenAPI specification:
npm run openapi2mcp path/to/openapi/spec.json
Note: The path to the OpenAPI spec must be inside the repository for the openapi2mcp npm script to work.
Set up Cosmonic Control
Once your MCP server is ready for primetime, ensure your Cosmonic Control cluster is running.
Don't have a Cosmonic Control cluster set up?
:::warning[Cosmonic Control required] It's free to get started with Cosmonic Control. You will need a Kubernetes cluster and an installation of Cosmonic Control to deploy the component. Follow the Get Started instructions in the Cosmonic Control documentation. :::
Deploy the application with Helm CLI
Make sure to substitute your own pushed image in the command below:
helm install mcpserver oci://ghcr.io/cosmonic-labs/charts/http-trigger\
--version 0.1.2\
--set 'components[0].name=mcpserver'\
--set 'components[0].image=ghcr.io/cosmonic-labs/petstore-mcp-server:v0.4.0'\
--set ingress.host="mcpserver.localhost.cosmonic.sh"\
--set pathNote="/v1/mcp"
Connect to the deployed MCP server
You can use the official MCP model inspector to connect. Start the MCP inspector via the following command:
npx @modelcontextprotocol/inspector
Установка Template Ts
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/cosmonic-labs/mcp-server-template-tsFAQ
Template Ts MCP бесплатный?
Да, Template Ts MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Template Ts?
Нет, Template Ts работает без API-ключей и переменных окружения.
Template Ts — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Template Ts в Claude Desktop, Claude Code или Cursor?
Открой Template Ts на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Template Ts with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
