IT-DEV/infrastructure/onedev
  • TypeScript 85.5%
  • PowerShell 8.4%
  • JavaScript 6.1%
Find a file
Joseph 7970014dc6 fix(mcp): accept string bodies in od_invoke_api
Loosen body schema from { type: "object" } to oneOf [object, string].
When a string body is passed, set rawBody=true so request() sends it
directly instead of JSON.stringify-wrapping it in an extra layer.

Fixes corrupted titles/descriptions when using od_invoke_api against
OneDev's String-parameter endpoints (issue title, PR description, etc).

Closes int-infra-onedev#4581

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-09 08:46:13 -05:00
docs fix(mcp): correct PR REST path and add createPullRequest 2026-04-08 10:33:52 -05:00
mcp fix(mcp): accept string bodies in od_invoke_api 2026-04-09 08:46:13 -05:00
setup Initial commit: import from SharePoint restructure 2026-03-06 23:24:29 -06:00
.gitattributes fix(mcp): restore toNum helper for numeric ID coercion 2026-04-07 13:50:29 -05:00