awesome-copilot-mcp 0.0.1-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +95 -0
  3. package/dist/cli.d.ts +3 -0
  4. package/dist/cli.d.ts.map +1 -0
  5. package/dist/cli.js +590 -0
  6. package/dist/cli.js.map +1 -0
  7. package/dist/github-adapter.d.ts +33 -0
  8. package/dist/github-adapter.d.ts.map +1 -0
  9. package/dist/github-adapter.js +226 -0
  10. package/dist/github-adapter.js.map +1 -0
  11. package/dist/http-server.d.ts +55 -0
  12. package/dist/http-server.d.ts.map +1 -0
  13. package/dist/http-server.js +270 -0
  14. package/dist/http-server.js.map +1 -0
  15. package/dist/index.d.ts +6 -0
  16. package/dist/index.d.ts.map +1 -0
  17. package/dist/index.js +27 -0
  18. package/dist/index.js.map +1 -0
  19. package/dist/logger.d.ts +3 -0
  20. package/dist/logger.d.ts.map +1 -0
  21. package/dist/logger.js +25 -0
  22. package/dist/logger.js.map +1 -0
  23. package/dist/mcp-prompts.d.ts +18 -0
  24. package/dist/mcp-prompts.d.ts.map +1 -0
  25. package/dist/mcp-prompts.js +81 -0
  26. package/dist/mcp-prompts.js.map +1 -0
  27. package/dist/mcp-resources.d.ts +37 -0
  28. package/dist/mcp-resources.d.ts.map +1 -0
  29. package/dist/mcp-resources.js +394 -0
  30. package/dist/mcp-resources.js.map +1 -0
  31. package/dist/mcp-server.d.ts +11 -0
  32. package/dist/mcp-server.d.ts.map +1 -0
  33. package/dist/mcp-server.js +49 -0
  34. package/dist/mcp-server.js.map +1 -0
  35. package/dist/mcp-shared.d.ts +10 -0
  36. package/dist/mcp-shared.d.ts.map +1 -0
  37. package/dist/mcp-shared.js +160 -0
  38. package/dist/mcp-shared.js.map +1 -0
  39. package/dist/mcp-tools.d.ts +41 -0
  40. package/dist/mcp-tools.d.ts.map +1 -0
  41. package/dist/mcp-tools.js +249 -0
  42. package/dist/mcp-tools.js.map +1 -0
  43. package/dist/sse.d.ts +15 -0
  44. package/dist/sse.d.ts.map +1 -0
  45. package/dist/sse.js +11 -0
  46. package/dist/sse.js.map +1 -0
  47. package/dist/types.d.ts +94 -0
  48. package/dist/types.d.ts.map +1 -0
  49. package/dist/types.js +3 -0
  50. package/dist/types.js.map +1 -0
  51. package/metadata.json +5767 -0
  52. package/package.json +85 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024-2026 Awesome Copilot MCP Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,95 @@
1
+ # Awesome Copilot MCP Server
2
+
3
+ [![npm version](https://img.shields.io/npm/v/awesome-copilot-mcp)](https://www.npmjs.com/package/awesome-copilot-mcp)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
+ [![Build Status](https://github.com/RbBtSn0w/awesome-copilot-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/RbBtSn0w/awesome-copilot-mcp/actions)
6
+
7
+ A Model Context Protocol (MCP) server that provides access to [awesome-copilot](https://github.com/github/awesome-copilot) agents and collection resources.
8
+
9
+ ## Quick Start (No Installation Required)
10
+
11
+ Add to your MCP Client configuration (e.g., Claude Desktop or VS Code):
12
+
13
+ ```json
14
+ {
15
+ "mcpServers": {
16
+ "awesome-copilot": {
17
+ "command": "npx",
18
+ "args": ["-y", "awesome-copilot-mcp", "start"]
19
+ }
20
+ }
21
+ }
22
+ ```
23
+
24
+ This ensures you always run the latest version.
25
+
26
+ ## Usage
27
+
28
+ ### As MCP Server
29
+
30
+ Standard stdio usage (default). See configuration above.
31
+
32
+ ### As HTTP / OpenAPI Server
33
+
34
+ Run locally for remote access or OpenAPI testing:
35
+
36
+ ```bash
37
+ npx -y awesome-copilot-mcp start-http --port 8080 --host 0.0.0.0
38
+ ```
39
+
40
+ Available endpoints:
41
+ - `GET /health` Health check
42
+ - `GET /metadata` Return metadata index
43
+ - `GET /metadata/stream` SSE streaming output of metadata
44
+ - `GET /search?q=kw` Search
45
+ - `GET /openapi.json` API Documentation
46
+
47
+ ## Debugging
48
+
49
+ MCP Inspector is the recommended way to test and debug:
50
+
51
+ ```bash
52
+ # Debug via Stdio (Recommended)
53
+ npx -y awesome-copilot-mcp debug --no-build
54
+
55
+ # Debug via HTTP
56
+ npm run inspect:http
57
+ ```
58
+
59
+ ## Architecture
60
+
61
+ This server uses a **Bundled + In-Memory** architecture for maximum reliability:
62
+ 1. **Startup**: Loads `metadata.json` bundled directly within the npm package. Zero external dependencies.
63
+ 2. **Hot Updates**: `refresh_metadata` fetches the latest data from GitHub and stores it in **memory** for the current session.
64
+ 3. **Sandbox Friendly**: No local disk cache (`~/.cache`) is used, preventing permission issues in restricted environments (e.g., macOS App Sandbox).
65
+
66
+ ## Environment Variables
67
+
68
+ | Variable | Description |
69
+ |----------|-------------|
70
+ | `ACP_METADATA_URL` | Optional. URL to a hosted `metadata.json` (e.g. `https://yourname.github.io/repo/metadata.json`). Overrides GitHub raw fetch. |
71
+ | `ACP_REPOS_JSON` | Custom repository configuration JSON. |
72
+
73
+ ## Metadata Generation
74
+
75
+ **Automated**: GitHub Actions runs daily to fetch the latest metadata from `github/awesome-copilot` and publishes a new npm version if changes are detected.
76
+
77
+ **Internal**:
78
+ The metadata file is lightweight (~170 KB) containing only index info. Actual content (Agent instructions, prompts) is fetched on-demand via the `download` tool.
79
+
80
+ ## Development
81
+
82
+ ```bash
83
+ # Install dependencies
84
+ npm install
85
+
86
+ # Build
87
+ npm run build
88
+
89
+ # Run tests
90
+ npm test
91
+ ```
92
+
93
+ ## License
94
+
95
+ MIT
package/dist/cli.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":""}