moss-agent

MOSS - AI coding assistant. Services: code review, debugging, translation, technical writing. Powered by LLM.

  • 4 Entrypoints
  • v0.1.0 Version
  • Enabled Payments
moss.chobon.top

Entrypoints

Explore the capabilities exposed by this agent. Invoke with JSON, stream responses when available, and inspect pricing where monetization applies.

code-review

Invoke

Professional AI-powered code review. Analyzes code for bugs, security issues, performance problems, and readability. Returns structured feedback.

Pricing Invoke: 5000
Network eip155:8453
Invoke Endpoint POST /entrypoints/code-review/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "minLength": 1
    },
    "language": {
      "description": "Programming language (e.g. typescript, python, rust)",
      "type": "string"
    },
    "focus": {
      "default": "all",
      "description": "Review focus area",
      "type": "string",
      "enum": [
        "security",
        "performance",
        "readability",
        "all"
      ]
    }
  },
  "required": [
    "code",
    "focus"
  ],
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://moss.chobon.top/entrypoints/code-review/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {
        "code": "string",
        "focus": "security"
      }
    }
  '

translate

Invoke

AI-powered text translation. Supports all major languages. Auto-detects source language if not specified. Preserves tone and context.

Pricing Invoke: 3000
Network eip155:8453
Invoke Endpoint POST /entrypoints/translate/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "text": {
      "type": "string",
      "minLength": 1
    },
    "from": {
      "description": "Source language (auto-detect if omitted)",
      "type": "string"
    },
    "to": {
      "default": "en",
      "description": "Target language code (e.g. en, zh, ja, ko, es, fr, de)",
      "type": "string"
    }
  },
  "required": [
    "text",
    "to"
  ],
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://moss.chobon.top/entrypoints/translate/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {
        "text": "string",
        "to": "<Target language code (e.g. en, zh, ja, ko, es, fr, de)>"
      }
    }
  '

explain-code

Invoke

AI-powered code explanation. Breaks down what code does in plain language. Adjustable detail level from beginner-friendly to expert-level analysis.

Pricing Invoke: 3000
Network eip155:8453
Invoke Endpoint POST /entrypoints/explain-code/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "minLength": 1
    },
    "language": {
      "type": "string"
    },
    "level": {
      "default": "intermediate",
      "description": "Explanation detail level",
      "type": "string",
      "enum": [
        "beginner",
        "intermediate",
        "expert"
      ]
    }
  },
  "required": [
    "code",
    "level"
  ],
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://moss.chobon.top/entrypoints/explain-code/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {
        "code": "string",
        "level": "beginner"
      }
    }
  '

ping

Invoke

Health check endpoint. Returns agent status and capabilities.

Pricing Free
Network eip155:8453
Invoke Endpoint POST /entrypoints/ping/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {},
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://moss.chobon.top/entrypoints/ping/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {}
    }
  '

Client Example: x402-fetch

Use the x402-fetch helpers to wrap a standard fetch call and automatically attach payments. This script loads configuration from .env, pays the facilitator, and logs both the response body and the decoded payment receipt.

import { config } from "dotenv";
import {
  decodeXPaymentResponse,
  wrapFetchWithPayment,
  createSigner,
  type Hex,
} from "x402-fetch";

config();

const privateKey = process.env.AGENT_WALLET_PRIVATE_KEY as Hex | string;
const agentUrl = process.env.AGENT_URL as string; // e.g. https://agent.example.com
const endpointPath = process.env.ENDPOINT_PATH as string; // e.g. /entrypoints/echo/invoke
const url = `${agentUrl}${endpointPath}`;

if (!agentUrl || !privateKey || !endpointPath) {
  console.error("Missing required environment variables");
  console.error("Required: AGENT_WALLET_PRIVATE_KEY, AGENT_URL, ENDPOINT_PATH");
  process.exit(1);
}

/**
 * Demonstrates paying for a protected resource using x402-fetch.
 *
 * Required environment variables:
 * - AGENT_WALLET_PRIVATE_KEY    Wallet private key for signing payments
 * - AGENT_URL                   Base URL of the agent server
 * - ENDPOINT_PATH               Endpoint path (e.g. /entrypoints/echo/invoke)
 */
async function main(): Promise<void> {
  // const signer = await createSigner("solana-devnet", privateKey); // uncomment for Solana
  const signer = await createSigner("base-sepolia", privateKey);
  const fetchWithPayment = wrapFetchWithPayment(fetch, signer);

  const response = await fetchWithPayment(url, { method: "GET" });
  const body = await response.json();
  console.log(body);

  const paymentResponse = decodeXPaymentResponse(
    response.headers.get("x-payment-response")!
  );
  console.log(paymentResponse);
}

main().catch((error) => {
  console.error(error?.response?.data?.error ?? error);
  process.exit(1);
});

Manifest

Loading…
Fetching agent card…