Skip to content

Commit 5fea439

Browse files
committed
fix: transport type (checkbox) & local init not required for commands
1 parent aa0b1ad commit 5fea439

37 files changed

+641
-222
lines changed

.syrin/.dev-history

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ Fetch all the network codes
22
Give me report for today (25-12-2025) for Rtbdemand
33
List all the network codes
44
/tools
5-
what can you do?
65
what is today's date?
76
inventory?
87
give me inventory list
98
/clear
109
/exit
10+
what can you do?
11+
what are the network codes?

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ Requirements: Node.js >= 20.12, npm >= 9
127127
| `syrin doctor` | Environment check — validate config and connections |
128128
| `syrin list` | Inspect tools, resources, and prompts from your server |
129129

130+
**Zero-config:** For `syrin test --connection`, `syrin list`, and `syrin analyse`, no config file is required when you pass `--url <url>` (or `--script <command>` for stdio). `syrin dev` needs local or global config for LLM credentials.
131+
130132
---
131133

132134
## Global Configuration

docs/Commands/syrin-config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ llm:
387387
388388
**Key Differences from Local Config:**
389389
390-
- No `transport`, `mcp_url`, or `script` fields
390+
- No `transport`, `url`, or `script` fields
391391
- `project_name` is always `GlobalSyrin`
392392
- Focuses only on LLM provider configuration
393393

docs/Commands/syrin-doctor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ Resolution
182182

183183
- Ensure `transport` matches the configured fields
184184
- Use `script` for `stdio`
185-
- Use `mcp_url` for `http`
185+
- Use `url` for `http`
186186

187187
## Exit Codes
188188

docs/Commands/syrin-init.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ agent_name: 'My Agent'
172172
173173
transport: 'stdio' # or "http"
174174
175-
mcp_url: 'http://localhost:3000' # required for http
175+
url: 'http://localhost:3000' # required for http
176176
script: 'python server.py' # required for stdio
177177
178178
llm:

docs/Configuration/syrin.yaml.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ agent_name: 'My Agent'
3535

3636
transport: 'stdio' # or "http"
3737

38-
mcp_url: 'http://localhost:3000' # Required for http transport
38+
url: 'http://localhost:3000' # Required for http transport
3939
script: 'python server.py' # Required for stdio transport
4040

4141
llm:
@@ -65,7 +65,7 @@ Changes take effect immediately.
6565
| `project_name` | string | Yes | Logical project identifier |
6666
| `agent_name` | string | Yes | Logical agent name used in execution |
6767
| `transport` | `"stdio"` or `"http"` | Yes | MCP transport type |
68-
| `mcp_url` | string | Conditional | Required when `transport` is `http` |
68+
| `url` | string | Conditional | Required when `transport` is `http` |
6969
| `script` | string | Conditional | Required when `transport` is `stdio` |
7070
| `llm` | object | Yes | LLM provider definitions |
7171

@@ -101,7 +101,7 @@ Use `http` when the MCP server exposes an HTTP endpoint.
101101

102102
```yaml
103103
transport: 'http'
104-
mcp_url: 'http://localhost:3000'
104+
url: 'http://localhost:3000'
105105
```
106106

107107
The server must already be running.\

docs/Configuration/transport-types.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ In this mode, **Syrin does not own the server lifecycle**.
110110

111111
```yaml
112112
transport: 'http'
113-
mcp_url: 'http://localhost:3000'
113+
url: 'http://localhost:3000'
114114
```
115115

116116
### How It Works
@@ -139,25 +139,25 @@ This transport is common in **production deployments**.
139139
Local server:
140140

141141
```yaml
142-
mcp_url: 'http://localhost:3000'
142+
url: 'http://localhost:3000'
143143
```
144144

145145
Remote server:
146146

147147
```yaml
148-
mcp_url: 'https://api.example.com/mcp'
148+
url: 'https://api.example.com/mcp'
149149
```
150150

