mcpField
🚀
🚀 API Revolution: Model Context Protocol (MCP) Meets Web API

🚀 API Revolution: Model Context Protocol (MCP) Meets Web API

ローカル
github.com/myonathanlinkedinAI・エージェント077 週間前に更新

🚀 API Revolution: Model Context Protocol (MCP) Meets Web API について

登録、ログイン、パスワード変更のプロンプトを、MCP クライアント経由で MCP サーバーに送る ASP.NET Core Web API です。API 利用者に Bearer トークンを公開せず、ドメイン単位で処理を分けています。

主な機能

  1. 01メールによるユーザー登録
  2. 02ログインとパスワード変更
  3. 03ASP.NET Core API エンドポイント
  4. 04ドメイン駆動のレイヤー構成
  5. 05構造化ログとエラー処理

活用シーン

  1. 01メールのプロンプトによるアカウント登録
  2. 02API 経由のログインとパスワード変更依頼
  3. 03ツール追加による API ワークフローの拡張

MCP 対応

API は MCP クライアント経由で MCP サーバーにリクエストを送り、応答を呼び出し元に返します。クライアントにツールを直接公開するサーバーではなく、MCP を利用するバックエンドです。

設定

ローカルサーバーの設定はどのクライアントでも共通です。コピーしてクライアントの MCP 設定ファイルに貼り付けてください。

インストール方法は未掲載です

このサーバーのパッケージやリモートエンドポイントはまだ取得できていません。プロジェクトの README の手順に従ってください。

リポジトリ

ツール

ツール一覧はまだ取得されていません

ローカルサーバーのツールはマシン上で起動して初めて取得できます。メンテナーはまだツール一覧を提供していません。

README(原文)English

プロジェクトの README より

この README の日本語訳はまだありません。以下は英語の原文です。日本語の紹介はページ上部をご覧ください。

🚀 API Revolution: Model Context Protocol (MCP) Meets Web API

Welcome to MCP Server Tools! 🎯
This project exposes powerful APIs based on the Model Context Protocol (MCP) 🧩, representing a new revolution in API design 🌐 — structured, intelligent, and seamlessly extensible.


📚 Overview

  • 🛠️ Combines Model Context Protocol (MCP) with traditional API endpoints to offer next-generation API experiences.
  • 🔥 Redefines API architecture by enabling model-based communication, not just rigid HTTP contracts.
  • 🧠 Applies Domain-Driven Design (DDD) at the core: aggregates, entities, and use cases are clearly separated and modeled around business logic.
  • 🔐 Secures workflows like registration, login, and password change using industry best practices.
  • 🧪 Extensible and modular — new tools can be added easily without modifying the core.
  • 📈 Built with professional engineering principles: structured logging (via Serilog), robust error handling, clean separation of concerns.

🧩 Architecture Flow

Client ➡️ API Endpoint (ASP.NET Core) ➡️ MCP Client ➡️ MCP Server ➡️ Response

✅ You send a request to our API,
✅ We internally call the MCP Client,
✅ MCP Client talks to MCP Server,
✅ We return the clean final response to the API caller.

In short: You just send simple prompts, we handle everything behind the scenes. 🎩✨


🔥 Example Usage

📬 Register a New User

POST to:

https://localhost:7190/api/Prompt/SendUserPrompt/SendUserPrompt

Request body:

{ "Prompt": "hei dawg! my email: [email protected] please help me to register" }

Response:

Great! An email with your login details should be on its way.
Check your inbox for an email from us, containing your email address and password.
Remember to change your password after your first login for added security.
If you don't receive the email, please let me know and we'll try again.


🔒 Login and Change Password

POST to:

https://localhost:7190/api/Prompt/SendUserPrompt/SendUserPrompt

Request body:

{ "Prompt": "Bro Server! now please login me email: [email protected] and password: d8X9sF & change the password with 123456" }

Response:

Sure, I'll help you with that.

Now that you're logged in, I'll help you change your password to '123456'.

Your password has been successfully changed. If you have any other requests, feel free to let me know!


🛠️ Tech Stack

  • 🧩 Model Context Protocol (MCP)
  • ⚡ ASP.NET Core Web API
  • 🧠 Domain-Driven Design (DDD) Architecture
  • 🛡️ Serilog for structured logging
  • 🛠️ Clean architecture principles
  • ✨ Professional software practices

📌 Key Highlights

  • 🚫 We never expose sensitive Bearer tokens to users.
  • 🧠 Designed using DDD-first thinking: domain-driven layers and bounded contexts.
  • 🌱 Future-proof and easily extendable.
  • 🧹 Clean separation between API, application, and domain logic.

📜 License - Apache License 2.0 (TL;DR)

This project follows the Apache License 2.0, which means:

  • ✅ You can use, modify, and distribute the code freely.
  • ✅ You must include the original license when distributing.
  • ✅ You must include the NOTICE file if one is provided.
  • ✅ You can use this in personal & commercial projects.
  • ✅ No warranties – use at your own risk! 🚀

🚀 Join the API Revolution!

APIs should be smart, dynamic, and model-based — not static and hardcoded.
Be part of the change! 🌟

コメント

MCP は初めてですか?

プロトコルの概要から最初のサーバーの導入まで、よくある疑問にまとめて答えます。

AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。