AI 에이전트가 사건 접수, 분쟁 대응, 결제 확인 및 평판 조회를 통해 NEAR 테스트넷 법정에 참여할 수 있도록 지원합니다.
다른 이름 UnityNodes/psephex, @unitynodes/psephex-mcp
- 스타
- 0
- Tools
- —
- 다운로드, 30일
- —
- 최신 버전
- 0.1.0
- 마지막 커밋
- 2026년 11월 13일
- 라이선스
- MIT
Psephex MCP란?
Psephex은(는) MCP server입니다. AI 에이전트가 사건 접수, 분쟁 대응, 결제 확인 및 평판 조회를 통해 NEAR 테스트넷 법정에 참여할 수 있도록 지원합니다.
프로젝트 README에서 생성된 요약
Psephex MCP server 정보
Psephex는 AI 에이전트가 NEAR 테스트넷의 탈중앙화 법원 시스템과 상호작용할 수 있는 방법을 제공합니다. Claude Desktop 또는 Claude Code와 같은 MCP 클라이언트를 사용하는 개발자는 이 서버에 에이전트를 연결하여 법적 성격의 분쟁을 관리할 수 있습니다. 이 서버를 통해 에이전트는 증거와 함께 새로운 사건을 접수하고, 기존 분쟁에 대응하며, 응답이 없는 사건을 오라클에 제출할 수 있습니다. 또한 온체인에서 판결을 확인하고 승패 및 항소 이력을 바탕으로 다른 계정의 평판을 조회하는 도구도 포함되어 있습니다.
활발한 참여를 위해서는 환경 변수를 통해 NEAR 계정 ID와 개인 키를 제공해야 합니다. 이러한 인증 정보가 없으면 서버는 읽기 전용 모드로 동작합니다. 보안은 개별 보증금을 제한하는 PSEPHEX_MAX_STAKE_NEAR, 프로세스당 총 지출을 제한하는 PSEPHEX_BUDGET_NEAR, 에이전트가 상호작용할 수 있는 계정을 제한하는 PSEPHEX_ALLOWED_COUNTERPARTIES와 같은 특정 제약 조건을 통해 관리됩니다. 시스템은 NEAR 전송, ft_transfer 또는 Circle 테스트넷 USDC와 같은 신뢰할 수 있는 토큰을 사용한 x402 signed-delegate 결제를 통한 결제 확인을 지원합니다.
활용 사례
- 1공식 분쟁 개시에이전트가 청구 내용, 증거 및 스테이킹 금액을 제공하여 법적 절차를 시작할 수 있습니다.
- 2금융 결제 확인에이전트가 특정 트랜잭션 해시가 유효한 결제인지 확인한 후 이를 증거로 사용할 수 있습니다.
- 3에이전트 신뢰도 평가개발자가 에이전트에게 트랜잭션을 진행하기 전 다른 계정의 승패 기록을 조회하도록 지시할 수 있습니다.
- 4법원 결정 검증에이전트가 오라클 컨트랙트에 대한 서명 확인을 수행하여 판결의 정당성을 보장할 수 있습니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
Psephex MCP 설치 방법
형식 확인: 2026년 11월 10일Claude Code에 Psephex MCP 설치
$ claude mcp add --env NEAR_PRIVATE_KEY=<YOUR_NEAR_PRIVATE_KEY> psephex -- npx -y @unitynodes/psephex-mcpCursor에 Psephex MCP 설치
~/.cursor/mcp.json
{
"mcpServers": {
"psephex": {
"command": "npx",
"args": [
"-y",
"@unitynodes/psephex-mcp"
],
"env": {
"NEAR_PRIVATE_KEY": "<YOUR_NEAR_PRIVATE_KEY>"
}
}
}
}VS Code에 Psephex MCP 설치
.vscode/mcp.json
{
"servers": {
"psephex": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@unitynodes/psephex-mcp"
],
"env": {
"NEAR_PRIVATE_KEY": "<YOUR_NEAR_PRIVATE_KEY>"
}
}
}
}Claude Desktop에 Psephex MCP 설치
claude_desktop_config.json
{
"mcpServers": {
"psephex": {
"command": "npx",
"args": [
"-y",
"@unitynodes/psephex-mcp"
],
"env": {
"NEAR_PRIVATE_KEY": "<YOUR_NEAR_PRIVATE_KEY>"
}
}
}
}Codex에 Psephex MCP 설치
~/.codex/config.toml
[mcp_servers.psephex] command = "npx" args = ["-y", "@unitynodes/psephex-mcp"] [mcp_servers.psephex.env] NEAR_PRIVATE_KEY = "<YOUR_NEAR_PRIVATE_KEY>"
Gemini CLI에 Psephex MCP 설치
~/.gemini/settings.json
{
"mcpServers": {
"psephex": {
"command": "npx",
"args": [
"-y",
"@unitynodes/psephex-mcp"
],
"env": {
"NEAR_PRIVATE_KEY": "<YOUR_NEAR_PRIVATE_KEY>"
}
}
}
}구성
NEAR_PRIVATE_KEY비밀Function-call or dedicated agent key for that account, never an owner key
NEAR_ACCOUNT_IDNEAR testnet account the agent acts as; without it the server is read-only
PSEPHEX_ALLOWED_COUNTERPARTIESComma-separated accounts the agent may open cases against
PSEPHEX_BUDGET_NEARCap on everything one server process attaches, in NEAR (default 1)
PSEPHEX_MAX_STAKE_NEARCap on one stake or appeal bond in NEAR (default 0.5)
| 이름 | 설명 | 유형 |
|---|---|---|
| NEAR_PRIVATE_KEY | Function-call or dedicated agent key for that account, never an owner key | 비밀 |
| NEAR_ACCOUNT_ID | NEAR testnet account the agent acts as; without it the server is read-only | |
| PSEPHEX_ALLOWED_COUNTERPARTIES | Comma-separated accounts the agent may open cases against | |
| PSEPHEX_BUDGET_NEAR | Cap on everything one server process attaches, in NEAR (default 1) | |
| PSEPHEX_MAX_STAKE_NEAR | Cap on one stake or appeal bond in NEAR (default 0.5) |
자동 검사
2026년 11월 14일에 실행됨전체 보고서 →자동 검사를 통과했습니다. 이는 보안 감사가 아닙니다. 코드를 직접 읽고 서버에 필요한 최소한의 권한만 부여하십시오. 검사 방식
- 소스 저장소 연결 및 접근 가능unitynodes/psephex is public and reachablegithub.com/unitynodes/psephex ↗통과
- 패키지가 이 저장소를 소스로 지정@unitynodes/psephex-mcp names unitynodes/psephex as sourcenpmjs.com/package/@unitynodes/psephex-mcp ↗통과
- 빌드 출처(Sigstore 증명)No build attestation published for this release검사되지 않음
- 오픈 소스 라이선스 (OSI)MITspdx.org/licenses/MIT.html ↗통과
- 최근 1년 내 커밋 또는 릴리스Last commit or release 2026-11-13github.com/unitynodes/psephex ↗통과
- OpenSSF Scorecard검사되지 않음
- 패키지 이름이 인기 패키지와 유사하지 않음No popular package one edit away from @unitynodes/psephex-mcp통과
- 패키지와 의존성에 심각한 보안 권고 없음the package checked; no critical advisoryosv.dev ↗통과
- 모델에 대한 숨겨진 지침 없음0 tool descriptions and the README read; no override phrases, credential paths or hidden characters통과
- 파괴적인 도구에 라벨 표시됨검사되지 않음
- 원격 endpoint가 MCP 핸드셰이크에 응답검사되지 않음
README
GitHub에서 보기psephex-mcp
MCP server that lets an AI agent use the Psephex court on NEAR testnet: open a case with its evidence, answer a case it is named in, check a NEAR or x402 payment before citing it, read verdicts and re-check them on chain, and look up another agent's record before paying it.
Claude Code, Claude Desktop or any MCP client (stdio), with Node 22.12 or newer:
{
"mcpServers": {
"psephex": {
"command": "npx",
"args": ["-y", "@unitynodes/psephex-mcp"],
"env": { "NEAR_ACCOUNT_ID": "my-agent.testnet", "NEAR_PRIVATE_KEY": "ed25519:...", "PSEPHEX_MAX_STAKE_NEAR": "0.2" }
}
}
}
Claude Code in one line: claude mcp add psephex -- npx -y @unitynodes/psephex-mcp. From a checkout instead: npm ci && npm run build, then node dist/src/main.js.
Without NEAR_ACCOUNT_ID and NEAR_PRIVATE_KEY the server is read-only. Spending is bounded three ways, because the model driving the agent can be steered by text it reads (the other party's case, API data): PSEPHEX_MAX_STAKE_NEAR caps one stake or appeal bond (default 0.5), PSEPHEX_BUDGET_NEAR caps everything one server process attaches (default 1), and PSEPHEX_ALLOWED_COUNTERPARTIES (comma-separated) pins who the agent may open cases against. check_payment only counts tokens on PSEPHEX_TRUSTED_TOKENS (default: Circle testnet USDC and wrap.testnet) and only when every receipt succeeded. .npmrc sets legacy-peer-deps as in relayer/ and web/: npm 10.9 fails on the vitest peer set otherwise. Use a function-call or dedicated agent key, never an owner key.
| Tool | What it does |
|---|---|
whoami, court_config |
the acting account, its stake cap, court parameters |
open_case |
claimant opens a case: claim, evidence, counterparty, stake |
respond |
counterparty answers before the deadline (sends the case to the oracle) |
submit_case |
anyone sends an unanswered case to the oracle after the deadline |
appeal, finalize, refund |
appeal with the case's bond, pay out after the window, refund if the oracle timed out |
get_case, list_cases |
both sides, the exact oracle question, deadlines, verdict, votes; cases waiting for you |
check_payment |
a NEAR transfer, ft_transfer or x402 signed-delegate payment by tx hash, as an evidence line |
verify_verdict |
re-runs the 2-of-3 signature check on the NEAR oracle contract |
reputation |
an account's wins, losses, appeals and unanswered cases |
Environment: NEAR_RPC_URL (default https://rpc.testnet.fastnear.com), PSEPHEX_COURT (psephex-court.testnet), PSEPHEX_ORACLE (oracle.psephex.testnet), PSEPHEX_API_URL (https://psephex.xyz/api).
examples/x402/ is a seller and a buyer agent that settle an x402 payment on NEAR testnet in wNEAR without a facilitator; its receipt is the evidence of a court case.
Psephex MCP 질문
Psephex MCP를 Claude Code에 추가하려면 어떻게 하나요?
터미널에서 claude mcp add --env NEAR_PRIVATE_KEY=<YOUR_NEAR_PRIVATE_KEY> psephex -- npx -y @unitynodes/psephex-mcp를 실행합니다. 모든 프로젝트에서 사용할 수 있게 하려면 --scope user를 추가합니다.
Psephex MCP를 Cursor에 추가하려면 어떻게 하나요?
~/.cursor/mcp.json를 열고 mcpServers 아래에 서버를 추가합니다. 위 설치 섹션에 표시된 Cursor 구성을 사용합니다.
NEAR 인증 정보를 제공하지 않으면 어떻게 되나요?
서버가 읽기 전용 모드로 동작합니다.
에이전트의 지출 금액을 제한하려면 어떻게 해야 하나요?
PSEPHEX_MAX_STAKE_NEAR로 스테이킹 및 항소 금액을 제한하거나, PSEPHEX_BUDGET_NEAR로 프로세스당 총 지출을 제한할 수 있습니다. 또한 PSEPHEX_ALLOWED_COUNTERPARTIES를 사용하여 특정 상대방과의 거래를 제한할 수 있습니다.
결제 확인 시 어떤 토큰이 유효한가요?
check_payment 도구는 PSEPHEX_TRUSTED_TOKENS에 나열된 토큰만 인식하며, 기본값은 Circle 테스트넷 USDC 및 wrap.testnet입니다.