OneNote: read handwriting, images and SharePoint notebooks
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 30/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
- 领域
- ai, backend-api-design
调研方向
Start with intl/microsoft-onenote.json and connectors/binary-response.util.ts to understand the existing content and binary response paths. The proposal also requires tracing the connector layer and response-transform.util.ts opt-in pattern, then checking Microsoft Graph permissions and calibrating InkML coordinates on real pages. Done means resource retrieval, SharePoint and group notebook access, and optional page images with ink work within the stated response limits.
由索引模型根据 Issue 内容生成。
描述
Problem
The OneNote adapter (intl/microsoft-onenote.json) reads a page through GET /me/onenote/pages/{id}/content, which returns HTML without ink. Many OneNote users write by hand with a pen (meeting notes, sketches, calculations), so the AI sees nothing of those pages. Embedded pictures and PDF printouts reach the AI only as <img> links to Graph that need the user's sign-in, so it cannot read them either.
Two smaller gaps in the same adapter:
- Notebooks stored on SharePoint team sites (
/sites/{id}/onenote,/groups/{id}/onenote) are not reachable; only/me/onenoteis. - There is no tool to fetch a single page resource (image or printout).
Proposed Solution
microsoft_onenote_get_resource(adapter JSON only):GET /me/onenote/resources/{id}/$valuewith the existing binary handling (connectors/binary-response.util.ts), so an image comes back as an MCP image content block that the model can read.- SharePoint and group notebooks (adapter JSON only): list notebooks, sections and pages under
/sites/{site-id}/onenoteand/groups/{group-id}/onenote. Check which delegated permission Graph needs for these (likelyNotes.Read.All/Notes.ReadWrite.All, admin consent) and document it in the adapter instructions. microsoft_onenote_get_page_image(engine change): render a page as PNG including ink.- Fetch
content?includeinkML=true(HTML plus InkML). - Parse the InkML traces (
fast-xml-parser, already a dependency) and draw each trace as an SVG path with its brush colour and width, scaled to page coordinates. - Fetch the page's images with the user's token and place them at their absolute positions.
- Rasterise with
@resvg/resvg-js(MPL-2.0, no browser needed); split tall pages into tiles of about 1,500 px on the long edge. - Return the typed text as text (as today) plus the image(s). Typed text is not drawn into the PNG; that would need a headless browser in the image.
- Opt-in per tool through a config key (e.g.
"render": "onenote-page"), following the opt-in pattern ofdecode/imagesinresponse-transform.util.ts, but run in the connector layer because it needs further authenticated Graph calls.
- Fetch
Alternatives Considered
- Handwriting recognition on our side: not needed; current models read handwriting from images well, and Graph exposes no recognised text for ink.
- Rendering the full page in headless Chromium: higher fidelity for typed text, but adds about 300 MB to the image and a lot of memory per render on the shared Cloud.
- Returning raw InkML: the model cannot use stroke coordinates meaningfully.
Area
Connectors / adapters (Microsoft OneNote), REST engine.
Additional Context
- Cloud and self-hosted behave the same; the new dependency ships in the backend image for both.
- Size limits: the 10 MB tool response cap and the per-tool
binary.maxBytesapply; tiles keep each image well below them. - InkML coordinate units need calibrating against real pages with pen input before release.
- 主要语言
- TypeScript
- 星标
- 856
- 派生
- 82
- 平均合并
- 7 小时 57 分钟
- 30 天内合并 PR
- 290
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
HelpCode-ai/anythingmcp 的其他 Issue
-
enhancement good first issue hacktoberfest help wanted
难度 2/5 1-3 小时 新手友好度 78/100
HelpCode-ai/anythingmcp#982 · 10 条评论 ·
维护者通常 1 天内回复
-
Per-user sign-in for OAuth2 connectors (Enterprise)可能已有人在做 @helpcodeai 今天认领。 未关闭enhancement
难度 5/5 一周以上 新手友好度 20/100
HelpCode-ai/anythingmcp#1300 ·
维护者通常 1 天内回复
-
bug
难度 4/5 3-5 天 新手友好度 48/100
HelpCode-ai/anythingmcp#1296 · 2 条评论 ·
维护者通常 1 天内回复
-
Translate the rest of the admin UI (DE, IT)可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 4/5 3-5 天 新手友好度 38/100
HelpCode-ai/anythingmcp#1271 ·
维护者通常 1 天内回复
-
DATABASE connectors keep a connection-string password in plaintext and return it to the browser可能已有人在做 @Riteesh-2k6 于 2 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 45/100
HelpCode-ai/anythingmcp#1245 · 2 条评论 ·
维护者通常 1 天内回复
查看 HelpCode-ai/anythingmcp 的全部 Issue
相似的 Issue
-
calcite-ui-icons enhancement impact - p3 - not time sensitive needs triage
难度 2/5 1-3 小时 新手友好度 67/100
Esri/calcite-design-system#15467 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
diegosouzapw/OmniRoute#18390 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 1/5 1-3 小时 新手友好度 86/100
guilhermerodz/input-otp#157 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 82/100
davidjerleke/embla-carousel#1414 ·
维护者通常 4 天内回复