Skip to content

docs: Add more examples how to use this sdk #16

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

Merged
merged 39 commits into from
Jun 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
c16b8be
docs(examples): Add example environment configuration and README file…
edenreich May 27, 2025
52954c1
docs: Update README to include pre-requisites for using the Typescrip…
edenreich May 27, 2025
9b2eb7a
docs(examples): Update example links in README and add list example R…
edenreich May 27, 2025
6550c85
docs(examples): Add examples for chat, list, and MCP using Inference …
edenreich May 27, 2025
e765778
docs(exmaples): Add sample files and configuration for MCP example
edenreich May 27, 2025
f8bbb25
docs(examples): Update LLM model references to remove provider prefix
edenreich May 27, 2025
16fa1f2
docs(mcp): Add note to ensure no containers are running before starti…
edenreich May 27, 2025
9e66ef5
feat: Support both local tools and remote MCP tools; Add onMCPTool ca…
edenreich May 28, 2025
3ea92c1
docs(examples): Refactor MCP examples and client for improved error h…
edenreich May 30, 2025
75078d8
docs(examples) Add more examples and MCP server to MCP examples
edenreich May 31, 2025
7c6e122
docs(examples): Add NPM MCP server with whitelisted command execution…
edenreich May 31, 2025
fd0948b
chore: Merge branch 'main' into docs/add-more-examples-how-to-use-thi…
edenreich May 31, 2025
430e251
docs: Update context7 server package and dependencies, improve npm co…
edenreich Jun 1, 2025
aff4431
chore(mcp-agent-example): Enhance retry logic and improve system prom…
edenreich Jun 1, 2025
07e5fa4
docs(example-agent): Add wait functionality for Next.js project creat…
edenreich Jun 1, 2025
bcd9a93
docs(examples): Remove outdated examples and add Vite agent for moder…
edenreich Jun 1, 2025
3934ad7
chore: Add Vite agent and Docker Compose configuration for MCP
edenreich Jun 1, 2025
bf22802
docs: Implement MCP Memory Server for state persistence and error rec…
edenreich Jun 1, 2025
b49a1fd
docs(examples-fix): Update @inference-gateway/sdk to version 0.7.2 an…
edenreich Jun 1, 2025
8574970
docs(examples): Add delete_directory tool with optional recursive del…
edenreich Jun 1, 2025
31881d2
fix: Rename Context7Agent to NextJSAgent and update related messages
edenreich Jun 1, 2025
2dc5893
fix: Update entry point check for Kubernetes and Vite agents to use '…
edenreich Jun 1, 2025
4dbc8ba
docs: Enhance README with additional instructions for spinning up the…
edenreich Jun 1, 2025
8e06d8f
refactor: Enhance MCP Web Search server with structured logging and e…
edenreich Jun 1, 2025
6b4c328
refactor: Implement DuckDuckGo search functionality with safe search …
edenreich Jun 1, 2025
3864adb
refactor: Upgrade Node.js version in Dockerfiles and add MCP Inspecto…
edenreich Jun 1, 2025
bfa4412
refactor: Enhance logging and error handling in MCP Memory Server
edenreich Jun 1, 2025
e8253e4
refactor: Clean up unneeded comments
edenreich Jun 1, 2025
1b46a15
refactor: Remove redundant comments and improve code clarity in MCP F…
edenreich Jun 1, 2025
4bd68d0
refactor: Remove redundant comment in Context7Process class
edenreich Jun 1, 2025
1222d2e
refactor: Update @inference-gateway/sdk version to ^0.7.3 and improve…
edenreich Jun 1, 2025
39d7cf6
refactor: Increase maxTokensPerRequest to 3000 and update related max…
edenreich Jun 1, 2025
0800f85
chore: Add tools for saving and managing conversation state in MCP Me…
edenreich Jun 2, 2025
4fab5ab
refactor: Replace process.stdout.write with console.log for improved …
edenreich Jun 2, 2025
93ba90d
refactor: Enhance KubernetesAgent with memory management features and…
edenreich Jun 2, 2025
0d6bf6b
refactor: Refactor MCP Memory Server to use MemoryManager for in-memo…
edenreich Jun 2, 2025
91705e1
docs(examples): Add Brave Search server package and TypeScript config…
edenreich Jun 2, 2025
3f13e26
refactor: Improve error handling and logging in MarketingAgent
edenreich Jun 2, 2025
9f50d02
docs: Add important note about tool call format in MarketingAgent
edenreich Jun 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions examples/mcp/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@

# General settings
ENVIRONMENT=development
ENABLE_TELEMETRY=false
ENABLE_AUTH=false
# Model Context Protocol (MCP)
MCP_ENABLE=false
MCP_EXPOSE=false
MCP_SERVERS=
MCP_CLIENT_TIMEOUT=5s
MCP_DIAL_TIMEOUT=3s
MCP_TLS_HANDSHAKE_TIMEOUT=3s
MCP_RESPONSE_HEADER_TIMEOUT=3s
MCP_EXPECT_CONTINUE_TIMEOUT=1s
MCP_REQUEST_TIMEOUT=5s
# OpenID Connect
OIDC_ISSUER_URL=http://keycloak:8080/realms/inference-gateway-realm
OIDC_CLIENT_ID=inference-gateway-client
OIDC_CLIENT_SECRET=
# Server settings
SERVER_HOST=0.0.0.0
SERVER_PORT=8080
SERVER_READ_TIMEOUT=30s
SERVER_WRITE_TIMEOUT=30s
SERVER_IDLE_TIMEOUT=120s
SERVER_TLS_CERT_PATH=
SERVER_TLS_KEY_PATH=
# Client settings
CLIENT_TIMEOUT=30s
CLIENT_MAX_IDLE_CONNS=20
CLIENT_MAX_IDLE_CONNS_PER_HOST=20
CLIENT_IDLE_CONN_TIMEOUT=30s
CLIENT_TLS_MIN_VERSION=TLS12
# Providers
ANTHROPIC_API_URL=https://api.anthropic.com/v1
ANTHROPIC_API_KEY=
CLOUDFLARE_API_URL=https://api.cloudflare.com/client/v4/accounts/{ACCOUNT_ID}/ai
CLOUDFLARE_API_KEY=
COHERE_API_URL=https://api.cohere.ai
COHERE_API_KEY=
GROQ_API_URL=https://api.groq.com/openai/v1
GROQ_API_KEY=
OLLAMA_API_URL=http://ollama:8080/v1
OLLAMA_API_KEY=
OPENAI_API_URL=https://api.openai.com/v1
OPENAI_API_KEY=
DEEPSEEK_API_URL=https://api.deepseek.com
DEEPSEEK_API_KEY=

# Chosen provider
PROVIDER=deepseek
LLM=deepseek-chat

# Brave search
BRAVE_API_KEY=
Loading