151151
With custom path:
152152

153153
```yaml
154-
mcp_url: 'http://localhost:3000/mcp/v1'
154+
url: 'http://localhost:3000/mcp/v1'
155155
```
156156

157157
With authentication:
158158

159159
```yaml
160-
mcp_url: 'https://user:pass@api.example.com/mcp'
160+
url: 'https://user:pass@api.example.com/mcp'
161161
```
162162

163163
### Behaviour in Syrin Commands
@@ -207,7 +207,7 @@ The transport choice affects **how much execution control Syrin can exercise**.
207207

208208
```yaml
209209
transport: 'http'
210-
mcp_url: 'http://localhost:3000'
210+
url: 'http://localhost:3000'
211211
```
212212

213213
2. Start the HTTP server

docs/Testing/troubleshooting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ Cannot connect to MCP server
366366

367367
```yaml
368368
transport: 'http'
369-
mcp_url: 'http://localhost:3000' # Correct URL
369+
url: 'http://localhost:3000' # Correct URL
370370
```
371371
372372
3. **Test Server Manually**

examples/demo-mcp-py/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ This will automatically spawn the server using the script in syrin.yaml.
7575

7676
1. Update `syrin.yaml`:
7777
- Change `transport: 'http'`
78-
- Uncomment and set `mcp_url: 'http://localhost:8000/mcp'`
78+
- Uncomment and set `url: 'http://localhost:8000/mcp'`
7979
- Update `script: '.venv/bin/python server.py --mode http'`
8080

8181
2. Option A: Spawn server internally

examples/demo-mcp-py/syrin.yaml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ transport: "http"
2525
# MCP Server URL (required for http transport)
2626
# The HTTP endpoint where your MCP server is running
2727
# Example: "http://localhost:8000/mcp"
28-
mcp_url: "http://localhost:8000/mcp"
28+
url: "http://localhost:8000/mcp"
2929

3030
# Script Configuration
3131
# --------------------
@@ -38,24 +38,18 @@ script: "python3 server.py"
3838
# LLM Provider Configuration
3939
# ---------------------------
4040
# Configure one or more LLM providers for Syrin to use.
41-
# API keys and model names can be set as:
42-
# - Environment variable names (recommended for security)
43-
# - Direct values (not recommended for production)
41+
# Use environment variable names (keys in .env) for API_KEY and MODEL_NAME.
4442
# At least one provider must be marked as default: true
4543

4644
llm:
4745

4846
# openai Provider
4947
openai:
5048

51-
# API key: Set as environment variable name or direct value
52-
# Example: "OPENAI_API_KEY" (reads from process.env.OPENAI_API_KEY)
53-
# Or: "sk-..." (direct value, not recommended)
49+
# API key: env var name in .env (e.g. OPENAI_API_KEY)
5450
API_KEY: "OPENAI_API_KEY"
5551

56-
# Model name: Set as environment variable name or direct value
57-
# Example: "OPENAI_MODEL_NAME" (reads from process.env.OPENAI_MODEL_NAME)
58-
# Or: "gpt-4" (direct value)
52+
# Model name: env var name in .env (e.g. OPENAI_MODEL_NAME)
5953
MODEL_NAME: "OPENAI_MODEL_NAME"
6054

6155
# Set as default LLM provider
@@ -69,10 +63,10 @@ llm:
6963

7064
# Ollama Provider - uncomment to enable
7165
# ollama:
72-
# MODEL_NAME: "OLLAMA_MODEL_NAME" # or "llama2", "mistral", etc.
66+
# MODEL_NAME: "OLLAMA_MODEL_NAME"
7367
# default: false
7468

75-
# Tool Validation Configuration (v1.3.0)
69+
# Tool Validation Configuration
7670
# ---------------------------
7771
# Configure tool-level structural safety validation
7872
# This section is optional but recommended for production use

0 commit comments

Comments
 (0)