A TypeScript MCP server for integrating with the AntBot AI-based RPA platform, handling tool listing and execution.
AntBot MCP Server는 Model Context Protocol (MCP) 기반의 TypeScript 서버로, AI 기반 RPA 플랫폼인 AntBot과의 연동을 위해 설계되었습니다.
이 서버는 MCP 클라이언트와 상호작용하며, AntBot 프로젝트 관리 및 실행을 위한 도구들을 제공합니다.
Get_AntBot_Project_List
)Get_AntBot_Project_Info
) - 매개변수 정보 포함Run_AntBot_Project
) - 매개변수 전달 지원Get_Last_Mcprun_Log
) - 최신 mcprun 로그 확인src/
├── index.ts # MCP 서버 진입점 및 메인 클래스
├── projectService.ts # 프로젝트 관리 비즈니스 로직
├── logService.ts # 로그 조회 서비스
├── api.ts # 외부 API 호출 유틸리티
├── config.ts # 설정 관리 및 검증
├── fileUtils.ts # 파일 처리 유틸리티 (ZIP, XML 파싱)
├── logger.ts # 로깅 시스템
├── schema.ts # Zod 기반 입력 검증 스키마
├── types.ts # TypeScript 타입 정의
└── constants.ts # 상수 정의
McpServer 클래스 (index.ts
)
ProjectService 클래스 (projectService.ts
)
LogService 클래스 (logService.ts
)
설정 관리 (config.ts
)
%APPDATA%\Roaming\AntBotRobot\AntBot_Robot.exe.config
# 프로젝트 클론
git clone <repository-url>
cd antbot-mcp-server
# 의존성 설치
npm install
# 빌드
npm run build
# 또는 클린 빌드 (기존 빌드 파일 삭제 후 재빌드)
npm run cleanbuild
AntBot 매니저에서 사용 가능한 프로젝트 목록을 조회합니다.
{
"name": "Get_AntBot_Project_List",
"description": "Returns a list of antbot projects.",
"inputSchema": {
"type": "object",
"properties": {},
"required": []
}
}
응답 예시:
{
"projects": [
{
"projectId": "PR000000298",
"projectName": "웹 스크래핑 프로젝트",
"description": "웹사이트에서 데이터를 수집하는 프로젝트"
}
]
}
특정 프로젝트의 상세 정보와 실행에 필요한 매개변수를 조회합니다.
{
"name": "Get_AntBot_Project_Info",
"description": "Get project information including required parameters",
"inputSchema": {
"type": "object",
"properties": {
"projectId": { "type": "string" }
},
"required": ["projectId"]
}
}
응답 예시:
{
"projectId": "PR000000298",
"projectPath": "C:\\temp\\project_298\\antConf.xml",
"name": "웹 스크래핑 프로젝트",
"description": "웹사이트에서 데이터를 수집하는 프로젝트",
"requiredParameters": [
{
"name": "url",
"type": "string",
"description": "스크래핑할 웹사이트 URL"
}
],
"optionalParameters": [
{
"name": "timeout",
"type": "number",
"description": "타임아웃 시간 (초)",
"defaultValue": 30
}
],
"parameterSummary": "필수: url (string) | 선택: timeout (number, 기본값: 30)"
}
프로젝트를 실행합니다. 먼저 Get_AntBot_Project_Info
를 호출하여 프로젝트 정보를 확인해야 합니다.
{
"name": "Run_AntBot_Project",
"description": "Run the project with required parameters",
"inputSchema": {
"type": "object",
"properties": {
"projectId": { "type": "string" },
"projectPath": { "type": "string" },
"parameters": {
"type": "object",
"additionalProperties": true
}
},
"required": ["projectId", "projectPath"]
}
}
사용 예시:
{
"projectId": "PR000000298",
"projectPath": "C:\\temp\\project_298\\antConf.xml",
"parameters": {
"url": "https://example.com",
"timeout": 60
}
}
중복 실행 방지:
"현재 AntBot이 다른 작업을 수행 중입니다."
메시지와 함께 오류 발생최신 mcprun 로그의 마지막 100줄을 조회합니다.
{
"name": "Get_Last_Mcprun_Log",
"description": "Returns the last 100 lines of the latest mcprun log.",
"inputSchema": {
"type": "object",
"properties": {},
"required": []
}
}
응답 예시:
{
"fileName": "mcprun_20241201143022.log",
"content": "2024-12-01 14:30:22 [INFO] 프로젝트 실행 시작\n2024-12-01 14:30:23 [INFO] 매개변수 로드 완료\n..."
}
명령어 | 설명 |
---|---|
npm run build | TypeScript 컴파일 및 실행 권한 설정 |
npm run clean | 빌드 디렉토리 삭제 |
npm run cleanbuild | 클린 후 재빌드 |
npm run watch | 파일 변경 감지 시 자동 빌드 |
npm run inspector | MCP Inspector로 테스트 실행 |
# MCP Inspector 설치
npm install -g @modelcontextprotocol/inspector
# 서버 테스트
npm run inspector
Get_AntBot_Project_List
호출Get_AntBot_Project_Info
호출 (projectId 필요)Run_AntBot_Project
호출 (projectId, projectPath, parameters 필요)Get_Last_Mcprun_Log
호출%APPDATA%\Roaming\Claude\claude_desktop_config.json
파일 편집{
"mcpServers": {
"antbot-mcp-server": {
"command": "node",
"args": ["C:\\path\\to\\antbot-mcp-server\\build\\index.js"]
}
}
}
설정 변경 후 반드시 Claude Desktop을 완전히 종료하고 재시작해야 합니다:
💡 참고: 단순히 창을 닫는 것이 아니라 트레이 아이콘을 통해 완전히 종료해야 설정이 적용됩니다.
Claude에게 다음과 같이 요청할 수 있습니다:
서버는 다음 경로의 AntBot Robot 설정 파일을 자동으로 읽어옵니다:
%APPDATA%\Roaming\AntBotRobot\AntBot_Robot.exe.config
MANAGER_USER
: 매니저 사용자 IDMANAGER_IP
: 매니저 서버 IPMANAGER_PORT
: 매니저 서버 포트AntBot Runner
: AntBot Runner 실행 파일 경로서버 시작 시 필수 설정이 누락된 경우 오류를 발생시킵니다:
AntBot Robot에서 매니저 연동을 먼저 진행해주세요.
%USERPROFILE%\.AntBot\Log\Develop\
mcprun_YYYYMMDDHHMMSS.log
%USERPROFILE%\.AntBot\Log\Develop\
@modelcontextprotocol/sdk
: MCP 서버 구현jsdom
: XML 설정 파일 파싱adm-zip
: 프로젝트 ZIP 파일 처리sudo-prompt
: 관리자 권한 실행 (필요시)xml2js
: XML 파싱typescript
: TypeScript 컴파일러rimraf
: 크로스 플랫폼 디렉토리 삭제@types/*
: 타입 정의tasklist
명령어를 통한 안전한 프로세스 확인이 프로젝트는 MIT 라이선스 하에 배포됩니다.
Boost security in your dev lifecycle via SAST, SCA, Secrets & IaC scanning with Cycode.
Advanced evaluation tools for AI safety, alignment, and performance using the Trustwise API.
Open-source tool for collaborative editing, versioning, evaluating, and releasing prompts.
A template for deploying a remote, auth-less MCP server on Cloudflare Workers.
An SSE-based MCP server that allows LLM-powered applications to interact with OCI registries. It provides tools for retrieving information about container images, listing tags, and more.
Generate images using Baidu's iRAG API through a standardized MCP interface.
An autonomous memory management system for Claude AI, featuring multi-provider LLM integration and a persistent memory database.
An interactive task loop server for Cursor IDE, designed to perform task-based operations for modern web application development.
A local MCP server for Laravel developers to boost productivity with artisan commands.
MCP servers for Deephaven to orchestrate data workers and power documentation Q&A with LLMs, enabling AI-driven data workflows.