Skip to content

Commit bc15ab1

Browse files
committed
docs: add readme
1 parent e06d7d9 commit bc15ab1

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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+
```

0 commit comments

Comments
 (0)