Commit a03c1f4
feat: Normalize actor IDs before API lookup, unify tool call telemetry (#633)
* feat: Actor ID normalization and logging for improved error handling
* feat: Improve error handling by refining payment error messages and optimizing actor ID processing
* feat: Introduce normalizeAndLogActorId function for consistent actor ID normalization and logging
* feat: Add tests for actor ID normalization and logging functions
* fix: rename normalized/parsedRaw/normalizedActor vars and normalizeActorIdForLookup per review
Agent-Logs-Url: https://github.com/apify/apify-mcp-server/sessions/e71d7d0f-28ff-4a9a-95fb-f95bc5279199
Co-authored-by: jirispilka <19406805+jirispilka@users.noreply.github.com>
* fix: rename normalizeAndLogActorId to cleanActorIdOrName, inner helper to stripActorIdOrName
Agent-Logs-Url: https://github.com/apify/apify-mcp-server/sessions/927c6a4d-d172-4731-b910-69dab2b13c1f
Co-authored-by: jirispilka <19406805+jirispilka@users.noreply.github.com>
* feat: Refactor actor name normalization and logging for improved consistency
* fix: use resolved tool name in telemetry and restore failureCategory in softFail log
- Use resolvedToolName (from getToolFullName) instead of raw request name
in the finally block of CallToolRequestSchema handler, so the log.info
and Segment telemetry event report the same tool name for actor tools.
- Re-add failureCategory: 'INVALID_INPUT' to the log.softFail call in
getActorsAsTools that was inadvertently dropped during refactoring.
https://claude.ai/code/session_012G6375tzaJbzSdMDHvH655
* feat: Remove mock implementations and tests for logHttpError function
* feat: Simplify tests for redactSkyfirePayId function and improve clarity
* feat: Update telemetry handling for tool calls and improve error logging
* feat: Enhance AJV validation by stripping payment fields and improving context preparation
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>1 parent f0d6c8b commit a03c1f4
15 files changed
Lines changed: 557 additions & 154 deletions
File tree
- src
- mcp
- payments
- tools
- core
- default
- openai
- utils
- tests/unit
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments