Commit e2b9847
feat: add MCP network permissions (#106)
* Add proxy configuration support for MCP tools with network restrictions
Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com>
* Enhance MCP configuration schema with additional properties for container, args, env, headers, and permissions
Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com>
* Refactor proxy configuration handling: consolidate proxy file generation and introduce inline proxy configuration support
Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com>
* Update workflow triggers for test-proxy
Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com>
* Removed the step to start proxy services
Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com>
* Update permissions in test-proxy workflow to allow issue reporting
Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com>
* Fix proxy service naming in Docker Compose configuration
Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com>
* Enhance MCP configuration handling: pass tool name to getMCPConfig and transformContainerToDockerCommand, update Docker command arguments in proxy scenarios
Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com>
* Update Docker command in transformContainerToDockerCommand for proxy scenarios
Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com>
* Remove unnecessary includae statements from test-proxy workflow documentation
Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com>
* Enhance proxy configuration: update Docker Compose command for proxy-enabled containers, and support custom proxy arguments in MCP config.
Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com>
* Add DEBUG environment variable to MCP configuration for enhanced logging
Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com>
* Debugging: Update Claude Code Action to use forked version
Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com>
* Enhance proxy setup: remove unused proxy domain, pre-pull Docker images, and start Squid proxy service for MCP tools
Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com>
* regenerate the yaml
Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com>
* Update Claude Code Action to use forked version
Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com>
* Enhance proxy configuration: enforce egress control for tools, update Docker Compose generation, and improve permission checks in tool configurations.
Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com>
* regenerate the yaml
Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com>
* Enhance proxy configuration: add iptables rules to accept established connections and egress from Squid IP
Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com>
* Enhance proxy configuration: update iptables rules for established connections and egress control, improve YAML generation for MCP tools
Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com>
* fmt
Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com>
* fixed some linting issues
Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com>
* Refactor GitHub Actions workflow to enhance output sanitization and streamline job structure
---------
Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com>
Co-authored-by: Peli de Halleux <pelikhan@users.noreply.github.com>1 parent 9531735 commit e2b9847
9 files changed
Lines changed: 1229 additions & 25 deletions
File tree
- .github/workflows
- pkg
- parser/schemas
- workflow
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 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 | + | |
17 | 75 | | |
18 | 76 | | |
19 | 77 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
25 | 97 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
36 | 117 | | |
37 | 118 | | |
38 | 119 | | |
39 | | - | |
40 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
41 | 144 | | |
42 | | - | |
| 145 | + | |
43 | 146 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1912 | 1912 | | |
1913 | 1913 | | |
1914 | 1914 | | |
| 1915 | + | |
| 1916 | + | |
1915 | 1917 | | |
1916 | 1918 | | |
1917 | 1919 | | |
| |||
1920 | 1922 | | |
1921 | 1923 | | |
1922 | 1924 | | |
| 1925 | + | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
1923 | 1930 | | |
1924 | 1931 | | |
1925 | 1932 | | |
1926 | 1933 | | |
1927 | | - | |
| 1934 | + | |
1928 | 1935 | | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
| 1956 | + | |
| 1957 | + | |
| 1958 | + | |
| 1959 | + | |
| 1960 | + | |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
| 1964 | + | |
| 1965 | + | |
| 1966 | + | |
| 1967 | + | |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
| 1971 | + | |
| 1972 | + | |
| 1973 | + | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
| 1987 | + | |
| 1988 | + | |
| 1989 | + | |
| 1990 | + | |
1929 | 1991 | | |
1930 | 1992 | | |
1931 | 1993 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3210 | 3210 | | |
3211 | 3211 | | |
3212 | 3212 | | |
3213 | | - | |
| 3213 | + | |
3214 | 3214 | | |
3215 | 3215 | | |
3216 | 3216 | | |
| |||
0 commit comments