TunnelHub MCP
Click on "Deploy 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., "@TunnelHub MCP list active automations and show logs for the latest execution"
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.
TunnelHub MCP
Conecte clientes MCP ao TunnelHub para investigar automações, execuções, logs e traces usando o mesmo fluxo de autenticação do frontend.
Este MCP é especialmente útil para:
Acompanhar automações do TunnelHub
Localizar e resumir execuções
Imprimir logs e traces
Analisar falhas parciais e dependências externas
Trabalhar com ambientes da empresa atual
✨ O que você pode fazer
Autenticar no TunnelHub pelo navegador
Listar ambientes disponíveis
Listar e inspecionar automações
Localizar execuções por intervalo de tempo
Resumir uma execução completa
Consultar logs e traces de uma execução
Ler informações básicas da empresa atual
✅ Pré-requisitos
Você vai precisar de:
Node.js 22+
Acesso a uma empresa do TunnelHub
Um cliente compatível com MCP via
stdio
Clientes recomendados:
OpenCode
Claude Desktop
Cursor
Outros clientes MCP compatíveis com
stdio
🚀 Comece em 2 minutos
A forma principal de uso é via npx com o bin explícito:
npx -y @tunnelhub/mcp@latestSe você estiver desenvolvendo localmente:
pnpm install
pnpm build
node dist/index.jsSe esta for sua primeira vez usando o MCP do TunnelHub, siga este fluxo:
Faça login no TunnelHub
se for o primeiro login, informe o
accountNameda empresa
Qual sessão está ativa?
Liste os ambientes disponíveis
Liste as automações ativas
Você não precisa decorar o nome das tools. Pode pedir em linguagem natural, e o cliente MCP deve escolher a ferramenta certa.
🔌 Configuração oficial por cliente
OpenCode
A forma mais estável de configurar no OpenCode é via opencode.json.
Se preferir, você também pode usar opencode mcp add, que abre um fluxo interativo para adicionar o servidor MCP.
Exemplo usando opencode.json:
Exemplo completo:
{
"mcp": {
"tunnelhub": {
"type": "local",
"command": [
"npx",
"-y",
"@tunnelhub/mcp@latest"
],
"enabled": true,
"environment": {
"OAUTH_CALLBACK_PORT": "3333"
}
}
}
}Exemplo usando build local:
{
"mcp": {
"tunnelhub": {
"type": "local",
"command": [
"node",
"/caminho/para/mcp/dist/index.js"
],
"enabled": true,
"environment": {
"OAUTH_CALLBACK_PORT": "3333"
}
}
}
}Claude Desktop
Exemplo de configuração no claude_desktop_config.json:
{
"mcpServers": {
"tunnelhub": {
"command": "npx",
"args": ["-y", "@tunnelhub/mcp@latest"],
"env": {
"OAUTH_CALLBACK_PORT": "3333"
}
}
}
}Exemplo usando build local:
{
"mcpServers": {
"tunnelhub": {
"command": "node",
"args": ["/caminho/para/mcp/dist/index.js"],
"env": {
"OAUTH_CALLBACK_PORT": "3333"
}
}
}
}Cursor
Use o mesmo comando stdio do cliente MCP:
{
"mcpServers": {
"tunnelhub": {
"command": "npx",
"args": ["-y", "@tunnelhub/mcp@latest"],
"env": {
"OAUTH_CALLBACK_PORT": "3333"
}
}
}
}Exemplo usando build local:
{
"mcpServers": {
"tunnelhub": {
"command": "node",
"args": ["/caminho/para/mcp/dist/index.js"],
"env": {
"OAUTH_CALLBACK_PORT": "3333"
}
}
}
}Outros clientes MCP compatíveis com stdio
Se o cliente aceitar um comando local, use:
npx -y @tunnelhub/mcp@latestOu, em desenvolvimento:
node /caminho/para/mcp/dist/index.js🔐 Como funciona o login
No primeiro uso, chame a ferramenta de login do MCP.
Fluxo esperado:
O cliente chama
login_tunnelhubO MCP abre o navegador local
Você faz login no TunnelHub
A sessão fica salva localmente
As próximas ferramentas passam a usar a empresa e o ambiente ativos
Ferramentas básicas de sessão:
login_tunnelhubcurrent_session_tunnelhublist_sessions_tunnelhublist_environments_tunnelhubswitch_environment_tunnelhublogout_tunnelhub
💬 Exemplos de perguntas
Você pode pedir coisas como:
Faça login no TunnelHubFaça login no TunnelHub para a empresa 4successQual sessão está ativa?Liste os ambientes disponíveisListe as automações ativasAche a execução 9b696080439f no dia 2026-03-13Resuma a execução 019ce7f3-2707-740c-8692-9b696080439fMe mostre os traces com ERROR dessa execuçãoMe mostre os logs dessa execuçãoEssa execução teve sucesso degradado?Quais dependências externas falharam nessa execução?Só usando o MCP, me diga o que precisa ser corrigido nessa automação
🧰 Principais ferramentas disponíveis
Sessão
login_tunnelhubcurrent_session_tunnelhublist_sessions_tunnelhublist_environments_tunnelhubswitch_environment_tunnelhublogout_tunnelhub
Empresas
list_tenants_tunnelhubget_tenant_tunnelhub
Automações
list_automations_tunnelhubget_automation_tunnelhublist_automation_deploys_tunnelhubget_automation_action_logs_tunnelhubexecute_automation_tunnelhub
Monitoramento
list_automation_executions_tunnelhubfind_execution_tunnelhubget_execution_tunnelhubsummarize_execution_tunnelhubget_execution_traces_tunnelhubget_execution_logs_tunnelhub
⚙️ Variáveis de ambiente
Variáveis suportadas:
OAUTH_CALLBACK_PORTpadrão3333TUNNELHUB_FRONTEND_URLopcionalTUNNELHUB_API_HOSTopcional; padrãohttps://api.tunnelhub.io
Observações:
O login usa o fluxo do frontend do TunnelHub
Quando possível, o MCP reutiliza o domínio personalizado da empresa
A porta do callback OAuth prefere
3333e procura outra livre se necessário
🧭 Dicas de uso
Ao procurar uma execução, informe sempre a data ou um intervalo de tempo
Quando já souber
automationId,executionIdeexecutionPeriod, use direto as ferramentas de detalhePara diagnóstico rápido, prefira
summarize_execution_tunnelhubPara investigação detalhada, consulte traces e logs em seguida
⚠️ Limitações atuais
O foco atual está em automações e monitoramento
Algumas APIs do backend têm comportamentos específicos de filtro e paginação
A listagem de execuções depende de intervalo de tempo obrigatório
🛠️ Desenvolvimento local
Comandos úteis:
pnpm install
pnpm typecheck
pnpm build
pnpm dev🤝 Contribuições
Feedback, sugestões e contribuições são bem-vindos.
Se você estiver evoluindo o MCP internamente, vale sempre validar:
Experiência de uso no cliente MCP
Clareza das respostas textuais
Consistência dos filtros
Qualidade dos exemplos do README
📚 Documentação técnica
Detalhes técnicos, arquitetura e comportamento interno estão documentados em inglês:
docs/technical-overview.md
Available Tools
19 toolscurrent_session_tunnelhubCurrent TunnelHub SessionARead-onlyIdempotent
Show the current authenticated TunnelHub session.
Inputs: no named parameters.
execute_automation_tunnelhubExecute AutomationB
Dispatch a TunnelHub automation manually, same flow used by the UI.
Inputs: automationId (required), payload.
find_execution_tunnelhubFind ExecutionBRead-onlyIdempotent
Find an execution within a required date range and resolve its execution period.
Inputs: startDate (required), endDate (required), current, pageSize, +4 more.
get_automation_action_logs_tunnelhubGet Automation Action LogsBRead-onlyIdempotent
Read action logs for a TunnelHub automation.
Inputs: automationId (required), current, pageSize.
get_automation_tunnelhubGet TunnelHub AutomationARead-onlyIdempotent
Get automation details by id.
Inputs: automationId (required).
get_execution_logs_tunnelhubGet Execution LogsBRead-onlyIdempotent
Get execution logs for one automation execution.
Inputs: executionId (required), automationId (required), executionPeriod (required), current, +3 more.
get_execution_traces_tunnelhubGet Execution TracesBRead-onlyIdempotent
Get execution traces for one automation execution.
Inputs: executionId (required), automationId (required), executionPeriod (required), nextToken, +7 more.
get_execution_tunnelhubGet ExecutionBRead-onlyIdempotent
Get execution summary details for one automation execution. Requires automationId, executionId, and executionPeriod.
Inputs: executionId (required), automationId (required), executionPeriod (required).
get_tenant_tunnelhubGet TunnelHub TenantBRead-onlyIdempotent
Get read-only details for a tenant by id.
Inputs: tenantId (required).
list_automation_deploys_tunnelhubList Automation DeploysBRead-onlyIdempotent
List deploy history for a TunnelHub automation.
Inputs: automationId (required).
list_automation_executions_tunnelhubList Automation ExecutionsARead-onlyIdempotent
List automation executions for a required date range. startDate and endDate are mandatory.
Inputs: startDate (required), endDate (required), current, pageSize, +3 more.
list_automations_tunnelhubList TunnelHub AutomationsBRead-onlyIdempotent
List automations from integrations-service using the current environment.
Inputs: current, pageSize, name, status.
list_environments_tunnelhubList TunnelHub EnvironmentsBRead-onlyIdempotent
List environments available to the current authenticated user.
Inputs: no named parameters.
list_sessions_tunnelhubList TunnelHub SessionsARead-onlyIdempotent
List saved TunnelHub sessions in local MCP storage.
Inputs: no named parameters.
list_tenants_tunnelhubList TunnelHub TenantsARead-onlyIdempotent
List tenants visible to the authenticated user. Intended as read-only lookup.
Inputs: no named parameters.
login_tunnelhubLogin TunnelHubB
Authenticate to TunnelHub using the browser-based frontend auth flow.
Inputs: accountName, tenantId.
logout_tunnelhubLogout TunnelHubADestructiveIdempotent
Remove the current or a specific saved TunnelHub session.
Inputs: sessionId.
summarize_execution_tunnelhubSummarize ExecutionBRead-onlyIdempotent
Summarize one execution with details, logs, and traces.
Inputs: executionId (required), automationId (required), executionPeriod (required).
switch_environment_tunnelhubSwitch TunnelHub EnvironmentBIdempotent
Switch the active TunnelHub environment for the current session.
Inputs: environmentId (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 19 tools
Most tools have distinct purposes targeting specific resources like automations, executions, sessions, and tenants, but there is some overlap between 'get_execution_tunnelhub' (summary details) and 'summarize_execution_tunnelhub' (details, logs, traces) that could cause confusion. Other tools like 'list_automation_executions_tunnelhub' and 'find_execution_tunnelhub' are clearly differentiated by their search parameters and outputs.
All tool names follow a consistent verb_noun pattern with 'tunnelhub' appended (e.g., 'list_automations_tunnelhub', 'get_automation_tunnelhub'). The naming is uniform across all 19 tools, using snake_case throughout without any deviations in style or structure.
With 19 tools, the count is slightly high but reasonable for a server managing automations, executions, sessions, and tenants in a platform like TunnelHub. It covers multiple aspects of the domain without being excessive, though it borders on feeling heavy compared to more streamlined sets.
The tool set provides comprehensive coverage for automation lifecycle (list, get, execute, deploy, logs, traces), session management (login, logout, switch, list), and tenant/environment lookup. Minor gaps include lack of update/delete operations for automations or tenants, but core workflows are well-supported with no dead ends.
Related MCP Connectors
Secure and manage MCP servers through the Speakeasy AI Control Plane from your agent.
Connect AI clients to your Dactic work context through a hosted MCP service.
Connect ChatGPT and Claude to your Mac, Windows or Linux with secure MCP remote access.
MCP gateway and cloud hosting for MCP servers, agents and apps like RAG, managed from your agent.