Adkid-Zephyr opened a new pull request, #11: URL: https://github.com/apache/openserverless-mcp/pull/11
## Summary - return an MCP error when `action_new` finds an existing endpoint whose generated Python module is missing - reuse the same module path when validating and creating endpoints - cover the incomplete generated endpoint with a regression test ## Root cause The idempotent existing-endpoint path checked the directory and `__main__.py`, but not the module imported by the generated wrapper. If that module had been removed or a previous creation was interrupted, `action_new` reported a successful no-op even though the endpoint could not run. ## User impact Agents now receive an immediate, actionable MCP error for this incomplete state instead of discovering the missing module during deployment or invocation. ## Validation - `npm test` — 13 tests passed - `npm run typecheck` - `git diff --check` ## AI assistance This contribution was developed with OpenAI Codex assistance and reviewed against the repository's observable behavior. The commit includes a `Generated-by: OpenAI Codex` trailer. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
