Свой Notion в AI-чате на Vue: как мы сделали useMCP и нашли дыру в OAuth до релиза
- Words
- 77
- Chars
- 485
- AI summary
- Yes
vue-llm 1.9 introduced useMCP to let users connect their own Notion, Linear, or Hugging Face accounts inside a Vue-based AI chat, with only a couple of lines of code needed from the developer. The author wanted to reproduce the experience in Claude and ChatGPT, where a user clicks “Connect Notion,” signs in, and the assistant searches their pages. useMCP does not rely on the official SDK internally, according to the article. Final review found an OAuth vulnerability in the server-side entry point before release.
В Claude и ChatGPT можно нажать «Подключить Notion», войти в свой аккаунт, и ассистент начинает искать по вашим страницам. Я хотел то же самое в чате на Vue: чтобы пользователь сам подключал свой Notion, Linear или Hugging Face, а разработчику хватало пары строк. Так в vue-llm 1.9 появился useMCP . Расскажу, как он устроен, почему внутри нет официального SDK и как финальное ревью нашло в серверном входе уязвимость, которую пропустили все проверки по отдельным задачам. Читать далее
Open article