Skip to content

feat: Awesome Yasunori MCP #171

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 25 commits into from
Apr 9, 2025
Merged

feat: Awesome Yasunori MCP #171

merged 25 commits into from
Apr 9, 2025

Conversation

ryoppippi
Copy link
Member

Introducing Awesome Yasunori MCP Server!!!

ay-m.mp4

@ryoppippi ryoppippi requested a review from Copilot April 7, 2025 14:50
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 5 out of 7 changed files in this pull request and generated 1 comment.

Files not reviewed (2)
  • packages/mcp/package.json: Language not supported
  • packages/mcp/tsconfig.json: Language not supported
Comments suppressed due to low confidence (3)

packages/mcp/build.config.ts:14

  • Consider using a path handling utility (e.g., path.resolve) to construct the executable path, ensuring it works correctly in various environments.
child_process.execSync(`chmod +x ./${bin}`);

packages/mcp/src/index.test.ts:110

  • The expected output in this test appears to rely on a very specific hardcoded message that does not match the tool response implementation; please verify and update the expected output accordingly.
text: expect.stringContaining(JSON.stringify("tomoyaさん、ありすえさんこんにちは。\nはじめまして、yasunoriの母です。\n\nyasunoriがソフトウェアエンジニアを志してから様子がおかしくなってしまいました。\n家ですれ違う時「Vim....Vim....」という独り言をずっと唱えていたり、部屋からは「設定させていただきありがとうございます!!」という大声が聞こえてきたり、\n「会合があるから東京に行ってくる、帰りは遅くなる」と言い残して出て行き、帰ってくると満面の笑みで「Vimはいいぞ」と一言言って自室に篭るようになりました。\n\ntomoyaさんありすえさんもVimコミュニティの人達だと伺いましたが、息子の身に一体何が起きてしまったのか教えていただけると幸いです。\n"))

packages/mcp/src/index.ts:54

  • [nitpick] The dynamic property access using [":id"] can be confusing; consider a clearer naming or accessor method if the API allows.
const res = await client.awesome[":id"].$get({

Co-authored-by: Copilot <[email protected]>
Copy link
Member

@kuuote kuuote left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2025-04-08T01:07:30,740645718+09:00
Claude Desktopで動くのを確認しました。
素直に動いてくれなくて sh -c /path/to/mcp ; pnpm exec tsx src/index.ts で動かしましたが、環境が特殊なので別で確認します。

@ryoppippi ryoppippi requested a review from tomoya April 7, 2025 19:12
@ryoppippi
Copy link
Member Author

テスト修正しました!
@tomoya

Copy link
Contributor

@conao3 conao3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm: go yasunori~!

@ryoppippi ryoppippi requested a review from kuuote April 8, 2025 00:03
@ryoppippi
Copy link
Member Author

ryoppippi commented Apr 8, 2025

ビルド変更したので @kuuote さんにも再レビューをお願いするなどします
おやすみなさい!

@@ -0,0 +1,110 @@
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { InMemoryTransport } from "@modelcontextprotocol/sdk/inMemory.js";
import { describe, expect, it } from "vitest";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

現状、it は never read のはず。

https://vitest.dev/config/#globals
ミスも増えそうなので、設定で global: true にしておいたほうがいいと思いました。
あと、typecheck を実行したほうがいいかも?

Copy link
Member Author

@ryoppippi ryoppippi Apr 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

サクッと作りたかったのであえて今回はglobalsを設定しませんでした。設定ファイルが一つ増えるのめんどくさいなと思ってしまったので
今回みたいな小さいプロジェクトでもglobalの設定は必要ですか?
設定しなくてもvitestがそのまま動くのがいいかなと思ってました

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

8f5b177
一応やっておきました。

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typecheckも設定済み

@ryoppippi ryoppippi requested a review from tomoya April 8, 2025 11:51
Copy link
Collaborator

@tomoya tomoya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTY

@ryoppippi
Copy link
Member Author

レビューありがとうございました!

@ryoppippi ryoppippi merged commit 0102a4f into main Apr 9, 2025
11 checks passed
@ryoppippi ryoppippi deleted the feat/mcp-server branch April 9, 2025 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants