File tree Expand file tree Collapse file tree 2 files changed +16
-14
lines changed
codegen-examples/examples/codegen-mcp-server Expand file tree Collapse file tree 2 files changed +16
-14
lines changed Original file line number Diff line number Diff line change 21
21
This example demonstrates how to run a Model Control Protocol (MCP) server that integrates with Codegen. The server provides:
22
22
23
23
1 . A standardized interface for model inference
24
- 2 . Integration with Codegen's core functionality, parsing codebases and executing codemods
25
- 3 . Support for various LLM providers through the MCP protocol
26
-
24
+ 1 . Integration with Codegen's core functionality, parsing codebases and executing codemods
25
+ 1 . Support for various LLM providers through the MCP protocol
27
26
28
27
## Quick Start
29
28
30
29
### Prerequisites
30
+
31
31
It's recommended to use ` uv ` to install the package.
32
+
32
33
- [ uv] ( https://docs.astral.sh/uv/getting-started/installation/ )
33
34
34
35
This MCP server runs on python 3.12+
35
- - [ python] ( https://www.python.org/downloads/ ) 3.12+
36
36
37
+ - [ python] ( https://www.python.org/downloads/ ) 3.12+
37
38
38
39
### Direct Execution
39
40
@@ -43,8 +44,8 @@ This MCP server runs on python 3.12+
43
44
uvx --from ' git+https://github.com/codegen-sh/codegen-sdk.git@ce8cffe#egg=codegen-mcp-server&subdirectory=codegen-examples/examples/codegen-mcp-server' codegen-mcp-server
44
45
```
45
46
46
-
47
47
### Example MCP Config
48
+
48
49
Here is an example mcp config that can be used with Cline or Claude desktop to integrate this MCP server
49
50
50
51
``` json
@@ -53,12 +54,13 @@ Here is an example mcp config that can be used with Cline or Claude desktop to i
53
54
"codegen-mcp" : {
54
55
"command" : " uvx" ,
55
56
"args" : [
56
- " --from" , " git+https://github.com/codegen-sh/codegen-sdk.git@ce8cffe#egg=codegen-mcp-server&subdirectory=codegen-examples/examples/codegen-mcp-server" , " codegen-mcp-server"
57
+ " --from" ,
58
+ " git+https://github.com/codegen-sh/codegen-sdk.git@ce8cffe#egg=codegen-mcp-server&subdirectory=codegen-examples/examples/codegen-mcp-server" ,
59
+ " codegen-mcp-server"
57
60
],
58
61
"disabled" : false ,
59
62
"autoApprove" : []
60
63
}
61
64
}
62
65
}
63
-
64
66
```
Original file line number Diff line number Diff line change @@ -5,13 +5,13 @@ description = "MCP server implementation adding tools for the Codegen SDK"
5
5
readme = " README.md"
6
6
requires-python = " >=3.12"
7
7
dependencies = [
8
- " codegen>=0.14.5" ,
9
- " uvicorn>=0.27.1" ,
10
- " fastapi>=0.110.0" ,
11
- " pydantic>=2.6.3" ,
12
- " rich>=13.7.1" ,
13
- " click>=8.1.7" ,
14
- " mcp[cli]>=1.2.1" ,
8
+ " codegen>=0.14.5" ,
9
+ " uvicorn>=0.27.1" ,
10
+ " fastapi>=0.110.0" ,
11
+ " pydantic>=2.6.3" ,
12
+ " rich>=13.7.1" ,
13
+ " click>=8.1.7" ,
14
+ " mcp[cli]>=1.2.1" ,
15
15
]
16
16
17
17
[tool .poetry .scripts ]
You can’t perform that action at this time.
0 commit comments