-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix: add mcp components #1141
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
Draft
Hoder-zyf
wants to merge
65
commits into
main
Choose a base branch
from
yifei/context7
base: main
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.
Draft
fix: add mcp components #1141
Changes from 54 commits
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
4fee7e6
add prompt in pipeline_eval, parameter to control and more required …
Hoder-zyf cdb4902
init commit, enable mcp first try(not done yet)
Hoder-zyf d117c66
remove unused things
Hoder-zyf d24ad8a
update config and keys to include error message(prompt for error_mess…
Hoder-zyf 13bb813
update error message prompt
Hoder-zyf c52553a
solve error_message; config load
Hoder-zyf 0bbdee8
make lint and translate; TODOS:
Hoder-zyf ca64f3e
feat: add CoSTEERSingleFeedback.merge and refactor multi evaluator
you-n-g c17e31c
test version not done yet
Hoder-zyf d1e6687
complete call logic
Hoder-zyf 31813c7
clear unnecessary codes
Hoder-zyf 521e517
add speical case for timm library
Hoder-zyf 0133ef1
Merge branch 'main' into yifei/context7
Hoder-zyf 233e81e
Merge branch 'main' into yifei/context7
Hoder-zyf 4fdc054
make auto-lint
Hoder-zyf b3ee31c
add ui config
Hoder-zyf 329ed42
lint
Hoder-zyf b0ef22a
Merge branch 'main' into yifei/context7
Hoder-zyf 4a0a29f
lint
Hoder-zyf 6bcd6da
add full code and refine prompt
Hoder-zyf 09f44d8
Merge branch 'main' into yifei/context7
Hoder-zyf aba3f2b
change displayed packages(experimental)
Hoder-zyf 494c52e
fix a small bug
Hoder-zyf fd00fb2
refactor to the origin package_info
Hoder-zyf fd897b6
Merge branch 'main' into yifei/context7
Hoder-zyf 222eefe
make lint and merge main 0807
Hoder-zyf 75fcb6a
Merge branch 'main' into yifei/context7
Hoder-zyf a3da121
Merge branch 'main' into yifei/context7
Hoder-zyf 6a21e13
Merge branch 'main' into yifei/context7
Hoder-zyf 5a4424c
Merge branch 'main' into yifei/context7
Hoder-zyf c24c535
feat: another way to use mcp via http: transform to tool calling
Hoder-zyf 938105a
refactor and replace llama_index calling with default calling
Hoder-zyf f3ccd2b
refactor mcp folder
Hoder-zyf 9171f49
remove duplicate configs and add README.md
Hoder-zyf b79fc9c
remove util.py
Hoder-zyf a94099d
fix: improve wording in pipeline_eval prompts
Hoder-zyf 30eb10e
fix: reuse SQliteLazyCache and add specific cache for mcp
Hoder-zyf 51b9b93
Merge branch 'main' into yifei/context7 2025-08-22
Hoder-zyf 22bb955
refactor: standardize Context7 MCP configuration and improve error ha…
Hoder-zyf 26308ee
refactor: version 2.0 not done yet but runnalbe
Hoder-zyf 25ab75d
rm duplicate files and refine example.py
Hoder-zyf 236baca
feat: use litellm backend for mcp call
Hoder-zyf 9acd21a
Merge branch 'main' into yifei/context7
Hoder-zyf b524cf4
feat: Add litellm-based calling support for MCP extra_config
Hoder-zyf eaa9404
refactor: remove duplicate code and refine logic (not done yet)
Hoder-zyf c31c52c
refactor: deduplicate MCP handler registration and error handling
Hoder-zyf 74db563
feat: implement checkpoint-based retry with round-level resumption fo…
Hoder-zyf 9730ed6
refactor: simplify MCP handler architecture and remove redundant abst…
Hoder-zyf db32c9e
feat: unify MCP interface with parallel multi-service processing
Hoder-zyf 23336e0
refactor: improve MCP logging control and error detection
Hoder-zyf 5c470b6
fix: fux some bugs for error handling
Hoder-zyf 4f97d39
fix(experimental): fix bug for multiservice mcp
Hoder-zyf 2b7b68f
fix: add readme and solve calling methods in eval.py
Hoder-zyf 581ae54
fix: fix bug for not using extra_config
Hoder-zyf 3264eb9
fix: remove useless code round1
Hoder-zyf 5ff5ad4
fix: reuse rdagent/utils/init.py:get_module_by_module_path
Hoder-zyf ec392ee
refactor: add tool_call logic in _create_chat_completion_inner_function
Hoder-zyf 54dc5cf
refactor(mcp): unify single/multi-service architecture and
Hoder-zyf caa5f6a
fix: add query_mcp_sync for nono-async mcp call
Hoder-zyf d2c25e9
refactor to MCPAGENT
Hoder-zyf 171f9dc
refactor and remove verbose
Hoder-zyf e702afa
lint
Hoder-zyf c767203
refactor and remove duplicate code
Hoder-zyf b919f8d
lint
Hoder-zyf 8bfc09c
refactor code and rename
Hoder-zyf 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,4 +26,4 @@ | |
| "--gpus=all" | ||
| ], | ||
| "postCreateCommand": "make dev" | ||
| } | ||
| } | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| { | ||
| "mcpServices": { | ||
| "context7": { | ||
| "url": "http://localhost:8123/mcp", | ||
| "handler": "rdagent.components.mcp.context7.handler:Context7Handler", | ||
| "enabled": true, | ||
| "timeout": 60, | ||
| "extra_config": { | ||
| "model": "gpt-4", | ||
| "api_key": "your-api-key-here", | ||
| "temperature": 0.7 | ||
| } | ||
| }, | ||
| "simple_code_search": { | ||
| "url": "http://localhost:9001/mcp", | ||
| "handler": "rdagent.components.mcp.general_handler:GeneralMCPHandler", | ||
| "timeout": 60 | ||
| "enabled": true, | ||
| "extra_config": { | ||
| "model": "gpt-3.5-turbo", | ||
| } | ||
| } | ||
| } | ||
| } | ||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mix the API Handler and the prompt customization.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two different responsibility.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MCPAgent + MCPService( API Handler is included)