スキル一覧に戻る
vuralserhat86

mcp-builder

by vuralserhat86

OS for Agents: 130+ Agentic Skills, Gemini Protocols, and Autonomous Workflows. (Antigravity System)

19🍴 9📅 2026年1月23日
GitHubで見るManusで実行

SKILL.md


name: mcp_builder router_kit: FullStackKit description: MCP (Model Context Protocol) server oluşturma, FastMCP/TypeScript SDK kullanımı ve API entegrasyonu rehberi. metadata: skillport: category: development tags: [accessibility, api integration, backend, browser apis, client-side, components, css3, debugging, deployment, frameworks, frontend, fullstack, html5, javascript, libraries, mcp builder, node.js, npm, performance optimization, responsive design, seo, state management, testing, typescript, ui/ux, web development] - server

🔌 MCP Builder

MCP server oluşturma ve API entegrasyonu rehberi.


📋 MCP Nedir?

Model Context Protocol (MCP), LLM'lerin dış servislerle etkileşim kurmasını sağlayan standart bir protokoldür.

Kullanım Alanları

  • API entegrasyonları
  • Veritabanı bağlantıları
  • Dosya sistemi erişimi
  • Harici servis çağrıları

🐍 Python (FastMCP)

Kurulum

pip install fastmcp

Basit Server

from fastmcp import FastMCP

mcp = FastMCP("my-server")

@mcp.tool()
def hello(name: str) -> str:
    """Say hello to someone."""
    return f"Hello, {name}!"

@mcp.tool()
def add(a: int, b: int) -> int:
    """Add two numbers."""
    return a + b

if __name__ == "__main__":
    mcp.run()

Resource Ekleme

@mcp.resource("config://app")
def get_config() -> str:
    """Get application configuration."""
    return json.dumps({"version": "1.0"})

📘 TypeScript (MCP SDK)

Kurulum

npm install @modelcontextprotocol/sdk

Server Oluşturma

import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";

const server = new McpServer({
  name: "my-server",
  version: "1.0.0",
});

server.tool("hello", { name: "string" }, async ({ name }) => {
  return { content: [{ type: "text", text: `Hello, ${name}!` }] };
});

const transport = new StdioServerTransport();
await server.connect(transport);

⚙️ Yapılandırma

mcp_config.json

{
  "mcpServers": {
    "my-server": {
      "command": "python",
      "args": ["path/to/server.py"],
      "env": {
        "API_KEY": "your-key"
      }
    }
  }
}

🎯 Best Practices

  1. Tool naming: Açıklayıcı, lowercase, hyphen-separated
  2. Descriptions: Her tool için detaylı docstring
  3. Error handling: Try-catch ile hata yönetimi
  4. Type hints: Parametre tipleri belirt
  5. Validation: Input validation yap

MCP Builder v1.1 - Enhanced

🔄 Workflow

Kaynak: Model Context Protocol Spec

Aşama 1: Tool Definition

  • Schema: Input şemasını JSON Schema standardına uygun (ve Zod ile valide edilebilir) tanımla.
  • Description: LLM'in ne zaman kullanacağını anlaması için "açıklayıcı" ve "örnekli" docstring yaz.
  • Idempotency: Tool'un tekrar çağrıldığında yan etkisi olup olmadığını belirt.

Aşama 2: Implementation & Security

  • Isolation: Dosya sistemi erişimini sadece izin verilen dizinlerle sınırla.
  • Validation: Kullanıcı girdilerini her zaman sanitize et (Path Traversal vb. önle).
  • Transport: Stdio veya SSE transport katmanını doğru yapılandır.

Aşama 3: Testing

  • Inspector: MCP Inspector aracı ile endpointleri manuel test et.
  • Integration: Claude Desktop (veya hedef client) ile uçtan uca test yap.

Kontrol Noktaları

AşamaDoğrulama
1LLM tool'u doğru parametrelerle çağırabiliyor mu?
2Hata durumunda (örn: dosya yok) anlamlı bir mesaj dönüyor mu?
3Server başlatıldığında resource tüketimi (RAM/CPU) makul mü?

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です