File tree Expand file tree Collapse file tree 3 files changed +30
-9
lines changed Expand file tree Collapse file tree 3 files changed +30
-9
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,17 @@ def parse_args() -> argparse.Namespace:
85
85
help = "Transport protocol for MCP server" ,
86
86
)
87
87
88
+ parser .add_argument (
89
+ "--log-level" ,
90
+ type = str ,
91
+ default = "INFO" ,
92
+ help = (
93
+ "Log level for the server. Use one on the following: DEBUG, INFO, "
94
+ "WARNING, ERROR."
95
+ " (only used with --transport sse)"
96
+ ),
97
+ )
98
+
88
99
# SSE-specific options
89
100
parser .add_argument (
90
101
"--host" ,
@@ -209,6 +220,7 @@ def main() -> None:
209
220
settings = {
210
221
"host" : args .host ,
211
222
"port" : args .port ,
223
+ "log_level" : "INFO" ,
212
224
}
213
225
214
226
# Create and run the server
@@ -218,14 +230,15 @@ def main() -> None:
218
230
timeout = args .timeout ,
219
231
settings = settings ,
220
232
)
221
- print ()
222
- print (SPLASH )
223
- print ()
224
233
225
- print (
226
- f"Launching MCPDOC server with { len (doc_sources )} doc sources" ,
227
- file = sys .stderr ,
228
- )
234
+ if args .transport == "sse" :
235
+ print ()
236
+ print (SPLASH )
237
+ print ()
238
+
239
+ print (
240
+ f"Launching MCPDOC server with { len (doc_sources )} doc sources" ,
241
+ )
229
242
230
243
# Pass transport-specific options
231
244
server .run (transport = args .transport )
Original file line number Diff line number Diff line change @@ -42,7 +42,15 @@ def create_server(
42
42
settings : dict | None = None ,
43
43
) -> FastMCP :
44
44
"""Create the server and generate tools."""
45
- server = FastMCP (name = "llms-txt" , ** settings )
45
+ server = FastMCP (
46
+ name = "llms-txt" ,
47
+ instructions = (
48
+ "Use the list doc sources tool to see available documentation "
49
+ "sources. Once you have a source, use fetch docs to get the "
50
+ "documentation"
51
+ ),
52
+ ** settings ,
53
+ )
46
54
httpx_client = httpx .AsyncClient (follow_redirects = follow_redirects , timeout = timeout )
47
55
48
56
@server .tool ()
Original file line number Diff line number Diff line change 1
1
[project ]
2
2
name = " mcpdoc"
3
- version = " 0.0.3 "
3
+ version = " 0.0.4 "
4
4
description = " Server llms-txt documentation over MCP"
5
5
readme = " README.md"
6
6
requires-python = " >=3.10"
You can’t perform that action at this time.
0 commit comments