You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "terrymanu (via GitHub)" <gi...@apache.org> on 2026/08/16 03:55:36 UTC
[PR] Exclude unused Jackson YAML dependency from MCP [shardingsphere]
terrymanu opened a new pull request, #39476:
URL: https://github.com/apache/shardingsphere/pull/39476
(no comment)
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Exclude unused Jackson YAML dependency from MCP [shardingsphere]
Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu commented on PR #39476:
URL: https://github.com/apache/shardingsphere/pull/39476#issuecomment-5305973948
### Result
**Review Result: Mergeable**
The exclusion removes an unused Jackson YAML parsing path without breaking ShardingSphere MCP configuration loading, JSON Schema validation, plugin contracts, or distribution packaging.
### Evidence
- The PR changes only [`mcp/bootstrap/pom.xml`](https://github.com/apache/shardingsphere/blob/53bae71df8d1ee8a10265b580f3c31876a582ba6/mcp/bootstrap/pom.xml#L65-L83).
- MCP SDK 1.1.2 converts schema maps to `JsonNode` and calls `SchemaRegistry.getSchema(JsonNode)`; it does not select NetworkNT’s YAML reader on this path. [MCP SDK source](https://github.com/modelcontextprotocol/java-sdk/blob/v1.1.2/mcp-json-jackson2/src/main/java/io/modelcontextprotocol/json/schema/jackson2/DefaultJsonSchemaValidator.java#L119-L130), [NetworkNT source](https://github.com/networknt/json-schema-validator/blob/2.0.0/src/main/java/com/networknt/schema/serialization/BasicNodeReader.java#L57-L64).
- ShardingSphere configuration YAML remains owned by `YamlEngine`, with SnakeYAML supplied independently by `infra-util`. [Configuration loader](https://github.com/apache/shardingsphere/blob/53bae71df8d1ee8a10265b580f3c31876a582ba6/mcp/bootstrap/src/main/java/org/apache/shardingsphere/mcp/bootstrap/config/loader/MCPConfigurationLoader.java#L48-L50), [dependency declaration](https://github.com/apache/shardingsphere/blob/53bae71df8d1ee8a10265b580f3c31876a582ba6/infra/util/pom.xml#L36-L39).
- Optional plugins must supply their required dependencies and must not depend on bootstrap as an extension contract. [Developer guide](https://github.com/apache/shardingsphere/blob/53bae71df8d1ee8a10265b580f3c31876a582ba6/docs/document/content/dev-manual/mcp.en.md#L35-L54).
- Verification:
- Current-head dependency tree: success; `snakeyaml` remains and `jackson-dataformat-yaml` is absent.
- `./mvnw -pl mcp/bootstrap verify`: exit 0; 294 unit tests and 10 HTTP integration tests passed.
- `./mvnw -pl distribution/mcp -DskipTests package`: exit 0.
- Packaged-classpath smoke test: JSON Schema validation succeeded and the packaged HTTP YAML configuration loaded successfully.
- Packaged `lib/` contains `snakeyaml-2.2.jar` and no `jackson-dataformat-yaml` jar.
### Coverage
- Reviewed head: `53bae71df8d1ee8a10265b580f3c31876a582ba6`
- Merge base: `0e6e5fa9475a0a7ef058ad5a373beb7300ca6651`
- Authoritative scope: 1/1 GitHub-listed file accounted for; local triple-dot scope matched GitHub.
- Requirements: PR title and dependency-removal intent; no PR body, linked issue, comments, reviews, or review threads.
- Behavior clusters: MCP JSON-schema dependency pruning and distribution runtime classpath composition.
- Completed lenses: root cause and behavior; blast radius and contracts; tests, runtime, and operations; final full-scope convergence.
- Unresolved gaps: none.
- This is a code-scope result only; CI was not reviewed.
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Exclude unused Jackson YAML dependency from MCP [shardingsphere]
Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu merged PR #39476:
URL: https://github.com/apache/shardingsphere/pull/39476
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org