ynosis-agent-mcp
v0.2.3
Published
MCP stdio server for the Ynosis Agent API (facilities and spring analyses)
Readme
ynosis-agent-mcp
Ynosis Agent API 用の MCP(stdio)。Cursor など Node がある環境向け。
ソース clone は不要です。CLI は別パッケージ ynosis-agent(PyPI)。
前提
- Node.js 18 以降(
npxが付属) - プロフィール(… → Agent API)で発行した
yna_…キー
uv / uvx は不要です。
Cursor(mcp.json)
{
"mcpServers": {
"ynosis-agent": {
"command": "npx",
"args": ["-y", "ynosis-agent-mcp"],
"env": {
"YNOSIS_AGENT_API_KEY": "yna_REPLACE_ME",
"YNOSIS_AGENT_API_BASE": "https://ynosis.jp"
}
}
}
}保存後 Cursor を再起動し、Customize → MCPs で有効か、チャットのツールに search_facilities が出るかを確認してください。npx が Cursor から見えないときは command を which npx の絶対パスにします。
接続先の既定は https://ynosis.jp(リダイレクトを追います)。
施設登録フロー(Python MCP と同一)
find_existing_facility → update_facility(既存・認定・タグ不足時も編集依頼)
→ resolve_place_candidates → prepare_facility_for_register → register_facility(新規)
誤登録整理: remediate_duplicate_facility(正規へ依頼 + withdraw)主要ツール: find_existing_facility, prepare_facility_for_register, resolve_place_candidates, withdraw_facility, remediate_duplicate_facility, get_tag_options
運営: npm 公開
リポジトリ内手順: docs/agent/publishing.md
cd packages/ynosis-agent-mcp
npm install && npm test
npm publish --access public公開前に Python パッケージ(ynosis-agent)との MCP パリティを確認: .cursor/rules/ynosis-agent-mcp-parity.mdc
手順の詳細(利用者向け): https://ynosis.jp/notes/usage-037
