Integrations
Utilizes environment variables for configuration management, specifically for storing the Smallest.ai API key securely.
Supports running the MCP server on the Bun runtime, providing an alternative execution environment to Node.js for the server implementation.
Hosts project repository and provides version control, allowing for collaborative development and contribution to the MCP server.
MCP-Smallest.ai
Smallest.ai API統合のためのモデルコンテキストプロトコル(MCP)サーバー実装。このプロジェクトは、Smallest.aiのナレッジベース管理システムと連携するための標準化されたインターフェースを提供します。
建築
システムの概要
コンポーネントの詳細
1. クライアントアプリケーション層
- MCPクライアントプロトコルを実装
- リクエストのフォーマットを処理する
- レスポンス解析を管理する
- エラー処理を提供します
2. MCPサーバー層
- プロトコルハンドラー
- MCPプロトコル通信を管理する
- クライアント接続を処理する
- リクエストを適切なツールにルーティングします
- ツールの実装
- ナレッジベース管理ツール
- パラメータ検証
- 応答のフォーマット
- エラー処理
- API統合
- Smallest.ai API通信
- 認証管理
- リクエスト/レスポンス処理
3. Smallest.ai APIレイヤー
- ナレッジベース管理
- データの保存と検索
- 認証と承認
データフロー
セキュリティアーキテクチャ
概要
このプロジェクトは、クライアントとSmallest.ai API間のミドルウェアとして機能するMCPサーバーを実装します。モデルコンテキストプロトコル(MCP)を介してSmallest.aiのナレッジベース管理機能とやり取りするための標準化された方法を提供します。
建築
コンポーネント
- MCPサーバー
- クライアントのリクエストを処理する
- API通信を管理する
- 標準化された応答を提供する
- エラー処理を実装する
- ナレッジベースツール
listKnowledgeBases
: すべてのナレッジベースを一覧表示しますcreateKnowledgeBase
: 新しいナレッジベースを作成するgetKnowledgeBase
: 特定のナレッジベースの詳細を取得します
- ドキュメントリソース
docs://smallest.ai
で入手可能- 使用方法と例を示します
前提条件
- Node.js 18+ または Bun ランタイム
- Smallest.ai APIキー
- TypeScriptの知識
インストール
- リポジトリをクローンします。
- 依存関係をインストールします:
- ルート ディレクトリに
.env
ファイルを作成します。
構成
Smallest.ai API 構成を含むconfig.ts
ファイルを作成します。
使用法
サーバーの起動
サーバーのテスト
利用可能なツール
- ナレッジベースのリスト
- ナレッジベースを作成する
- ナレッジベースを入手
応答フォーマット
すべての応答は次の構造に従います。
エラー処理
サーバーは包括的なエラー処理を実装します。
- HTTPエラー
- APIエラー
- パラメータ検証エラー
- 型安全なエラー応答
発達
プロジェクト構造
新しいツールの追加
index.ts
でツールを定義します。
- リソース内のドキュメントを更新します。
安全
- APIキーは環境変数に保存されます
- すべてのリクエストは認証されます
- パラメータ検証が実装されています
- エラーメッセージはサニタイズされる
貢献
- リポジトリをフォークする
- 機能ブランチを作成します(
git checkout -b feature/amazing-feature
) - 変更をコミットします (
git commit -m 'Add some amazing feature'
) - ブランチにプッシュする (
git push origin feature/amazing-feature
) - プルリクエストを開く
ライセンス
このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細についてはLICENSEファイルを参照してください。
謝辞
You must be authenticated.
Smallest.ai のナレッジ ベース管理システムと対話するための標準化されたインターフェイスを提供するモデル コンテキスト プロトコル サーバー実装。
Related MCP Servers
- AsecurityFlicenseAqualityA Model Context Protocol server that enables AI models to interact with SourceSync.ai's knowledge management platform for managing documents, ingesting content from various sources, and performing semantic searches.Last updated -2514
- -securityFlicense-qualityA Model Context Protocol server that provides AI assistants with structured access to your Logseq knowledge graph, enabling retrieval, searching, analysis, and creation of content within your personal knowledge base.Last updated -19TypeScript
- -securityFlicense-qualityA Model Context Protocol server that provides a comprehensive interface for interacting with the ConnectWise Manage API, simplifying API discovery, execution, and management for both developers and AI assistants.Last updated -462Python
- -securityFlicense-qualityA demonstration implementation of the Model Context Protocol server that facilitates communication between AI models and external tools while maintaining context awareness.Last updated -Python