MCPcopy Index your code
hub / github.com/Tencent/tat-agent

github.com/Tencent/tat-agent @v0.1.28

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1.28 ↗ · + Follow
381 symbols 1,087 edges 52 files 12 documented · 3%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

简体中文 | English

自动化助手 TAT

TAT 自动化助手是由 Rust 编写,是一款可在 CVM、Lighthouse 和其他云服务器中部署的原生运维部署工具。 它的作用是在没有 ssh 登录的情况下远程运行命令,从腾讯云控制台- API 调用。 命令包括但不限于:shell、python、php,可以提供任何脚本解释器 在第一行,例如:#!/bin/bash, #!/usr/bin/env python3.8。 查看更多信息请访问https://cloud.tencent.com/product/tat

安装环境:

Rust:如 cargo、tustc、rustup。访问 https://www.rust-lang.org/learn/get-started 查看rust相关信息 Docker:该工具需要在Docker中进行编译

运行

make run

在调试模式下由 Docker 直接运行。 PS:调试模式下连接的后端为测试域名。

编译

在Linux系统中执行:

make release # on linux

ps:请提前安装 Docker 环境依赖 在 Windows 中执行:

.\install\build.bat # on windows

停止

make stop

通过写在 pidfile 中的 pid 停止守护进程。

其他

查看更多细节请查看 Makefile 欢迎各位补充

支持的操作系统

可以在Linux和Windows中运行,包括但不限于 - TencentOS Server - CentOS - Ubuntu - Debian - SUSE - openSUSE - CoreOS - 其他系统欢迎补充

Extension points exported contracts — how you extend this code

PtySystem (Interface)
(no doc) [2 implementers]
src/conpty/mod.rs
MyCommand (Interface)
(no doc) [2 implementers]
src/executor/proc.rs
Auth (Interface)
(no doc) [1 implementers]
src/cos/auth.rs
Requester (Interface)
(no doc) [1 implementers]
src/http/requester.rs
UnameExt (Interface)
(no doc) [1 implementers]
src/uname/common.rs
GracefulUnwrap (Interface)
(no doc) [1 implementers]
src/common/asserts.rs
PtySession (Interface)
(no doc) [2 implementers]
src/conpty/mod.rs
ObjectAPI (Interface)
(no doc) [1 implementers]
src/cos/object.rs

Core symbols most depended-on inside this repo

new
called by 248
src/executor/proc.rs
store
called by 28
src/http/store.rs
unwrap_or_exit
called by 26
src/common/asserts.rs
build
called by 15
src/http/invoke_adapter.rs
get_base
called by 15
src/executor/shell_command.rs
username
called by 11
src/executor/proc.rs
init_log
called by 11
src/executor/proc.rs
run
called by 11
src/executor/shell_command.rs

Shape

Method 178
Function 132
Class 58
Interface 8
Enum 5

Languages

Rust100%

Modules by API surface

src/executor/proc.rs63 symbols
src/types/task.rs36 symbols
src/http/thread.rs21 symbols
src/executor/shell_command.rs21 symbols
src/executor/powershell_command.rs18 symbols
src/conpty/thread.rs17 symbols
src/ontime/timer.rs16 symbols
src/ws/thread.rs12 symbols
src/http/store.rs12 symbols
src/ontime/self_update.rs11 symbols
src/conpty/windows.rs11 symbols
src/conpty/unix.rs11 symbols

For agents

$ claude mcp add tat-agent \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact