Skip to content

Instantly share code, notes, and snippets.

View adlonymous's full-sized avatar
💭
I may be slow to respond.

Aadil | mous adlonymous

💭
I may be slow to respond.
View GitHub Profile
@adlonymous
adlonymous / AGENT_DOCS.md
Created February 15, 2026 04:25
Agent Docs for Mosaic TypeScript SDK generated from TypeScript types
/**
* X402 MCP Integration
*
* Based on:
* - Coinbase's x402 (Apache 2.0): https://github.com/coinbase/x402
* - @ethanniser and his work at https://github.com/ethanniser/x402-mcp
*/
import type {
McpServer,
import { z } from "zod";
import {
defineDAINService,
ToolConfig,
ServiceConfig,
ToolboxConfig,
} from "@dainprotocol/service-sdk";
import labsV2 from "@api/labs-v2";
import * as anchor from '@coral-xyz/anchor';
import { Program } from '@coral-xyz/anchor';
import { Keypair } from '@solana/web3.js';
import { Journal } from '../target/types/journal';
describe('journal', () => {
// Configure the client to use the local cluster.
const provider = anchor.AnchorProvider.env();
anchor.setProvider(provider);
const payer = provider.wallet as anchor.Wallet;
const {
SlashCommandBuilder,
EmbedBuilder,
AttachmentBuilder,
ButtonBuilder,
ButtonStyle,
ActionRowBuilder,
ComponentAssertions,
} = require("discord.js");
const fs = require("fs");
import {
ActionPostResponse,
createPostResponse,
ActionGetResponse,
ActionPostRequest,
createActionHeaders,
} from '@solana/actions';
import {
clusterApiUrl,
Connection,