Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

fix: harden MCP OAuth completion and tool schemas

7 months ago

4ea1f54
Authored
mweinbach3/30/2026, 10:36:26 PM
- discover and persist MCP OAuth protected-resource values when config omits resource\n- persist redirect URIs for dynamic MCP OAuth clients and re-register when the loopback callback changes\n- auto-complete auto-mode MCP OAuth callbacks in the harness and write tokens to the correct auth store\n- normalize tuple-style MCP tool schemas before registering OpenAI-compatible function tools\n- add focused MCP auth and schema regressions plus task ledger updates\n\nVerification:\n- ~/.bun/bin/bun test test/runtime.pi-options.test.ts test/runtime.openai-responses-runtime.test.ts test/mcp.auth-flow.test.ts test/mcp.auth-store.test.ts test/mcp.oauth-provider.test.ts\n- ~/.bun/bin/bun run typecheck\n- ~/.bun/bin/bun test

Parenta880ff1

13 files changed
  • src/mcp/authStore/editor.ts+3−0
  • src/mcp/authStore/parser.ts+2−0
  • src/mcp/authStore/types.ts+3−0
  • src/mcp/index.ts+14−1
  • src/mcp/oauthProvider.ts+47−7
  • src/runtime/piRuntimeOptions.ts+138−4
  • src/server/session/mcp/McpAuthFlow.ts+158−28
  • tasks/lessons.md+2−0
  • tasks/todo.md+36−0
  • test/mcp.auth-flow.test.ts+188−0
  • test/mcp.auth-store.test.ts+45−0
  • test/mcp.oauth-provider.test.ts+106−0
  • test/runtime.pi-options.test.ts+22−0