npm @asadullokhn/teztun-mcpstdioMITupdated 4mo ago
Official TezTun MCP server, as a single-install npm package for Claude Desktop / Claude Code / Cursor / Zed / Windsurf / any Model Context Protocol client.
teztun 能做什么?
@asadullokhn/teztun-mcp
Official TezTun MCP server, as a single-install npm package for Claude Desktop / Claude Code / Cursor / Zed / Windsurf / any Model Context Protocol client.
Lets your AI editor manage your TezTun infrastructure through chat:
- "What's my current webhook URL?" →
list_tunnels - "Reserve a subdomain called demo" →
reserve_subdomain - "Mint a service token for prod-docker, never expires" →
create_service_token - "Revoke the staging-ci token" →
revoke_service_token
Install & configure
You don't install this manually — MCP clients run it via npx. Pick your client:
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"teztun": {
"command": "npx",
"args": ["-y", "@asadullokhn/teztun-mcp"],
"env": { "TEZTUN_TOKEN": "tzt_your-token-here" }
}
}
}
Claude Code
claude mcp add --scope user teztun \
-e TEZTUN_TOKEN=tzt_your-token-here \
-- npx -y @asadullokhn/teztun-mcp
Cursor / Zed / Windsurf
Each editor has an MCP config file (~/.cursor/mcp.json, etc.). The block shape is the same as the Claude Desktop example above.
Get a service token
Sign up at app.teztun.uz, then mint a service token. On the Max plan ($10/year) tokens never expire — recommended for AI editor use.
How the package works
This package is a thin launcher. It tries, in order:
- If the TezTun CLI (
teztun) is installed, it runsteztun mcp. - If Docker is available, it runs
docker run --rm -i -e TEZTUN_TOKEN asadullokhn/teztun:latest mcp. - Otherwise it errors with install instructions.
No bundled binaries, no postinstall side effects. The MCP server itself is the Go binary from teztun.uz/download, or the asadullokhn/teztun image on Docker Hub.
Exposed tools
| Tool | What it does |
|---|---|
get_account |
Current user (plan, status) |
list_tunnels |
Active tunnels with their public URLs |
list_subdomains |
Reserved subdomains |
reserve_subdomain(name) |
Reserve a new subdomain (plan-gated) |
release_subdomain(id) |
Release a reserved subdomain (destructive) |
list_custom_domains |
Custom domains on the Max plan |
list_service_tokens |
Service tokens the user has minted |
create_service_token(name, expiry_seconds?, expire_never?) |
Mint a token |
revoke_service_token(id) |
Revoke a service token (destructive) |
Links
- Product: https://teztun.uz
- Dashboard: https://app.teztun.uz
- Docs: https://teztun.uz/docs/mcp-server
- API reference: https://teztun.uz/docs/api
- Docker image: asadullokhn/teztun
- Support: support@teztun.uz
License
MIT. Launcher only — the MCP server binary it spawns is the official TezTun client.
安装
把 teztun 添加到你的客户端。选择你正在使用的那个。
claude mcp add teztun-mcp -- npx -y @asadullokhn/teztun-mcpcodex mcp add teztun-mcp -- npx -y @asadullokhn/teztun-mcpamp mcp add teztun-mcp -- npx -y @asadullokhn/teztun-mcp{
"mcpServers": {
"teztun-mcp": {
"command": "npx",
"args": [
"-y",
"@asadullokhn/teztun-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"teztun-mcp": {
"command": "npx",
"args": [
"-y",
"@asadullokhn/teztun-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"teztun-mcp","command":"npx","args":["-y","@asadullokhn/teztun-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"teztun-mcp": {
"command": "npx",
"args": [
"-y",
"@asadullokhn/teztun-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"teztun-mcp": {
"command": "npx",
"args": [
"-y",
"@asadullokhn/teztun-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"teztun-mcp": {
"command": "npx",
"args": [
"-y",
"@asadullokhn/teztun-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"teztun-mcp": {
"type": "local",
"command": "npx",
"args": [
"-y",
"@asadullokhn/teztun-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"teztun-mcp": {
"command": {
"path": "npx",
"args": [
"-y",
"@asadullokhn/teztun-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y @asadullokhn/teztun-mcpRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
评分
39 / 100
不完整
- 文档22/25
- 维护13/25
- 可信度13/20
- 能力0/15
- 安装体验12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 135 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
版本历史
| 版本 | 发布于 |
|---|---|
| 1.0.1最新 | 2026年4月18日 |