AIクライアントがFarm.jsのドキュメント(ページ、セクション、コード例、設定オプションを含む)を検索・閲覧できるようにします。
別名 farming-labs/farm.js, docs
- スター
- 660
- ツール
- —
- ダウンロード数(30日間)
- —
- 最新バージョン
- 0.1.28
- 最終コミット
- 2026年11月15日
- ライセンス
- MIT
Farm.js Docs MCPとは
Farm.js DocsはMCPサーバーです。 AIクライアントがFarm.jsのドキュメント(ページ、セクション、コード例、設定オプションを含む)を検索・閲覧できるようにします。.
プロジェクトのREADMEから生成された概要
Farm.js Docs MCP server について
AIクライアントを通じてFarm.jsのドキュメントに直接アクセスすることで、開発者は開発環境を離れることなく技術的な詳細を取得できます。このMCP serverは、Farm.jsフレームワークに関連する特定のページ、セクション、コード例、および設定オプションを検索して読み取る手段を提供します。コーディング中に技術仕様へ即座にアクセスする必要があるユーザー向けに設計されています。
サーバーのセットアップには、ドキュメントをローカルでホストするために、リポジトリのルートからpnpm installやpnpm devなどのコマンドを実行する必要があります。このシステムは、Getting Started、Routing、Layoutsを含むさまざまなドキュメントルートをサポートしています。開発者はドキュメントの内容とやり取りすることで、ファイルベースのルーティングや、ルートおよびネストされたレイアウトの実装方法を理解できます。ドキュメントサイト自体がFarm.jsで構築されているため、フレームワークの機能を実証する生きたリファレンスとして機能します。
プロジェクトの README から作成されています。すべてのユースケースは、その引用と照らし合わせて確認されています。
Farm.js Docs MCPのインストール方法
フォーマット検証日 2026年11月10日Cursor に追加Gooseに追加Claude CodeにFarm.js Docs MCPをインストール
$ claude mcp add --transport http docs https://mcp.farmjs.dev/mcpCursorにFarm.js Docs MCPをインストール
~/.cursor/mcp.json
{
"mcpServers": {
"docs": {
"url": "https://mcp.farmjs.dev/mcp"
}
}
}VS CodeにFarm.js Docs MCPをインストール
.vscode/mcp.json
{
"servers": {
"docs": {
"type": "http",
"url": "https://mcp.farmjs.dev/mcp"
}
}
}VS Code CLIにFarm.js Docs MCPをインストール
$ code --add-mcp '{"name":"docs","type":"http","url":"https://mcp.farmjs.dev/mcp"}'CodexにFarm.js Docs MCPをインストール
$ codex mcp add docs --url https://mcp.farmjs.dev/mcpCodex config.tomlにFarm.js Docs MCPをインストール
~/.codex/config.toml
[mcp_servers.docs] url = "https://mcp.farmjs.dev/mcp"
Gemini CLIにFarm.js Docs MCPをインストール
$ gemini mcp add -s user --transport http docs https://mcp.farmjs.dev/mcpGemini settings.jsonにFarm.js Docs MCPをインストール
~/.gemini/settings.json
{
"mcpServers": {
"docs": {
"url": "https://mcp.farmjs.dev/mcp",
"type": "http"
}
}
}自動チェック
実行日 2026年11月12日完全なレポート →自動チェックに合格しました。これはセキュリティ監査ではありません。コードを読み、サーバーに必要最小限のアクセス権を与えてください。 チェックの仕組み
- ソースリポジトリがリンクされており、アクセス可能合格
- オープンソースライセンス (OSI)合格
- 過去1年以内にコミットまたはリリースあり合格
- パッケージ名が有名なパッケージに酷似していない未チェック
- リモートエンドポイントがHTTPSを使用合格
- 破壊的なツールがラベル付けされている未チェック
- モデルへの隠れた指示がない合格
- パッケージおよびその依存関係に重大な勧告なし未チェック
README
GitHubで見るFarm.js Docs (farmjs-docs)
Official documentation site for Farm.js, built with Farm.js.
Run locally
From the repo root:
pnpm install
pnpm run --filter farmjs-docs dev
Or from this directory (after pnpm install from root):
pnpm dev
Open http://localhost:3000.
Agent waitlist database
The /agents form posts to /api/waitlist. WaitlistEntry in prisma/schema.prisma
stores the normalized email (unique), signup description, and creation/update timestamps.
Repeat submissions update that record instead of creating duplicates.
Set a server-only WAITLIST_DATABASE_URL in docs/.env.local for a dedicated Postgres
database. Never prefix it with VITE_ or commit the credential. When omitted, the route
continues to use DATABASE_URL; telemetry always keeps using DATABASE_URL.
From docs, prepare a new dedicated database once:
pnpm db:waitlist
This requires WAITLIST_DATABASE_URL explicitly and only creates the WaitlistEntry
table when it is absent. It never resets a database or modifies telemetry tables. Keep
prisma/waitlist.sql aligned with the Prisma model for future schema changes; the bootstrap
does not upgrade an existing table.
For production, set WAITLIST_DATABASE_URL on the Vercel project serving farmjs.dev,
scoped to Production, then deploy the updated app. Do not replace the existing telemetry
DATABASE_URL or give PR previews access to the production waitlist. Apply the bootstrap
against that same database before the deployment accepts signups; schema changes are not
run automatically during builds.
Farm development loads .env.local. To run a locally built Node output from the repo root:
node --env-file=docs/.env.local docs/.farm/.output/server/index.mjs
Build
From the repo root:
pnpm run --filter farmjs-docs build
The production Vercel artifact is written to .vercel/output.
Runtime-only core build
The documentation-site build opts into @farm.js/core's runtime-only package build:
pnpm --filter @farm.js/core build:runtime
This builds the same ESM, CJS, and source-map artifacts as the default core build, but skips
TypeScript declaration generation because the deployed website does not consume .d.ts files.
The optimization applies to the complete farmjs.dev application, including the landing page and
documentation routes.
The regular package and release build remains the default and continues to generate declarations:
pnpm --filter @farm.js/core build
Use build:runtime only for application deployments that need executable runtime artifacts. Do not
use it for package publishing, release validation, or any workflow that consumes generated types.
Structure
- Landing (
/) – Hero, features, and CTAs - Docs (
/docs) – Documentation index - Getting Started (
/docs/getting-started) – Installation and first steps - Routing (
/docs/routing) – File-based routing - Layouts (
/docs/layouts) – Root and nested layouts
Farm.js Docs MCPのよくある質問
Farm.js Docs MCPをClaude Codeに追加するには
ターミナルでclaude mcp add --transport http docs https://mcp.farmjs.dev/mcpを実行します。すべてのプロジェクトで利用するには--scope userを追加します。
Farm.js Docs MCPをCursorに追加するには
~/.cursor/mcp.jsonを開き、上記のインストールセクションに示すCursor設定を使ってmcpServersの下にサーバーを追加します。
Farm.jsのドキュメントサイトをローカルで実行するにはどうすればよいですか?
リポジトリのルートからpnpm installを実行し、docsディレクトリでpnpm devを実行してlocalhost:3000を開いてください。
どのようなドキュメントセクションが利用可能ですか?
ランディングページ、ドキュメントインデックス、Getting Started、Routing、Layoutsの各セクションが含まれています。
ドキュメントサイトに独自のデータベース設定はありますか?
はい、エージェントのウェイティングリストフォームは、サーバー専用のWAITLIST_DATABASE_URL変数を使用してPostgresにエントリを保存します。
本番用のドキュメントビルド出力はどのように生成されますか?
farmjs-docsパッケージをビルドすると、本番用のVercelアーティファクトが.vercel/outputに書き込まれます。