File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 22
22
</p >
23
23
24
24
25
- ## Installation
25
+ # ⬇️ Installation
26
26
27
27
``` bash
28
28
npm install --save-dev @codelytv/mcp-client
29
29
```
30
30
31
- ## Usage
31
+ # 💻 Usage
32
32
33
- ### Basic Example
33
+ ## Basic Example
34
34
35
35
``` typescript
36
36
import { McpClient } from ' @codelytv/mcp-client' ;
@@ -60,23 +60,23 @@ const resource = await mcpClient.readResource('courses://all');
60
60
await mcpClient .disconnect ();
61
61
```
62
62
63
- ### HTTP Transport
63
+ ## HTTP Transport
64
64
65
65
``` typescript
66
66
const mcpClient = new McpClient (" http" , [" http://localhost:3000/mcp" ]);
67
67
```
68
68
69
- ## API
69
+ # 🔡 API
70
70
71
- ### McpClient
71
+ ## McpClient
72
72
73
73
The main client class for interacting with MCP servers.
74
74
75
- #### Constructor
75
+ ### Constructor
76
76
77
77
- ` new McpClient(transport: "stdio" | "http", args: string[]) `
78
78
79
- #### Methods
79
+ ### Methods
80
80
81
81
- ` connect() ` - Connect to the MCP server
82
82
- ` disconnect() ` - Disconnect from the MCP server
@@ -89,7 +89,7 @@ The main client class for interacting with MCP servers.
89
89
- ` listPrompts() ` - List available prompts
90
90
- ` getPrompt(name: string, args?: Record<string, unknown>) ` - Get a prompt
91
91
92
- ## Codely Code Quality Standards
92
+ # 👌 Codely Code Quality Standards
93
93
94
94
Publishing this package we are committing ourselves to the following code quality standards:
95
95
@@ -100,6 +100,6 @@ Publishing this package we are committing ourselves to the following code qualit
100
100
- 📖 ** Well documented ReadMe** showing how to install and use
101
101
- ⚖️ ** License favoring Open Source** and collaboration
102
102
103
- ## License
103
+ # ⚖️ License
104
104
105
105
See [ LICENSE] ( LICENSE )
You can’t perform that action at this time.
0 commit comments