Skip to content

Commit 1a63c9a

Browse files
committed
update
1 parent 7ebdc56 commit 1a63c9a

File tree

3 files changed

+18
-16
lines changed

3 files changed

+18
-16
lines changed

.github/resources/logo.png

1.61 MB
Loading

.github/resources/screenshot.png

867 KB
Loading

README.md

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# MCP Tools
1+
<p align="center">
2+
<img src="./.github/resources/logo.png" alt="MCP Tools" height="300">
3+
</p>
24

35
[Read my Blog Post about MCP Tools](https://blog.fka.dev/blog/2025-03-26-introducing-mcp-tools-cli/)
46

@@ -8,7 +10,7 @@ servers using stdio transport.
810
## Overview
911

1012
```bash
11-
mcp shell npx -y @modelcontextprotocol/server-filesystem ~/Code
13+
mcp shell npx -y @modelcontextprotocol/server-filesystem ~
1214
```
1315

1416
This will open a shell as following:
@@ -73,7 +75,7 @@ Uses stdin/stdout to communicate with an MCP server via JSON-RPC 2.0. This is
7375
useful for command-line tools that implement the MCP protocol.
7476

7577
```bash
76-
mcp tools npx -y @modelcontextprotocol/server-filesystem ~/Code
78+
mcp tools npx -y @modelcontextprotocol/server-filesystem ~
7779
```
7880

7981
### Http SSE Transport
@@ -99,69 +101,69 @@ MCP supports three output formats:
99101
Displays the output in a table-like view for better readability.
100102

101103
```bash
102-
mcp tools npx -y @modelcontextprotocol/server-filesystem ~/Code
104+
mcp tools npx -y @modelcontextprotocol/server-filesystem ~
103105
```
104106

105107
### JSON Format
106108

107109
Displays the output as compact JSON.
108110

109111
```bash
110-
mcp tools --format json npx -y @modelcontextprotocol/server-filesystem ~/Code
112+
mcp tools --format json npx -y @modelcontextprotocol/server-filesystem ~
111113
```
112114

113115
### Pretty Format
114116

115117
Displays the output as indented JSON.
116118

117119
```bash
118-
mcp tools --format pretty npx -y @modelcontextprotocol/server-filesystem ~/Code
120+
mcp tools --format pretty npx -y @modelcontextprotocol/server-filesystem ~
119121
```
120122

121123
## Commands
122124

123125
### List Available Tools
124126

125127
```bash
126-
mcp tools npx -y @modelcontextprotocol/server-filesystem ~/Code
128+
mcp tools npx -y @modelcontextprotocol/server-filesystem ~
127129
```
128130

129131
### List Available Resources
130132

131133
```bash
132-
mcp resources npx -y @modelcontextprotocol/server-filesystem ~/Code
134+
mcp resources npx -y @modelcontextprotocol/server-filesystem ~
133135
```
134136

135137
### List Available Prompts
136138

137139
```bash
138-
mcp prompts npx -y @modelcontextprotocol/server-filesystem ~/Code
140+
mcp prompts npx -y @modelcontextprotocol/server-filesystem ~
139141
```
140142

141143
### Call a Tool
142144

143145
```bash
144-
mcp call read_file --params '{"path": "/path/to/file"}' npx -y @modelcontextprotocol/server-filesystem ~/Code
146+
mcp call read_file --params '{"path": "/path/to/file"}' npx -y @modelcontextprotocol/server-filesystem ~
145147
```
146148

147149
### Call a Resource
148150

149151
```bash
150-
mcp call resource:my-resource npx -y @modelcontextprotocol/server-filesystem ~/Code
152+
mcp call resource:my-resource npx -y @modelcontextprotocol/server-filesystem ~
151153
```
152154

153155
### Call a Prompt
154156

155157
```bash
156-
mcp call prompt:my-prompt npx -y @modelcontextprotocol/server-filesystem ~/Code
158+
mcp call prompt:my-prompt npx -y @modelcontextprotocol/server-filesystem ~
157159
```
158160

159161
### Interactive Shell Mode
160162

161163
Start an interactive shell for executing multiple MCP commands:
162164

163165
```bash
164-
mcp shell npx -y @modelcontextprotocol/server-filesystem ~/Code
166+
mcp shell npx -y @modelcontextprotocol/server-filesystem ~
165167
```
166168

167169
This opens an interactive shell where you can run MCP commands:
@@ -201,19 +203,19 @@ This opens an interactive shell where you can run MCP commands:
201203
List tools from a filesystem server:
202204

203205
```bash
204-
mcp tools npx -y @modelcontextprotocol/server-filesystem ~/Code
206+
mcp tools npx -y @modelcontextprotocol/server-filesystem ~
205207
```
206208

207209
Call the read_file tool with pretty JSON output:
208210

209211
```bash
210-
mcp call read_file --params '{"path": "README.md"}' --format pretty npx -y @modelcontextprotocol/server-filesystem ~/Code
212+
mcp call read_file --params '{"path": "README.md"}' --format pretty npx -y @modelcontextprotocol/server-filesystem ~
211213
```
212214

213215
Using the interactive shell mode:
214216

215217
```bash
216-
mcp shell npx -y @modelcontextprotocol/server-filesystem ~/Code
218+
mcp shell npx -y @modelcontextprotocol/server-filesystem ~
217219
```
218220

219221
## Roadmap

0 commit comments

Comments
 (0)