-
Notifications
You must be signed in to change notification settings - Fork 117
Adding MCP problem type basic sampler infrastructure #1628
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
Open
guidorc
wants to merge
31
commits into
WebFuzzing:master
Choose a base branch
from
guidorc:feature/mcp-blackbox-sampler
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
32222fa
Add MCP blackbox sampler — Phases 1–4
a1b9741
Wire MCP into EvoMaster entry point
7f75a39
Wrap McpSampler discovery in SutProblemException
ba9be0a
Handle HTTP 4xx from MCP servers that don't implement all endpoints
badf32d
Add missing header
cf1c967
Add MCP initialization handshake
af0cdd2
Merge branch 'master' into feature/mcp-blackbox-sampler
999c3e0
merge skeleton setup
5aea547
Fix for MCP uriTemplate
38ef921
store MCP-Session-Id on inititalize
56c3098
Setting up MCP Problem Type Skeleton (#3)
guidorc b4a4384
Merge branch 'master' into feature/mcp-blackbox-sampler
guidorc 2b0e604
Adding JavaDocs
11df7b1
remove supress unchecked cast annotations
ef80412
Merge branch 'master' into feature/mcp-blackbox-sampler
guidorc e2820c6
Merge branch 'external-pr-mcp' into feature/mcp-blackbox-sampler
guidorc 5cf695e
Merge branch 'master' into feature/mcp-blackbox-sampler
guidorc e210728
Merge branch 'master' into feature/mcp-blackbox-sampler
guidorc d240e23
Adopt Jersey client
c501ad1
Extract constants into shared file
ed9906d
use JsonNode data type for tools input schema
d4c0c34
use MediaType constants
guidorc 4e6b786
remove redundant HTTP status check
guidorc 14b9b8d
refactor MCP list response navigation
guidorc 76948f5
Validate tool result includes type
guidorc 9517441
general feedback
guidorc 02d462b
Merge branch 'master' into feature/mcp-blackbox-sampler
guidorc 12cdd69
feedback
guidorc 6527f6e
add test coverage
guidorc ac1fd1e
Update HttpMcpClient
guidorc 5f6f876
remove input schema object builder
guidorc 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
44 changes: 44 additions & 0 deletions
44
core/src/main/kotlin/org/evomaster/core/problem/mcp/McpConst.kt
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,44 @@ | ||
| package org.evomaster.core.problem.mcp | ||
|
|
||
| object McpConst { | ||
|
|
||
| /** | ||
| * JSON-RPC version used for all MCP messages, as required by the MCP specification. | ||
| */ | ||
| const val JSONRPC_VERSION = "2.0" | ||
|
|
||
| /** | ||
| * MCP protocol version negotiated during the initialize handshake. | ||
| */ | ||
| const val PROTOCOL_VERSION = "2025-11-25" | ||
|
|
||
| /** | ||
| * HTTP header used by the Streamable HTTP transport to carry the session id | ||
| * returned by the server after a successful initialize handshake. | ||
| */ | ||
| const val SESSION_ID_HEADER = "Mcp-Session-Id" | ||
|
|
||
| /** | ||
| * Message sent by the client on successful initialization with the server | ||
| */ | ||
| const val INITIALIZED_NOTIFICATION = "notifications/initialized" | ||
|
|
||
| /** | ||
| * method names for the MCP requests. | ||
| */ | ||
| const val METHOD_INITIALIZE = "initialize" | ||
| const val METHOD_TOOLS_LIST = "tools/list" | ||
| const val METHOD_TOOLS_CALL = "tools/call" | ||
| const val METHOD_RESOURCES_LIST = "resources/list" | ||
| const val METHOD_RESOURCES_READ = "resources/read" | ||
| const val METHOD_RESOURCE_TEMPLATES_LIST = "resources/templates/list" | ||
|
|
||
| /** | ||
| * Possible content types of tool responses. | ||
| */ | ||
| const val CONTENT_TYPE_TEXT = "text" | ||
| const val CONTENT_TYPE_IMAGE = "image" | ||
| const val CONTENT_TYPE_AUDIO = "audio" | ||
| const val CONTENT_TYPE_RESOURCE_LINK = "resource_link" | ||
| const val CONTENT_TYPE_RESOURCE = "resource" | ||
| } | ||
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
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
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.