PUSH-CI / Deploy nacos (push) Blocked by required conditionsDetails
PUSH-CI / Java e2e Test (push) Blocked by required conditionsDetails
PUSH-CI / GO E2E Test (push) Blocked by required conditionsDetails
PUSH-CI / Cpp E2E Test (push) Blocked by required conditionsDetails
PUSH-CI / Csharp E2E Test (push) Blocked by required conditionsDetails
PUSH-CI / Nodejs E2E Test (push) Blocked by required conditionsDetails
PUSH-CI / Python E2E Test (push) Blocked by required conditionsDetails
PUSH-CI / Clean (push) Blocked by required conditionsDetails
* optimize: update checkStyle version
* optimize: update checkStyle version
* optimize: update checkStyle version
* optimize: update checkStyle version
PUSH-CI / Deploy nacos (push) Blocked by required conditionsDetails
PUSH-CI / Java e2e Test (push) Blocked by required conditionsDetails
PUSH-CI / GO E2E Test (push) Blocked by required conditionsDetails
PUSH-CI / Cpp E2E Test (push) Blocked by required conditionsDetails
PUSH-CI / Csharp E2E Test (push) Blocked by required conditionsDetails
PUSH-CI / Nodejs E2E Test (push) Blocked by required conditionsDetails
PUSH-CI / Python E2E Test (push) Blocked by required conditionsDetails
PUSH-CI / Clean (push) Blocked by required conditionsDetails
* feat:add overrideExisting endpoint when update mcpserver
* fix:modify the test case for delete
* fix:remove the unused test case
* fix:add param in test
* Add unit tests for api module ai package.
Change-Id: I5a2a03e321d783d684384e9d23cdfe5badbf7282
* Add unit tests for api module model and remote package.
Change-Id: I5a1de50e8dd07c78cd09188e2a44d54fc99bacad
* Add unit tests for api module naming package.
Change-Id: I88f4bf0c085a9f66b6d65c7ff1faea6b1a2dac18
* Add unit tests for api module lock package.
Change-Id: I290e5f5b54a2a29756018832c421cacdcef819a0
* Add unit tests for api module config package.
Change-Id: I144ccb5331cf0162466490e2ea2b72b7ca646d71
* Add unit tests for api module.
Change-Id: I921be2f812a5b4ec9672b541071c92f80c38aaa7
* Add some unit test for ai module.
Change-Id: I36c23706202368aa1f86d29e8635f81c528dbadc
* Add todo common for McpServerTransformService
Change-Id: I011dfe76ce29ed9e69cd446dd5901eb4e4313188
Resolves#13824
This commit adds support for authentication of AI-related gRPC requests
(AbstractMcpRequest and AbstractAgentRequest) in the Nacos auth module.
Key changes:
- Implement AiGrpcResourceParser to extract namespace, group and resource name
from AI protocol requests.
- Register AiGrpcResourceParser under SignType.AI in GrpcProtocolAuthService.
- Add comprehensive unit tests using parameterized testing to cover both
MCP and Agent request types, including edge cases (null/empty fields).
- Fix missing security token refresh in AiGrpcClient by initializing
SecurityProxy with scheduled login task.
Ensures that all incoming AI gRPC requests are properly authenticated
when security is enabled, closing a previous authorization gap.
* Support a2a client api.
* Support query agent card with service type agent card.
* Refactor agent name encode to id by AgentIdCodec.
* Rename admin/console api parameter name -> agentName.
* Support agent name check.
* Fix pmd
* Fix unit test.
* Fix unit test.
* feat: Add MCP server import functionality with registry support
- Add comprehensive MCP server import request/response models
- Implement McpServerTransformService for JSON format transformation
- Add McpServerValidationService for import validation
- Support MCP Registry format with packages and environment variables
- Enhance McpServerOperationService with import operations
- Add validation models for import result tracking
* feat: Add security improvements for MCP server import
- Add proper exception logging in executeImport method
- Implement URL validation to prevent malicious URLs (javascript:, data:, file:)
- Add protocol-specific URL validation for HTTP, STDIO, and Dubbo
- Add comprehensive test coverage for URL validation scenarios
- Improve error handling and security for MCP server imports
* feat: Add HTTP API endpoints for MCP server import functionality
This commit addresses PR feedback and implements complete HTTP API layer for MCP import functionality:
**Architecture improvements:**
- Extract McpServerImportService from McpServerOperationService for better separation of concerns
- Add comprehensive unit tests for all import-related API models
- Remove duplicate classes and use existing model classes (Package, Argument, etc.)
**HTTP API endpoints:**
- POST /v3/console/ai/mcp/import/validate - Validate import data
- POST /v3/console/ai/mcp/import/execute - Execute import operation
**Implementation details:**
- ConsoleMcpController: Added validateImport() and executeImport() endpoints
- McpProxy: Added proxy methods for import operations
- McpHandler interface: Extended with import method declarations
- Handler implementations: Added import support for inner, noop, and remote handlers
- Form validation: Leverages existing McpImportForm for request validation
**Code quality:**
- Added comprehensive unit tests for McpServerImportRequest, Response, Result, etc.
- Enhanced NamedArgument and PositionalArgument with missing fields for compatibility
- Updated method signatures and property access patterns after removing duplicates
- Fixed checkstyle violations and compilation errors
**Security and permissions:**
- Uses ActionTypes.WRITE and ApiType.CONSOLE_API for proper access control
- Maintains consistent error handling and response patterns
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix: Replace misleading URL parsing with explicit UnsupportedOperationException
* fix: code style
* fix: check style
* fix: check style
* fix: UT failed
---------
Co-authored-by: Claude <noreply@anthropic.com>