File tree Expand file tree Collapse file tree 6 files changed +17
-282
lines changed
Expand file tree Collapse file tree 6 files changed +17
-282
lines changed Original file line number Diff line number Diff line change 77This package comes with a CLI tool you can simply call using ` npx ` :
88
99``` shell
10- npx @hyprmcp/mcp-instructions https://mcp.example.com --target vscode --output md
11- npx @hyprmcp/mcp-instructions --help
10+ npx @hyprmcp/mcp-install- instructions-generator https://mcp.example.com --target vscode --output md
11+ npx @hyprmcp/mcp-install- instructions-generator --help
1212```
1313
1414### Web Component
1515
1616You can use the web component by importing it into your HTML file:
1717
1818``` html
19- <
script src =
" https://cdn.jsdelivr.net/npm/@hyprmcp/[email protected] /dist/component/index.js" ></
script >
19+ <script src =" https://cdn.jsdelivr.net/npm/@hyprmcp/mcp-install- instructions-generator @0.1.0/dist/component/index.js" ></script >
2020<link
2121 rel =" stylesheet"
22- href =
" https://cdn.jsdelivr.net/npm/@hyprmcp/[email protected] /dist/component/index.css" 22+ href =" https://cdn.jsdelivr.net/npm/@hyprmcp/mcp-install- instructions-generator @0.1.0/dist/component/index.css"
2323/>
2424
25- <mcp-instructions url =" https://mcp.example.com" ></mcp-instructions >
25+ <mcp-install- instructions url =" https://mcp.example.com" ></mcp-install -instructions >
2626```
2727
2828### JavaScript
2929
3030This 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.
31+ Simply install ` @hyprmcp/mcp-install- instructions-generator ` with your package manager of choice and you're ready to get started.
3232
3333``` ts
34- import { generateMCPInstructions } from ' @hyprmcp/mcp-instructions' ;
34+ import { generateMCPInstructions } from ' @hyprmcp/mcp-install- instructions' ;
3535
3636const instructions = generateMCPInstructions ({
3737 url: ' https://mcp.example.com' ,
Original file line number Diff line number Diff line change 3030 < main >
3131 < h1 > Webcomponent Demo</ h1 >
3232 < h2 > https://mcp.example.com</ h2 >
33- < mcp-instructions url ="https://mcp.example.com "> </ mcp-instructions >
33+ < mcp-install-instructions
34+ url ="https://mcp.example.com "
35+ > </ mcp-install-instructions >
3436
3537 < h2 > https://glasskube.hyprmcp.cloud/who-am-i/mcp</ h2 >
36- < mcp-instructions
38+ < mcp-install- instructions
3739 url ="https://glasskube.hyprmcp.cloud/who-am-i/mcp "
38- > </ mcp-instructions >
40+ > </ mcp-install- instructions >
3941 </ main >
4042 </ body >
4143</ html >
Original file line number Diff line number Diff line change 11{
2- "name" : " mcp-instructions" ,
2+ "name" : " @hyprmcp/ mcp-install- instructions-generator " ,
33 "version" : " 0.1.0" ,
44 "description" : " " ,
55 "scripts" : {
6- "prebuild" : " rimraf dist" ,
6+ "prebuild" : " shx rm -rf dist" ,
77 "build" : " tsc && esbuild --bundle --minify --outdir=dist/component src/component/index.ts" ,
88 "postbuild" : " shx chmod +x dist/cli/*.js" ,
99 "lint" : " prettier --check ." ,
2727 "@types/node" : " ^24.3.1" ,
2828 "esbuild" : " ^0.25.9" ,
2929 "prettier" : " ^3.6.2" ,
30- "rimraf" : " ^6.0.1" ,
3130 "shx" : " ^0.4.0" ,
3231 "ts-node" : " ^10.9.2" ,
3332 "typescript" : " ^5.9.2"
You can’t perform that action at this time.
0 commit comments