-
Notifications
You must be signed in to change notification settings - Fork 8.9k
feature: Implement the MCP server in the Console module. #7654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
xjlgod
merged 378 commits into
apache:summer-code-mcp-server
from
Xb2555:summer_code_mcp_server
Oct 28, 2025
Merged
Changes from 250 commits
Commits
Show all changes
378 commits
Select commit
Hold shift + click to select a range
7fe4080
style: apply spotless formatting
Xb2555 f7d16ce
optimize: UndoLog analysis returns detailed data and supports pagination
Xb2555 fe347c1
feat: Netty HTTP request handler increase the stream transport way
Xb2555 fad6a99
feat: Delete the original method of reading server running logs by ro…
Xb2555 f901b80
feat: Implement server-side streaming of big data server logs
Xb2555 975c663
feat: Implement MCP-Console to stream and receive server-side big dat…
Xb2555 247c620
style: apply spotless formatting
Xb2555 140dab4
feat: Complete the function of streaming big data log files on the se…
Xb2555 80e3afc
feat: Enable the console side to stream the server-side large data vo…
Xb2555 ede6ec2
optimize: Optimized the server-side streaming log file sending functi…
Xb2555 b32e08d
optimize: Optimized the server-side streaming log file sending functi…
Xb2555 5d6dbcf
Merge remote-tracking branch 'origin/summer_code_mcp_server' into sum…
Xb2555 127f820
optimize: Use the StringUtils.indexOf method to improve the efficienc…
Xb2555 5136a5b
optimize: Optimize the service data source configuration of MCP to a …
Xb2555 60cc832
feat: Implement the ability to configure business data sources on the…
Xb2555 1ecd735
optimize: Merge the MCP authentication filter with the business data …
Xb2555 62552ed
optimize: Avoid repeated data source parameter parsing and configurat…
Xb2555 5866894
test: Change the MySQL version of the server module to match MySQL 8 …
Xb2555 dd061eb
feat: Implement official MCP code compatibility processing and embedding
Xb2555 ce248bd
optimize: Exclude MCP-related paths from security
Xb2555 2e0d397
feat: Define Tools and ToolParam annotations to quickly register tools
Xb2555 7d884b8
feat: The configuration file reads MCP-related configurations, and th…
Xb2555 4bdc1bd
feat: The configuration file reads MCP-related configurations, and th…
Xb2555 320d50e
feat: Implement the integrated management class of MCP server, and re…
Xb2555 293a38b
feat: Implement the automatic scanning and registration function of t…
Xb2555 2b7bd3d
feat: Add the MCP remote forwarding filter to NamingServer to forward…
Xb2555 5dc9204
feat: Add the MCP remote forwarding filter to NamingServer to forward…
Xb2555 eaad52a
feat: The RMC on the MCP side can call the TC interface, and supports…
Xb2555 0554425
feat: GlobalSessionParam and seata-core is introduced to prepare for …
Xb2555 298831a
feat: Implement the global transaction management function on the MCP…
Xb2555 28eb1db
feat: Implement the tool interface function of global transaction man…
Xb2555 8a9887d
feat: Implement the service and tool APIs for branch transaction mana…
Xb2555 380e0b1
feat: Implement the service and tool APIs of the global lock manageme…
Xb2555 da92c92
feat: The secondary confirmation function for update and modification…
Xb2555 9cffa95
feat: Added a custom HTTP call error handler so that when an error is…
Xb2555 802ab84
feat: MySQL driver dependencies are added to NamingServer to prevent …
Xb2555 7614b55
feat: On the console, connection pool dependencies are introduced to …
Xb2555 a6e91b6
feat: The configuration parameters of the business data source in the…
Xb2555 e6ad550
feat: transform seata-server datasourceProvider to seata-mcp and chan…
Xb2555 d8e88d4
feat: Implement the DbcpDataSource instance creation function
Xb2555 94eb8ed
feat: Implement the DruidDataSource instance creation function
Xb2555 c54d94a
feat: Implement the HikariDataSource instance creation function
Xb2555 2968974
feat: Create a DataSourceFactory to save and create dataSource instances
Xb2555 75ab15c
feat: Implement the basic query function of the business data source
Xb2555 667e933
feat: Implement the SQL execution function using resourceId and add t…
Xb2555 2d79e17
feat: Implement the hot configuration interface invocation function o…
Xb2555 48ddf81
feat: Add MCP-related configurations to the configuration file
Xb2555 72f272a
feat: Set the Number of Pages and Page Size parameters of the Global …
Xb2555 9df4e28
fix: Added string nullity judgment
Xb2555 662c5f5
feat: Implement the analysis function of UndoLog in AT mode
Xb2555 159d98d
optimize: The description of the modification tool is in English
Xb2555 c2bac54
feat: Implement dynamic parameter queries for undo_log, including par…
Xb2555 893eaf0
optimize: Put statements related to SQL queries into the Constant con…
Xb2555 ac98b15
optimize: Added query interval limit
Xb2555 6213c76
optimize: Consolidate query URLs into a single constant for easy mana…
Xb2555 fae5259
fix: The query interval limit function is improved
Xb2555 589ce98
fix: Code format change
Xb2555 22fa97b
fix: Fixed 404 error caused by unknown reasons when the asynchronous …
Xb2555 932eff2
optimize: mcp rpc call function adds token verification to improve se…
Xb2555 70b8185
optimize: Verify the validity limit of SQL statements
Xb2555 be900dc
optimize: Add a property setting to the maximum query interval in mcp…
Xb2555 83ba829
feat: Abnormal transaction information can be checked out
Xb2555 2756a06
optimize: Add Licensed
Xb2555 16c78a4
feat: Test the DataSource
Xb2555 d8adfc5
feat: test the McpServerManager
Xb2555 7c88902
test: The DataSourceFactory test class is added
Xb2555 e3cf20a
test: Implement the SqlExecutionTemplate test class
Xb2555 267ba51
test: Implement McpAutoToolRegister test
Xb2555 d9ed5e5
test: test MCPConfiguration
Xb2555 472254b
test: test FastJsonUndoLogParser
Xb2555 5487cb8
fix: Restructure the test directory structure
Xb2555 6510c6c
fix: Format repair
Xb2555 841e403
feat: Server side run log analysis function preview test
Xb2555 a67f862
feat: Refactor properties property class names
Xb2555 962f7c3
fix: Replace the seata version with the stable version 2.5.0
Xb2555 e50fd3a
feat: Join the prompt registration test
Xb2555 6943848
feat: Implement the log file reading interface on the server side
Xb2555 8740560
fix: add license
Xb2555 da8fb15
feat: Implement the server log acquisition interface
Xb2555 b79a91c
feat: Implement the server-side log analysis tool function
Xb2555 1d171fd
fix: Test small modifications
Xb2555 17ec7b7
optimize: Optimized the server-side log retrieval function
Xb2555 1e39aeb
feat: Added whether mcp has enabled OAuth verification attributes, an…
Xb2555 e53faa4
fix: The log file name is initialized with the default server startup…
Xb2555 66bd013
optimize: Optimized the MCP service start-stop interface to obtain se…
Xb2555 584df84
feat: Added a tool interface to obtain the namespaces of all register…
Xb2555 c8b6b19
feat: All tools that call interfaces from TC nodes specify the namesp…
Xb2555 e1631c8
fix: Fixed a syntax error caused by null parameters when querying a s…
Xb2555 ccea71a
optimize: When obtaining server log data, the total number of rows in…
Xb2555 c0beba3
optimize: Modify the business database header in the namingserver con…
Xb2555 dc5482b
optimize: When the maximum query time interval is exceeded, the maxim…
Xb2555 1456cc8
fix: Fixed a syntax error where the spliced SQL statement lacked AND …
Xb2555 8053cab
feat: Move the namingserver forwarding of mcp's TC-related interface …
Xb2555 a7c5e7d
feat: Add a JavaTimeModule to jackson and support dateTime serialization
Xb2555 8997bd1
feat: Move the namingserver forwarding of mcp's TC-related interface …
Xb2555 0454843
fix: Improved the undolog query function, and fixed a bug that caused…
Xb2555 623f2be
fix: Overall code formatting changes
Xb2555 1c1c66d
fix: Cancel the import of jackson's javaTime module and fix the bug t…
Xb2555 990b462
fix: Fixed a bug where the AND connection was missing when splicing t…
Xb2555 2dcd019
fix: Fixed a bug where the file contents could not be read after read…
Xb2555 0b0f657
fix: Fixed a bug where the necessary deletion parameters were missing…
Xb2555 1e9799f
optimize: Regarding the undoLog parsing of AT mode, it is temporarily…
Xb2555 07b7aca
feat: Added prompt-related functions to implement basic prompt functi…
Xb2555 c8f154d
feat: The tested streamableHttp transmission function is added, and t…
Xb2555 83cf85b
feat: Under Streamable, add a new configuration for heartbeat interval
Xb2555 813b778
feat: Add comments to the corresponding configuration parameters of t…
Xb2555 74595cf
fix: After the project code changes, the corresponding test class is …
Xb2555 cf6e5dc
optimize: Filtration related not eligible to get processed by all Bea…
Xb2555 888fb91
feat:Improved the keepAlive heartbeat mechanism in MCP to automatical…
Xb2555 a57610b
fix: Close the session connection after the heartbeat fails
Xb2555 361b5b7
optimize: Eliminate interrupt IO exceptions for sending messages to d…
Xb2555 e84d66c
feat: Added a tool to convert the string date to the long timestamp f…
Xb2555 69e4327
optimize: The results returned by the global lock query are wrapped i…
Xb2555 1939d90
optimize: It is forbidden to directly query undolog data in a busines…
Xb2555 c8eee17
feat: Excel table generation tool that implements custom table headers
Xb2555 398b099
optimize: Integrate report parameters into a param to directly export…
Xb2555 959f625
optimize: When exporting an Excel report, check the file path
Xb2555 3517cf8
fix: remove the excel export feature
Xb2555 5aa89b9
optimize: A business data source automatically creates a correspondin…
Xb2555 3669651
optimize: Convert the creation and modification time of the GlobalLoc…
Xb2555 97514b2
optimize: Implement the datetime string feature where all query retur…
Xb2555 df48b77
fix: Move the undolog judgment in query SQL to the query method
Xb2555 6d753d9
fix: Fixed a bug where the long type parameter could not be called wh…
Xb2555 75fb027
optimize: Query the service database and add a prompt to the LLM to g…
Xb2555 2cd3738
fix: The maximum number of rows in a single query log is 1000
Xb2555 65b766e
fix: Fixed a bug where the result could not be queried at a specified…
Xb2555 b4b3d8b
optimize: Return the undolog data in the form of paginated results so…
Xb2555 85da56a
fix: McpServerManager change to MCPServerManager
Xb2555 641cde0
fix: add parameter free construction method
Xb2555 4ff294d
feat: DateUtils test class implementation
Xb2555 e689e3e
feat: MCPServerManager test class implementation
Xb2555 1ce9026
feat: MCPAutoRegister test class implementation
Xb2555 a7ed198
optimize: Changed the default heartbeat interval for streamable trans…
Xb2555 93147ec
fix: user to start with a capital letter
Xb2555 69022e4
feat: Implement the basic functions of resource
Xb2555 2e1d605
optimize: Optimized global transaction queries to support string time…
Xb2555 5d67dfb
optimize: Optimized global lock queries to query with datetime strings
Xb2555 097776e
fix: Skip this data wrapper when querying empty data
Xb2555 550e6d5
fix: Fix the matching rules in the generated countSql method in PageU…
Xb2555 9797d95
style: apply spotless formatting
Xb2555 bc7728b
optimize: UndoLog analysis returns detailed data and supports pagination
Xb2555 391a2a2
feat: Netty HTTP request handler increase the stream transport way
Xb2555 567067c
feat: Delete the original method of reading server running logs by ro…
Xb2555 13acfe4
feat: Implement server-side streaming of big data server logs
Xb2555 401d735
feat: Implement MCP-Console to stream and receive server-side big dat…
Xb2555 f3bd06a
style: apply spotless formatting
Xb2555 c40e846
feat: Complete the function of streaming big data log files on the se…
Xb2555 64c77ae
feat: Enable the console side to stream the server-side large data vo…
Xb2555 a48cdeb
optimize: Optimized the server-side streaming log file sending functi…
Xb2555 34bcbf6
optimize: Optimized the server-side streaming log file sending functi…
Xb2555 de24bb2
optimize: Use the StringUtils.indexOf method to improve the efficienc…
Xb2555 2486ea1
optimize: Optimize the service data source configuration of MCP to a …
Xb2555 a40cac2
feat: Implement the ability to configure business data sources on the…
Xb2555 86e61d8
optimize: Merge the MCP authentication filter with the business data …
Xb2555 a13fd05
optimize: Avoid repeated data source parameter parsing and configurat…
Xb2555 f19b125
Merge remote-tracking branch 'origin/summer_code_mcp_server' into sum…
Xb2555 151dad6
feat: Added functions such as checking the necessary parameters of bu…
Xb2555 a44da93
optimize: During the startup phase, if the business database paramete…
Xb2555 078b1d1
optimize: Determine the compliance of the business data source parame…
Xb2555 32f3541
optimize: Simplify the method of obtaining the endpoint path for the …
Xb2555 2cdde34
style: apply spotless formatting
Xb2555 f733d9a
optimize: Undolog analysis to determine whether the context serializa…
Xb2555 ca86f34
fix: Fixed a bug where the total number of data items was obtained wh…
Xb2555 741ed9d
style: Delete my own database configuration parameters
Xb2555 ed4f18d
style: Delete my own database configuration parameters
Xb2555 d9d9a1a
style: Change the Console-MCP log prompt
Xb2555 ca6b796
fix: Deletes the vGroup invalid parameter of the global transaction q…
Xb2555 afb0700
fix: Add paging parameter size limit detection to global lock/global …
Xb2555 a799b28
fix: When encountering undolog format not supported, the entire undol…
Xb2555 09353f8
fix: When obtaining server running logs, all the incoming keywords ma…
Xb2555 2a1ffb8
style: apply spotless formatting
Xb2555 3091263
optimize: add license header
Xb2555 e39f2cd
optimize: add changes
Xb2555 3bf3821
optimize: Improve the modification confirmation tool and force LLMs t…
Xb2555 31fe4c3
optimize: Add a parameter size limit for the number of connections to…
Xb2555 d75905b
optimize: The authentication configuration in the MCP server configur…
Xb2555 36ad4eb
Merge branch 'apache:2.x' into summer_code_mcp_server
Xb2555 eca7648
optimize: add MIT and Apache licenses to the MCP SDK source code
Xb2555 bf314ce
fix: fix the okhttp dependency in common pom added twice
Xb2555 42d738e
fix: fix the change version of tomcat in the console pom file
Xb2555 23e655f
fix: fix the use of .* in JwtTokenUtils
Xb2555 b517e16
optimize: Modify the description of the Get Server Log Tool to enable…
Xb2555 e770907
style: apply spotless formatting
Xb2555 809b914
optimize: Modify Get modifier token tool description so that LLMs can…
Xb2555 a94d47d
style: Modify the business data source configuration field to match t…
Xb2555 a19bb08
style: add MIT License year
Xb2555 c0b5e99
optimize: Delete the useless method
Xb2555 6d1abc9
feat: Resolves conflicts with base branch
Xb2555 cb5cdbe
fix: Fixed 10 unclear meaning of filter priorities in MCPFilter
Xb2555 cfaab43
fix: Fixed use .* problem
Xb2555 94b7b92
fix: Fixed server application.yml register The seata issue is not inc…
Xb2555 7bc83ad
fix: Delete useless heartbeat sending
Xb2555 b5919f2
fix: Delete the code that is not used in the MCP SDK source code
Xb2555 c51f421
fix: Optimize import
Xb2555 6856c30
optimize: Removed the MCP server feature support code for Prompt and …
Xb2555 aa5bf3a
optimize: Removed the MCP SDK Unused code
Xb2555 b334852
optimize: Removed Useless comments
Xb2555 b174f10
optimize: Removed the function configuration parameters for prompt an…
Xb2555 144110d
style: apply spotless formatting
Xb2555 3662d48
optimize: Delete useless code and classes
Xb2555 bbd2a2e
optimize: Delete useless code and classes
Xb2555 74d3be4
optimize: Open the original comment
Xb2555 bc41f30
optimize: turn page num to page size
Xb2555 a000de0
optimize: Addresses the issue of not handling endTime less than start…
Xb2555 fd9ae25
optimize: Fixed an issue where automatically deleting the WHERE claus…
Xb2555 c890331
optimize: Remove some unwanted lines of code
Xb2555 b6f02b2
style: apply spotless formatting
Xb2555 e62211f
optimize: Transfer the tool class call service of transactions and lo…
Xb2555 d9a41f8
style: Delete useless comments
Xb2555 8953ceb
style: The tool that changes the global transaction state is modified
Xb2555 6efc698
optimize: Optimize the code so that the amount of code is reduced whe…
Xb2555 8c698ac
style: apply spotless formatting
Xb2555 3615d58
optimize: Delete the method of updating the business database in the …
Xb2555 f768a09
fix: Delete the default value of the Business Data Source URL field
Xb2555 d44c111
fix: Delete GlobalExceptionStatus and use the original Status class i…
Xb2555 9900359
fix: Deletes the attribute value of whether the useless MCP service i…
Xb2555 afa68ed
fix: Plus the TODO for downloading the breakpoint log file
Xb2555 7351d1b
fix: Deletes unused modified SQL judgment patterns
Xb2555 84d0279
feat: Implement the MCPServerConfig class test
Xb2555 bd92ab6
feat: Implement the MCPServerManager class test
Xb2555 d57ff34
feat: Implement the Config package test
Xb2555 a8be690
feat: Implement the BusinessDataSourceTools test
Xb2555 6ea53b5
feat: Delete DateUtilTools
Xb2555 d9e08ca
feat: Implement the GlobalLockTools test class
Xb2555 a62e7d0
feat: Implement the BranchSessionTools test class
Xb2555 53cbb65
feat: Implement the ControlMcpController test class
Xb2555 31ac930
feat: Implement the ModifyConfirmServiceImpl test class
Xb2555 9fed0ca
feat: Implement the GlobalSessionTools test class
Xb2555 ff1d6ec
feat: Optimize the ControlMcpControllerTest class
Xb2555 4fcf1f9
feat: Implement the ModifyConfirmTools test class
Xb2555 c9fe89a
feat: Optimize the Import format
Xb2555 dd53e97
feat: Implement the test class of ServerLogTools
Xb2555 9ba6be7
feat: Implement the test class of UndoLogTools
Xb2555 0b68fe4
feat: Remove unnecessary exception throws
Xb2555 272d314
feat: Implement the MCPAutoRegister test class
Xb2555 d456859
feat: Implement the BusinessDataSourceServiceImpl test class
Xb2555 9fe01bb
feat: Implement the MCPRPCService test class
Xb2555 fa915e4
feat: Implement the ServerLogService test class
Xb2555 f386c04
feat: Implement the UndoLogService test class
Xb2555 1861c70
feat: Move the test class location under the service test package
Xb2555 35f0a57
feat: Implement breakpoint incremental server log download
Xb2555 36bba12
style: apply spotless formatting
Xb2555 8450997
feat: Delete methods that aren't tested
Xb2555 a124840
feat: Delete useless TODO comments
Xb2555 ba69c35
feat: Delete the sample URL in the configuration file
Xb2555 dc41f29
feat: Add the license header
Xb2555 e043ced
optimize: Change the keyword parameter type obtained from serverLog t…
Xb2555 da863b8
optimize: Change the log file to the same day as the date of the judg…
Xb2555 bd147d4
fix: Fixed a bug where keyword parameters were changed to null in Ser…
Xb2555 36bf6a0
feat: Changed the original token verification method of MCP to accoun…
Xb2555 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
93 changes: 93 additions & 0 deletions
93
console/src/main/java/io/modelcontextprotocol/server/DefaultMcpTransportContext.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,93 @@ | ||
| /* | ||
| * Licensed to the Apache Software Foundation (ASF) under one or more | ||
| * contributor license agreements. See the NOTICE file distributed with | ||
| * this work for additional information regarding copyright ownership. | ||
| * The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| * (the "License"); you may not use this file except in compliance with | ||
| * the License. You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| /* | ||
| * ------------------------------------------------------------------------ | ||
| * This file contains code originally from the [Model Context Protocol Java SDK], | ||
| * which is licensed under the MIT License. | ||
| * | ||
| * The original MIT license text is reproduced below: | ||
| * ------------------------------------------------------------------------ | ||
| */ | ||
|
|
||
| /* | ||
| * MIT License | ||
| * Copyright (c) 2025 the original author or authors. | ||
| * | ||
| * Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| * of this software and associated documentation files (the "Software"), to deal | ||
| * in the Software without restriction, including without limitation the rights | ||
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| * copies of the Software, and to permit persons to whom the Software is | ||
| * furnished to do so, subject to the following conditions: | ||
| * | ||
| * The above copyright notice and this permission notice shall be included in all | ||
| * copies or substantial portions of the Software. | ||
| * | ||
| * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| * SOFTWARE. | ||
| */ | ||
|
|
||
| package io.modelcontextprotocol.server; | ||
|
|
||
| import java.util.Map; | ||
| import java.util.concurrent.ConcurrentHashMap; | ||
|
|
||
| /** | ||
| * Default implementation for {@link McpTransportContext} which uses a Thread-safe map. | ||
| * Objects of this kind are mutable. | ||
| * | ||
| * @author Dariusz Jędrzejczyk | ||
| */ | ||
| public class DefaultMcpTransportContext implements McpTransportContext { | ||
|
|
||
| private final Map<String, Object> storage; | ||
|
|
||
| /** | ||
| * Create an empty instance. | ||
| */ | ||
| public DefaultMcpTransportContext() { | ||
| this.storage = new ConcurrentHashMap<>(); | ||
| } | ||
|
|
||
| DefaultMcpTransportContext(Map<String, Object> storage) { | ||
| this.storage = storage; | ||
| } | ||
|
|
||
| @Override | ||
| public Object get(String key) { | ||
| return this.storage.get(key); | ||
| } | ||
|
|
||
| @Override | ||
| public void put(String key, Object value) { | ||
| this.storage.put(key, value); | ||
| } | ||
|
|
||
| /** | ||
| * Allows copying the contents. | ||
| * @return new instance with the copy of the underlying map | ||
| */ | ||
| public McpTransportContext copy() { | ||
| return new DefaultMcpTransportContext(new ConcurrentHashMap<>(this.storage)); | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.