Commit 66cbfd0
[Feature] MCP Client/Server (#146)
* initial mcp with signature
Signed-off-by: Kevin Guan <[email protected]>
* updated version for mcp adapters
Signed-off-by: Kevin Guan <[email protected]>
* major revisions to mcp server
Signed-off-by: Kevin Guan <[email protected]>
* renamed mcp package to openroad_mcp
Signed-off-by: Kevin Guan <[email protected]>
* final changes to the mcp server
Signed-off-by: Kevin Guan <[email protected]>
* updated backend readme for running mcp
Signed-off-by: Kevin Guan <[email protected]>
* add claude to gitignore
Signed-off-by: Jack Luar <[email protected]>
* remove unnecessary shebangs
Signed-off-by: Jack Luar <[email protected]>
* fix checks
Signed-off-by: Jack Luar <[email protected]>
* update backend .env.example
Signed-off-by: Jack Luar <[email protected]>
* fix TODO for 3 unpacked values
Signed-off-by: Jack Luar <[email protected]>
* feat(Makefile, requirements, agents): ✨ Add MCP and chat commands, update dependencies
* Introduced new commands in `Makefile` for MCP development and chat functionality.
* Updated `requirements.txt` to reflect the latest versions of `fastapi` and `langchain-google-vertexai`.
* Refactored `retriever_mcp.py` and `retriever_rag.py` to utilize `get_tools()` for tool management.
* Enhanced `client.py` with an asynchronous health check for the MCP server.
* Added a health check endpoint in `orfs_server.py` for improved server monitoring.
Signed-off-by: Jack Luar <[email protected]>
* feat(MCP Agent): ✨ Add MCP Agent Trigger Guide and enhance error handling
* Introduced a new `MCP Agent Trigger Guide` to document how the MCP agent is triggered by user queries.
* Enhanced the `mcp_info` tool documentation to clarify its usage for executing commands and system operations.
* Improved error handling in `retriever_mcp.py` to log specific exceptions during tool invocation.
* Refactored `get_tools` function in `client.py` to use asynchronous calls for better performance.
* Updated `orfs_server.py` to streamline platform and design retrieval methods.
Signed-off-by: Jack Luar <[email protected]>
* feat(routing_tools): ✨ Add architecture, MCP, and RAG info tools
* Introduced new tools for handling OpenROAD infrastructure and command execution.
* Enhanced modularity by separating tool definitions into `routing_tools.py`.
* Improved code organization and maintainability.
Signed-off-by: Jack Luar <[email protected]>
* fix tests
Signed-off-by: Jack Luar <[email protected]>
* updated readme and removed todo
Signed-off-by: Kevin Guan <[email protected]>
* disable mcp by default
Signed-off-by: Kevin Guan <[email protected]>
---------
Signed-off-by: Kevin Guan <[email protected]>
Signed-off-by: kevinwguan <[email protected]>
Signed-off-by: Jack Luar <[email protected]>
Co-authored-by: Jack Luar <[email protected]>1 parent e839e9b commit 66cbfd0
File tree
32 files changed
+1518
-363
lines changed- backend
- src
- agents
- api/routers
- openroad_mcp
- client
- server
- orfs
- pipeline
- prompts
- tests
32 files changed
+1518
-363
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
4 | 8 | | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
11 | | - | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
14 | | - | |
| 18 | + | |
15 | 19 | | |
16 | 20 | | |
17 | | - | |
| 21 | + | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
25 | 32 | | |
26 | 33 | | |
27 | | - | |
| 34 | + | |
28 | 35 | | |
29 | 36 | | |
30 | 37 | | |
| |||
35 | 42 | | |
36 | 43 | | |
37 | 44 | | |
38 | | - | |
| 45 | + | |
39 | 46 | | |
40 | 47 | | |
41 | 48 | | |
42 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
43 | 62 | | |
44 | | - | |
45 | | - | |
| 63 | + | |
| 64 | + | |
46 | 65 | | |
47 | | - | |
| 66 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
| |||
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
0 commit comments