Expert guide for automated and manual Web Accessibility (a11y) testing — axe-core, Pa11y, Playwright a11y, screen reader testing, and WCAG 2.2 Level AA/AAA compliance / Panduan ahli pengujian aksesibilitas web.
中文简介正在准备中。当前显示原文说明。
Ultimate guide for designing, building, and security-hardening modern AI Tools/Bots via Model Context Protocol (MCP v1.x) in TypeScript and Python / Panduan utama merancang, membangun, dan mengamankan AI Tools/Bots modern melalui Model Context Protocol (MCP) dalam TypeScript dan Python.
中文简介正在准备中。当前显示原文说明。
安装前可以查看交给 AI 代理的指令内容。
<a name="english"></a>
ai-llm-integration-expert, frontier-ai-models-expert, mcp-sampling-criticmulti-agent-orchestration, parallel-tool-orchestrator, gemini-agent-boosterdoku-mcp-server, xerj-search-expert, database-orm-expertzero-trust-secret-vault, authentication-identity-expert, prompt-injection-firewallzero-to-prod-orchestrator, session-memory-manager, anti-slopUltimate architectural guide for engineering high-performance, production-ready AI Tools/Bots via the Model Context Protocol (MCP v1.x). Enforces the use of FastMCP (Python) and @modelcontextprotocol/sdk (TypeScript). Mandates strict security guardrails, schema validation, stateful resource streaming, and support for both Standard Stdio and Streamable HTTP / Server-Sent Events (SSE) transports.
FastMCP (FastAPI-like high-level DX for MCP tools, resources, and prompt templates).@modelcontextprotocol/sdk (official SDK using the McpServer high-level abstraction with zod).import { McpServer, ResourceTemplate } from '@modelcontextprotocol/sdk/server/mcp.js';
import { SSEServerTransport } from '@modelcontextprotocol/sdk/server/sse.js';
import express from 'express';
import { z } from 'zod';
// Initialize the high-level MCP Server
const server = new McpServer({
name: 'enterprise-analytics-mcp',
version: '1.0.0',
});
// Register a type-safe Tool with Zod validation
server.tool(
'calculate_metrics',
'Calculates business analytics metrics across timeframes',
{
metricName: z.enum(['arr', 'churn', 'cac', 'ltv']).describe('The metric to compute'),
quarter: z.string().regex(/^Q[1-4]-202[0-9]$/).describe('Target quarter, e.g., Q1-2026'),
},
async ({ metricName, quarter }) => {
// Implement business logic with database access
const mockData = { arr: '$2.4M', churn: '1.2%', cac: '$450', ltv: '$9,200' };
return {
content: [
{
type: 'text',
text: JSON.stringify({ metric: metricName, quarter, value: mockData[metricName] }),
},
],
};
}
);
// Register a Resource Template with dynamic URI
server.resource(
'system_health',
new ResourceTemplate('system://health/{service}', { list: undefined }),
async (uri, { service }) => {
return {
contents: [
{
uri: uri.href,
text: JSON.stringify({ service, status: 'HEALTHY', latencyMs: 14, timestamp: new Date().toISOString() }),
},
],
};
}
);
// Expose via Express with SSE Transport
const app = express();
let transport: SSEServerTransport | null = null;
app.get('/sse', async (req, res) => {
transport = new SSEServerTransport('/messages', res);
await server.connect(transport);
});
app.post('/messages', async (req, res) => {
if (transport) {
await transport.handlePostMessage(req, res);
} else {
res.status(400).send('Transport not established');
}
});
app.listen(3001, () => {
console.log('MCP Server listening on http://localhost:3001/sse');
});
from fastmcp import FastMCP, Context
from pydantic import BaseModel, Field
from typing import Literal
mcp = FastMCP("enterprise-vault-mcp", dependencies=["pydantic"])
class QueryParams(BaseModel):
account_id: str = Field(..., description="UUID of customer account")
status_filter: Literal["active", "suspended", "all"] = Field("active", description="Status filter")
@mcp.tool(name="fetch_account_summary", description="Retrieves account telemetry and balance")
async def fetch_account_summary(params: QueryParams, ctx: Context) -> str:
ctx.info(f"Auditing request for account: {params.account_id}")
# Secure business logic with RLS validation
result = {
"account_id": params.account_id,
"balance_usd": 125430.50,
"tier": "enterprise",
"status": params.status_filter
}
return str(result)
@mcp.resource("config://app-settings")
def get_app_settings() -> str:
"""Provides application configuration context to the agent."""
return '{"environment": "production", "rate_limit_rpm": 600, "region": "ap-southeast-1"}'
if __name__ == "__main__":
# Runs standard Stdio transport or streamable HTTP
mcp.run(transport="stdio")
idempotency_key argument.When acting as an AI Agent consuming external MCP servers:
list_resources or mcp_config.json before assuming external capabilities do not exist.list_tables or get_schema before generating SQL queries (execute_sql).grep_search (locate file) -> autonomous-tdd-debugger (test & fix) -> GitHub MCP (create PR).Argon & Pro) to Gemini 3.8 Flash if Gemini 4 is unprovisioned, rate-limited, or unavailable (preserving native parallel tool call execution, sub-100ms TTFT, and 1M+ context window).Claude Opus 4.6 if unprovisioned or rate-limited.Promise.all or asyncio.gather for batch database queries instead of blocking sequentially).<a name="bahasa-indonesia"></a>
ai-llm-integration-expert, frontier-ai-models-expert, mcp-sampling-criticmulti-agent-orchestration, parallel-tool-orchestrator, gemini-agent-boosterdoku-mcp-server, xerj-search-expert, database-orm-expertzero-trust-secret-vault, authentication-identity-expert, prompt-injection-firewallzero-to-prod-orchestrator, session-memory-manager, anti-slopPanduan arsitektur utama untuk membangun AI Tools/Bots modern dan siap produksi via Model Context Protocol (MCP v1.x). Mewajibkan penggunaan FastMCP (Python) dan @modelcontextprotocol/sdk (TypeScript). Menerapkan pengamanan ketat, validasi skema, streaming resource stateful, serta dukungan transport Standar Stdio maupun Streamable HTTP / SSE.
FastMCP (pengalaman developer tingkat tinggi ala FastAPI untuk tools, resource, dan template prompt).@modelcontextprotocol/sdk (SDK resmi menggunakan abstraksi McpServer dengan zod).import { McpServer, ResourceTemplate } from '@modelcontextprotocol/sdk/server/mcp.js';
import { SSEServerTransport } from '@modelcontextprotocol/sdk/server/sse.js';
import express from 'express';
import { z } from 'zod';
const server = new McpServer({
name: 'enterprise-analytics-mcp',
version: '1.0.0',
});
// Pendaftaran Tool dengan validasi ketat Zod
server.tool(
'calculate_metrics',
'Menghitung metrik analitik bisnis untuk kuartal tertentu',
{
metricName: z.enum(['arr', 'churn', 'cac', 'ltv']).describe('Metrik yang ingin dihitung'),
quarter: z.string().regex(/^Q[1-4]-202[0-9]$/).describe('Target kuartal, misal: Q1-2026'),
},
async ({ metricName, quarter }) => {
const data = { arr: '$2.4M', churn: '1.2%', cac: '$450', ltv: '$9,200' };
return {
content: [
{
type: 'text',
text: JSON.stringify({ metrik: metricName, kuartal: quarter, nilai: data[metricName] }),
},
],
};
}
);
// Pendaftaran Template Resource dengan URI Dinamis
server.resource(
'system_health',
new ResourceTemplate('system://health/{service}', { list: undefined }),
async (uri, { service }) => {
return {
contents: [
{
uri: uri.href,
text: JSON.stringify({ layanan: service, status: 'HEALTHY', latensiMs: 14, waktu: new Date().toISOString() }),
},
],
};
}
);
const app = express();
let transport: SSEServerTransport | null = null;
app.get('/sse', async (req, res) => {
transport = new SSEServerTransport('/messages', res);
await server.connect(transport);
});
app.post('/messages', async (req, res) => {
if (transport) {
await transport.handlePostMessage(req, res);
} else {
res.status(400).send('Transport belum terhubung');
}
});
app.listen(3001, () => {
console.log('Server MCP berjalan pada http://localhost:3001/sse');
});
from fastmcp import FastMCP, Context
from pydantic import BaseModel, Field
from typing import Literal
mcp = FastMCP("enterprise-vault-mcp", dependencies=["pydantic"])
class ParameterAkun(BaseModel):
account_id: str = Field(..., description="UUID akun pengguna")
status_filter: Literal["active", "suspended", "all"] = Field("active", description="Filter status")
@mcp.tool(name="ambil_ringkasan_akun", description="Mengambil telemetri dan saldo akun")
async def ambil_ringkasan_akun(params: ParameterAkun, ctx: Context) -> str:
ctx.info(f"Memproses permintaan untuk akun: {params.account_id}")
hasil = {
"account_id": params.account_id,
"saldo_usd": 125430.50,
"tier": "enterprise",
"status": params.status_filter
}
return str(hasil)
@mcp.resource("config://app-settings")
def ambil_pengaturan_aplikasi() -> str:
"""Menyediakan konteks konfigurasi aplikasi ke agen AI."""
return '{"environment": "production", "rate_limit_rpm": 600, "region": "ap-southeast-1"}'
if __name__ == "__main__":
mcp.run(transport="stdio")
idempotency_key.Ketika agen bertindak sebagai Klien MCP:
list_resources atau konfigurasi MCP sebelum menyimpulkan kapabilitas tidak tersedia.list_tables atau get_schema sebelum membuat kueri SQL.Argon & Pro) secara otomatis ke Gemini 3.8 Flash jika Gemini 4 belum provisioned, terkena batas kuota, atau tidak tersedia (mempertahankan eksekusi tool paralel native, latensi sub-100ms TTFT, dan jendela konteks 1M+).Claude Opus 4.6 jika belum provisioned atau terbatas kuota.Promise.all atau asyncio.gather untuk query batch, alih-alih mengeblok secara berurutan).还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Expert guide for automated and manual Web Accessibility (a11y) testing — axe-core, Pa11y, Playwright a11y, screen reader testing, and WCAG 2.2 Level AA/AAA compliance / Panduan ahli pengujian aksesibilitas web.
中文简介正在准备中。当前显示原文说明。
Expert guide for intelligent model cascading and routing — complexity-scored task routing from Fast (Composer 2.5, Grok 4.7/4.6) to Medium (Gemini 4 Argon, GPT-5.6 Sol, Claude Opus 5.5) and High (Claude Sonnet 5.5, Claude Fable 5.1, Muse Wonder) / Panduan ahli untuk kaskade dan routing model cerdas.
中文简介正在准备中。当前显示原文说明。
Expert guide for intelligent model cascading and routing — complexity-scored task routing from Flash/Haiku to Sonnet/Opus/Astra, dynamic escalation with quality gates, 40-60% token cost reduction while maintaining output quality / Panduan ahli untuk kaskade dan routing model cerdas — routing tugas berbasis skor kompleksitas dari Flash/Haiku ke Sonnet/Opus/Astra, eskalasi dinamis dengan gerbang kualitas, pengurangan biaya token 40-60% dengan kualitas output terjaga.
中文简介正在准备中。当前显示原文说明。
Master guide for Affective Computing, emotional AI, and real-time sentiment analysis through native multimodal tokens (voice intonation and facial micro-expressions) / Panduan utama komputasi afektif, AI emosional, dan analisis sentimen real-time melalui token multimodal native.
中文简介正在准备中。当前显示原文说明。
Expert guide for Affective Computing, emotional AI, and real-time sentiment analysis through native multimodal tokens (voice intonation and facial micro-expressions) / Panduan ahli komputasi afektif, AI emosional, dan analisis sentimen real-time melalui token multimodal native.
中文简介正在准备中。当前显示原文说明。
Expert guide for AI-assisted coding workflows — agentic code generation, multi-agent code swarms, self-healing CI/CD, automated PR review, spec-to-code pipelines, codebase knowledge graphs, and human-in-the-loop approval gates / Panduan ahli untuk workflow pengkodean berbasis AI — generasi kode agentic, code swarm multi-agen, CI/CD self-healing, review PR otomatis, pipeline spec-to-code, knowledge graph codebase, dan gate persetujuan human-in-the-loop.
中文简介正在准备中。当前显示原文说明。