DXT (Desktop Extensions) は、MCPサーバーをClaude Desktopに簡単にインストールできるパッケージ形式です。
- MCPサーバーと依存関係を1つの
.dxt
ファイルにパッケージ化 - Claude Desktopでワンクリックインストール可能
- 非技術者でも簡単に強力なローカルツールを利用可能
cloudflare containers の 使い方を Claude Code にまとめさせた
https://github.com/yusukebe/image-resize-containers/tree/main
/** | |
* My Portable RAG | |
* $ pnpm add sqlite-vec @ai-sdk/google ai | |
* SQLite Vector Search + Google AI Embeddings | |
* | |
* Required environment variables: | |
* GOOGLE_GENERATIVE_AI_API_KEY=your-api-key | |
* | |
* Usage: | |
* # Index text content |
This document contains essential MoonBit knowledge that LLMs cannot know without external environment access. Last updated: December 2024.
Current Status: Beta (as of December 2024)
import React, { useState } from "react"; | |
import { render } from "ink-testing-library"; | |
import { Text, Box, useInput, useApp } from "ink"; | |
import { describe, it, expect, beforeAll } from "vitest"; | |
// テスト環境設定 | |
beforeAll(() => { | |
process.stdin.isTTY = true; | |
process.stdout.isTTY = true; | |
}); |
// node --test ask-claude.test.ts | |
import { test } from "node:test"; | |
import { query, type Options } from "@anthropic-ai/claude-code"; | |
async function assertAI(prompt: string, options: Options = {}): Promise<void> { | |
const MARKER = "**ASSERT_OK**"; | |
const abortController = new AbortController(); | |
const finalPrompt = `Assert user query. Return ${MARKER} if it is true. \n\n${prompt}`; | |
for await (const message of query({ | |
prompt: finalPrompt, |
// node --test ask-claude.test.ts | |
import { test } from "node:test"; | |
import { query } from "@anthropic-ai/claude-code"; | |
test("Ask", async () => { | |
const EXPECTED = "paris"; | |
const abortController = new AbortController(); | |
for await (const message of query({ | |
prompt: "What is the capital of France?", | |
options: { maxTurns: 1, abortController }, |
// pnpm add vitepress -D | |
// add this on docs/.vitepress/config.ts | |
// "doc:dev": "pnpm vitepress dev docs --port=9999", | |
// "doc:build": "pnpm vitepress build" | |
import { defineConfig } from "vitepress"; | |
// Hyrum's Law: With a sufficient number of users of an API, | |
// it does not matter what you promise in the contract: | |
// all observable behaviors of your system will be depended on by somebody. |
-- リアルワールド例:カウンターボタンの実装と証明 | |
-- カウンターの状態 | |
structure Counter where | |
value : Nat | |
-- カウンターの初期状態 | |
def Counter.init : Counter := ⟨0⟩ | |
-- インクリメント操作 |