Skip to content

Commit b1cd751

Browse files
authored
feat: add complex MCP server commands support (#22)
* feat: add complex MCP server commands support Add ServerConfig type with command, args, env, cwd fields and support for multiple transport types (Stdio, HTTP, SSE). Changes: - Add ServerConfig with builder pattern in mcp-core - Add TransportType enum (Stdio, Http, Sse) - Update validation to check command, args, env separately - Block dangerous env vars (LD_PRELOAD, DYLD_*, PATH) - Update Introspector::discover_server to accept ServerConfig - Update Bridge::connect to accept ServerConfig - Update CLI commands to use new API Closes #21 * chore: update dependencies * docs(examples): update test_github with GitHub MCP server examples Add multiple configuration options for GitHub MCP server: - Docker: docker run -i --rm ghcr.io/github/github-mcp-server - Remote: HTTP transport to api.githubcopilot.com - Local: github-mcp-server stdio (build from source) Demonstrate ServerConfig usage with args, env, and headers.
1 parent 7333b60 commit b1cd751

File tree

18 files changed

+5155
-267
lines changed

18 files changed

+5155
-267
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Rust
22
/target
3-
Cargo.lock
43
**/*.rs.bk
54
*.pdb
65

0 commit comments

Comments
 (0)