MP

mark3labs/phalcon-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

11 stars 4 forks 품질 59 트렌드 8MIT

BlockSec https://blocksec.com] 플랫폼과 통합하여 블록체인 거래 분석을 제공합니다.

개요

이 MCP 서버는 BlockSec 플랫폼과 통합하여 모델 Context Protocol (MCP)을 통해 블록체인 거래 분석 도구를 제공합니다. Model Context Protocol (MCP)은 AI 모델 통합 프로토콜이며, AI 모델은 외부 도구 및 데이터 소스에 액세스 할 수 있습니다. - - 가스 사용 미터와 함께 블록 체인의 다른 통화를 추적 - 매개 변수 : chainId (required), transactionHash (required) - - 거래, 자금 및 토큰 정보의 흐름에 대한 세부 사항이있는 블록 체인의 트랜잭션을 프로파일 - 매개 변수 : ChainId (required), TransactionHash (required) - - 토큰, 프로토콜 및 기타 온체인 엔티티티와 같은 계약 주소에 대한 인간 읽기 라벨을 얻으십시오. 매개 변수 : chainId (required), transactionHash (required) - - 거래에 대한 자세한 균형 변경 정보를 검색 - 매개 변수 : chainId (required), transactionHash (required) - - 저장 변수와 같은 상태 변경에 대한 자세한 정보를 검색 ...

개요(AI 번역)

이 MCP 서버는 BlockSec 플랫폼과 통합하여 모델 Context Protocol (MCP)을 통해 블록체인 거래 분석 도구를 제공합니다.

Model Context Protocol (MCP)은 AI 모델 통합 프로토콜이며, AI 모델은 외부 도구 및 데이터 소스에 액세스 할 수 있습니다.

부품

도구

거래 분석

  • ** 추적 **

  • Gas usage metrics와 함께 블록체인에서 거래의 다른 통화를 추적

  • 매개 변수 : chainId (필수), transactionHash (필수)

  • 프로필

  • 거래에 대한 세부 사항, 자금의 흐름 및 토큰 정보와 블록체인에 대한 거래

  • 매개 변수 : chainId (필수), transactionHash (필수)

  • 주소표

  • 토큰, 프로토콜 및 기타 on-chain entities와 같은 계약 주소에 대한 인간의 읽기 라벨을 얻으십시오.

  • 매개 변수 : chainId (필수), transactionHash (필수)

  • **BalanceChange **

  • 거래에 대한 자세한 균형 변경 정보를 검색

  • 매개 변수 : chainId (필수), transactionHash (필수)

  • **StateChange **

  • 거래에 대한 계약의 저장소 변수와 같은 상태 변경에 대한 자세한 정보를 검색

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

Phalcon MCP Server

This MCP server integrates with the BlockSec platform to provide blockchain transaction analysis tools via the Model Context Protocol (MCP).

The Model Context Protocol (MCP) is a protocol for AI model integration, allowing AI models to access external tools and data sources.

Components

Tools

Transaction Analysis

  • Trace

    • Trace the different calls of a transaction on a blockchain along with gas usage metrics
    • Parameters: chainId (required), transactionHash (required)
  • Profile

    • Profile a transaction on a blockchain with details about the transaction, flow of funds and token information
    • Parameters: chainId (required), transactionHash (required)
  • AddressLabel

    • Get human readable labels for contract addresses like tokens, protocols, and other on-chain entities
    • Parameters: chainId (required), transactionHash (required)
  • BalanceChange

    • Retrieve detailed balance change information for a transaction
    • Parameters: chainId (required), transactionHash (required)
  • StateChange

    • Retrieve detailed information about state changes like storage variables in contracts for a transaction
    • Parameters: chainId (required), transactionHash (required)
  • TransactionOverview

    • Comprehensive overview of a transaction by aggregating data from all available analysis tools
    • Parameters: chainId (required), transactionHash (required)

Chain Information

  • GetChainIdByName
    • Get the chain ID for a blockchain by name, chain, or chainSlug
    • Parameters: name (required)

Getting Started

Installation

Using Go Install

go install github.com/mark3labs/phalcon-mcp@latest

Usage

Start the MCP server:

phalcon-mcp serve

Check the version:

phalcon-mcp version

Using as a Package

You can import the server in your Go projects:

Stdio Mode

import "github.com/mark3labs/phalcon-mcp/server"

func main() {
    // Create a new server with version
    s := server.NewServer("1.0.0")
    
    // Start the server in stdio mode
    if err := s.ServeStdio(); err != nil {
        log.Fatalf("Server error: %v", err)
    }
}

In-Process Mode

For in-process usage with the mcp-go client library:

import (
    "context"
    "log"
    
    "github.com/mark3labs/mcp-go/client"
    "github.com/mark3labs/mcp-go/client/transport"
    "github.com/mark3labs/phalcon-mcp/server"
)

func main() {
    // Create the Phalcon MCP server
    phalconServer := server.NewServer("1.0.0")

    // Create an in-process transport using the server's MCPServer
    inProcessTransport := transport.NewInProcessTransport(phalconServer.GetMCPServer())

    // Create an MCP client using the in-process transport
    mcpClient := client.NewMCPClient(inProcessTransport)

    // Start the transport
    ctx := context.Background()
    if err := mcpClient.Connect(ctx); err != nil {
GitHub에서 전체 README 보기

설치

docker run -i --rm ghcr.io/mark3labs/phalcon-mcp:latest serve
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "phalcon": { "command": "phalcon-mcp", "args": ["serve"] } } }