File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ # MCP Instructions
2+
3+ ## Usage
4+
5+ ### CLI
6+
7+ This package comes with a CLI tool you can simply call using ` npx ` :
8+
9+ ``` shell
10+ npx @hyprmcp/mcp-instructions https://mcp.example.com --target vscode --output md
11+ npx @hyprmcp/mcp-instructions --help
12+ ```
13+
14+ ### Web Component
15+
16+ You can use the web component by importing it into your HTML file:
17+
18+ ``` html
19+ <
script src =
" https://cdn.jsdelivr.net/npm/@hyprmcp/[email protected] /dist/component/index.js" ></
script >
20+ <link
21+ rel =" stylesheet"
22+ href =
" https://cdn.jsdelivr.net/npm/@hyprmcp/[email protected] /dist/component/index.css" 23+ />
24+
25+ <mcp-instructions url =" https://mcp.example.com" ></mcp-instructions >
26+ ```
27+
28+ ### JavaScript
29+
30+ This package is distributed as an npm package.
31+ Simply install ` @hyprmcp/mcp-instructions ` with your package manager of choice and you're ready to get started.
32+
33+ ``` ts
34+ import { generateMCPInstructions } from ' @hyprmcp/mcp-instructions' ;
35+
36+ const instructions = generateMCPInstructions ({
37+ url: ' https://mcp.example.com' ,
38+ target: ' vscode' ,
39+ });
40+
41+ console .log (instructions .getMarkdown ());
42+ ```
You can’t perform that action at this time.
0 commit comments