
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@yeepay/arch-scope-mcp
Advanced tools
ArchScope MCP Service - A Model Context Protocol adapter for ArchScope platform task distribution
English | 简体中文
A Model Context Protocol (MCP) adapter service that bridges ArchScope platform's task distribution capabilities with any MCP-compatible client, particularly LLM Agents.
arch-scope-mcp
is a stateless protocol adapter built with Node.js and TypeScript. It implements the @modelcontextprotocol/typescript-sdk
to expose ArchScope platform's task management as standardized MCP Tools, enabling seamless integration with AI assistants and other MCP clients.
pullTask
and submitResult
for complete task workflow# Install globally
npm install -g arch-scope-mcp
# Or install locally in your project
npm install arch-scope-mcp
# Clone the repository
git clone https://github.com/im47cn/arch-scope.git
cd arch-scope/arch-scope-mcp
# Install dependencies and build
npm install
npm run build
Add the following to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"arch-scope": {
"command": "npx",
"args": ["arch-scope-mcp"],
"env": {
"ARCHSCOPE_API_URL": "https://your-archscope-instance.com",
"ARCHSCOPE_API_TOKEN": "your_bearer_token_here",
"LOG_LEVEL": "info"
}
}
}
}
If you installed from source or prefer to use Node.js directly:
{
"mcpServers": {
"arch-scope": {
"command": "node",
"args": ["/path/to/arch-scope-mcp/dist/index.js"],
"env": {
"ARCHSCOPE_API_URL": "https://your-archscope-instance.com",
"ARCHSCOPE_API_TOKEN": "your_bearer_token_here",
"LOG_LEVEL": "info"
}
}
}
}
Add to your Cline settings:
{
"cline.mcpServers": {
"arch-scope": {
"command": "npx",
"args": ["arch-scope-mcp"],
"env": {
"ARCHSCOPE_API_URL": "https://your-archscope-instance.com",
"ARCHSCOPE_API_TOKEN": "your_bearer_token_here"
}
}
}
}
Variable | Description | Example |
---|---|---|
ARCHSCOPE_API_URL | ArchScope platform API base URL | https://api.archscope.com |
ARCHSCOPE_API_TOKEN | Bearer token for authentication | eyJhbGciOiJIUzI1NiIs... |
Variable | Default | Description |
---|---|---|
LOG_LEVEL | info | Logging level: debug , info , warn , error |
HTTP_TIMEOUT | 30000 | HTTP request timeout in milliseconds |
pullTask
- Pull pending tasks from ArchScopesubmitResult
- Submit task results to ArchScopeYou can test the service manually:
# If installed globally
arch-scope-mcp
# If installed locally
npx arch-scope-mcp
# From source
npm run dev
Successful startup will show:
🚀 Starting ArchScope MCP Service...
✅ ArchScope MCP Service started successfully!
📋 Server: arch-scope-mcp v1.0.0
🔗 ArchScope API: https://your-archscope-instance.com
🎯 Available tools: pullTask, submitResult
⏳ Waiting for MCP client connections...
Error: ARCHSCOPE_API_URL environment variable is required
Solution: Ensure all required environment variables are set in your MCP client configuration.
Error: 401 Unauthorized
or 403 Forbidden
Solutions:
Error: Request timeout after 30000ms
Solutions:
HTTP_TIMEOUT
valueSolutions:
Enable debug logging for detailed troubleshooting:
{
"mcpServers": {
"arch-scope": {
"command": "npx",
"args": ["arch-scope-mcp"],
"env": {
"ARCHSCOPE_API_URL": "https://your-archscope-instance.com",
"ARCHSCOPE_API_TOKEN": "your_bearer_token_here",
"LOG_LEVEL": "debug"
}
}
}
}
~/Library/Logs/Claude/
%APPDATA%\Claude\logs\
Test the service independently:
# Set environment variables
export ARCHSCOPE_API_URL="https://your-archscope-instance.com"
export ARCHSCOPE_API_TOKEN="your_bearer_token_here"
# Run the service
npx arch-scope-mcp
pullTask
Pulls a pending task from the ArchScope platform for processing.
Input Parameters:
workerId
(required): Unique identifier for the worker nodeworkerVersion
(optional): Worker version (default: "1.0.0")supportedTaskTypes
(optional): Array of supported task typesmaxConcurrentTasks
(optional): Max concurrent tasks (default: 3)Example Usage:
{
"name": "pullTask",
"arguments": {
"workerId": "my-llm-worker-001",
"supportedTaskTypes": ["CODE_FULL_ANALYSIS_JAVA", "DOC_SITE_GENERATION_JAVA"]
}
}
Response (Task Available):
{
"hasTask": true,
"taskId": "12345",
"projectId": "67890",
"taskType": "CODE_FULL_ANALYSIS_JAVA",
"inputData": {
"repositoryInfo": {
"cloneUrl": "https://github.com/example/project.git",
"commitId": "a1b2c3d4e5f6789012345678901234567890abcd",
"branchName": "main"
}
}
}
submitResult
Submits completed task results back to the ArchScope platform.
Input Parameters:
taskId
(required): ID of the task to submit results foroverallStatus
(required): "COMPLETED", "FAILED", or "PARTIAL_SUCCESS"results
(optional): Array of document resultserrorMessage
(optional): Error message if status is "FAILED"executionTimeMs
(optional): Task execution time in millisecondsworkerInfo
(optional): Information about the worker that processed the taskExample Usage:
{
"name": "submitResult",
"arguments": {
"taskId": "12345",
"overallStatus": "COMPLETED",
"results": [
{
"documentType": "README",
"documentTitle": "Project README",
"documentContent": "# Project\n\nThis is the project documentation...",
"status": "SUCCESS"
}
],
"executionTimeMs": 120000,
"workerInfo": {
"workerId": "my-llm-worker-001",
"workerVersion": "1.0.0"
}
}
}
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ MCP Client │ │ arch-scope-mcp │ │ ArchScope API │
│ (LLM Agent) │◄──►│ Service │◄──►│ Platform │
└─────────────────┘ └─────────────────┘ └─────────────────┘
pullTask
and submitResult
operationsThe project includes comprehensive test coverage:
# Run all tests
npm test
# Run tests with coverage
npm run test:coverage
# Run tests in watch mode
npm run test:watch
# Run only unit tests
npm test tests/unit
# Run only integration tests
npm test tests/integration
arch-scope-mcp/
├── src/
│ ├── index.ts # Main entry point
│ ├── server.ts # MCP Server implementation
│ ├── tools/ # Tool implementations
│ │ ├── pullTask.ts
│ │ └── submitResult.ts
│ ├── services/ # External service clients
│ │ └── archscopeClient.ts
│ ├── types/ # Type definitions and schemas
│ │ └── schemas.ts
│ └── utils/ # Utility functions
│ ├── config.ts
│ └── errors.ts
├── tests/ # Test files
│ ├── unit/
│ └── integration/
├── docs/ # Documentation
└── package.json
The project uses several tools to maintain code quality:
# Lint code
npm run lint
npm run lint:fix
# Format code
npm run format
# Type check
npm run build
Variable | Required | Default | Description |
---|---|---|---|
ARCHSCOPE_API_URL | Yes | - | ArchScope API base URL |
ARCHSCOPE_API_TOKEN | Yes | - | Bearer token for authentication |
LOG_LEVEL | No | info | Logging level (debug/info/warn/error) |
HTTP_TIMEOUT | No | 30000 | HTTP request timeout in milliseconds |
The service categorizes errors into specific types:
All errors are properly formatted for MCP clients with descriptive messages.
The service is distributed as an NPM package for easy installation:
# Install globally for system-wide access
npm install -g arch-scope-mcp
# Install locally in a project
npm install arch-scope-mcp
# Use without installation
npx arch-scope-mcp
Run the service in a Docker container:
# Build the image
docker build -t arch-scope-mcp .
# Run with environment variables
docker run -e ARCHSCOPE_API_URL="https://your-instance.com" \
-e ARCHSCOPE_API_TOKEN="your_token" \
arch-scope-mcp
For production environments, consider:
git checkout -b feature/amazing-feature
)npm test
)git commit -m 'Add amazing feature'
)git push origin feature/amazing-feature
)This project is licensed under the MIT License - see the LICENSE file for details.
If you encounter any issues or have questions:
FAQs
ArchScope MCP Service - A Model Context Protocol adapter for ArchScope platform task distribution
The npm package @yeepay/arch-scope-mcp receives a total of 1 weekly downloads. As such, @yeepay/arch-scope-mcp popularity was classified as not popular.
We found that @yeepay/arch-scope-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.