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
1416This 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
7375useful 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:
99101Displays 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
107109Displays 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
115117Displays 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
161163Start 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
167169This 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:
201203List 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
207209Call 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
213215Using 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