Shortcut.com MCP サーバー
Shortcut.com 上のチケットにアクセスして検索するための Model Context Protocol (MCP) サーバーの実装。
概要
このプロジェクトは、Claudeやその他のMCP対応AIアシスタントがShortcut.comのチケット管理システムと連携できるようにするMCPサーバーを実装します。この統合により、AIアシスタントは以下のことが可能になります。
- ショートカットでストーリー(チケット)を一覧表示および検索する
- 特定のストーリーに関する詳細情報を取得する
- 新しい物語を創る
- 既存のストーリーを更新する
- ストーリーにコメントを追加する
- ワークフローの状態とプロジェクトを取得する
前提条件
- Python 3.10以上
- Shortcut.com APIトークン
インストール
- このリポジトリをクローンします:
- 仮想環境を作成し、依存関係をインストールします。
- ショートカット API トークンを使用して、プロジェクト ルート ディレクトリに
.env
ファイルを作成します。
サーバーの実行
次を使用して MCP サーバーを起動します。
Claudeデスクトップの設定
この MCP サーバーを Claude Desktop で使用するには:
- Claude Desktop 構成ファイルを編集します。
- Mac:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- Mac:
- MCP サーバー構成を追加します。
- Claude Desktop を再起動します。
利用可能なMCP機能
リソース
shortcut://stories
- ストーリーの一覧にアクセスしますshortcut://story/{story_id}
- 特定のストーリーにアクセスする
ツール
list_stories
- オプションのフィルタリングを使用してストーリーを一覧表示しますsearch_stories
- テキストクエリを使用してストーリーを検索するget_story_details
- 特定のストーリーの詳細情報を取得するcreate_story
- 新しいストーリーを作成するupdate_story
- 既存のストーリーを更新するadd_comment
- ストーリーにコメントを追加するlist_workflow_states
- すべてのワークフロー状態を一覧表示するlist_projects
- すべてのプロジェクトを一覧表示する
プロンプト
create_bug_report
- バグレポートのテンプレートを生成するcreate_feature_request
- 機能リクエストのテンプレートを生成する
プロジェクト構造
src/
- ソースコードディレクトリserver.py
- メイン MCP サーバーの実装config.py
- 構成管理shortcut_client.py
- ショートカット API のクライアントutils.py
- ユーティリティ関数とデータモデル
requirements.txt
- プロジェクトの依存関係.env
- 環境変数(git では追跡されません)
発達
新しい機能の追加
MCP サーバーに新しい機能を追加するには:
- 新しい API メソッドを
shortcut_client.py
に追加します。 - 必要に応じて
utils.py
で Pydantic モデルを定義します。 server.py
のデコレータを使用して MCP 機能を実装します。- 読み取り専用リソースには
@mcp.resource()
を使用します - データを変更できるアクションには
@mcp.tool()
を使用します - テンプレートまたは構造化テキストを生成するには
@mcp.prompt()
を使用します
- 読み取り専用リソースには
貢献
貢献を歓迎します!お気軽にプルリクエストを送信してください。
ライセンス
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Claude や他の AI アシスタントが Shortcut.com のチケット管理システムと対話してストーリーを検索、表示、作成、更新できるようにするモデル コンテキスト プロトコル サーバーの実装。
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server that enables Claude to interact with the ConnectWise Manage API to perform operations like retrieving, creating, updating, and deleting tickets, companies, contacts, and other entities.Last updated -JavaScriptMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables Claude and other AI assistants to access and update Kintone data through natural language commands, supporting operations like record management, file handling, app administration, and space collaboration.Last updated -258JavaScriptAGPL 3.0
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI assistants like Claude to interact with Outline document services, supporting document searching, reading, creation, editing, and comment management.Last updated -2529PythonMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server implementation that enables AI assistants like Claude to perform Google searches and retrieve web data directly through natural language requests.Last updated -157136TypeScriptMIT License