Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/license-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,34 @@ jobs:
go-version-file: "go.mod"
- name: check licenses
run: ./script/licenses-check
- name: Upload a Build Artifact
uses: actions/upload-artifact@v7.0.0
with:
# Artifact name. If the `archive` input is `false`, the name of the file uploaded will be the artifact name.
name: # optional, default is artifact
Comment on lines 20 to +26
Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lines added here make this workflow invalid YAML (a mis-indented - name: under run:), which will break CI. Remove the artifact-upload block or re-add it as a properly indented step under steps:.

Copilot uses AI. Check for mistakes.
# A file, directory or wildcard pattern that describes what to upload.
path:
# The desired behavior if no files are found using the provided path.
Available Options:
warn: Output a warning but do not fail the action
error: Fail the action with an error message
ignore: Do not output any warnings or errors, the action does not fail

if-no-files-found: # optional, default is warn
# Duration after which artifact will expire in days. 0 means using default retention.
Minimum 1 day. Maximum 90 days unless changed from the repository settings page.

retention-days: # optional
# The level of compression for Zlib to be applied to the artifact archive. The value can range from 0 to 9: - 0: No compression - 1: Best speed - 6: Default compression (same as GNU Gzip) - 9: Best compression Higher levels will result in better compression, but will take longer to complete. For large files that are not easily compressed, a value of 0 is recommended for significantly faster uploads.

compression-level: # optional, default is 6
# If true, an artifact with a matching name will be deleted before a new one is uploaded. If false, the action will fail if an artifact for the given name already exists. Does not fail if the artifact does not exist.

overwrite: # optional, default is false
# If true, hidden files will be included in the artifact. If false, hidden files will be excluded from the artifact.

include-hidden-files: # optional, default is false
# If true, the artifact will be archived (zipped) before uploading. If false, the artifact will be uploaded as-is without archiving. When `archive` is `false`, only a single file can be uploaded. The name of the file will be used as the artifact name (ignoring the `name` parameter).

archive: # optional, default is true

122 changes: 122 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
name: Deploy GitHub Pages

on:
push:
branches: [ main, master ]
paths:
- '*.html'
- '.github/workflows/pages.yml'
pull_request:
branches: [ main, master ]
paths:
- '*.html'
- '.github/workflows/pages.yml'
Comment on lines +9 to +13
Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This workflow will attempt to deploy Pages on pull_request events. Pages deployments usually require permissions that PR workflows (especially from forks) don't have, leading to failing/noisy runs. Consider limiting deployment to pushes and running only the build job on PRs.

Copilot uses AI. Check for mistakes.

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Create Pages directory
run: |
mkdir -p _site
cp *.html _site/ 2>/dev/null || true

# Create index.html that redirects to the AI Story Studio
cat > _site/index.html << 'EOF'
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GitHub MCP Server Demos</title>
<meta http-equiv="refresh" content="0; url=ai-story-studio-combined.html">
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
margin: 0;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
text-align: center;
}
.container {
max-width: 600px;
padding: 40px;
}
h1 {
font-size: 3rem;
margin-bottom: 20px;
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
p {
font-size: 1.2rem;
margin-bottom: 30px;
opacity: 0.9;
}
a {
display: inline-block;
background: rgba(255,255,255,0.2);
color: white;
padding: 15px 30px;
border-radius: 25px;
text-decoration: none;
transition: all 0.3s ease;
backdrop-filter: blur(10px);
font-weight: 500;
}
a:hover {
background: rgba(255,255,255,0.3);
transform: translateY(-2px);
}
</style>
</head>
<body>
<div class="container">
<h1>🤖 GitHub MCP Server</h1>
<p>Demo Applications</p>
<p>Redirecting to AI Story Studio...</p>
<a href="ai-story-studio-combined.html">Enter AI Story Studio</a>
</div>
</body>
</html>
EOF

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actions/upload-pages-artifact is invoked without specifying which directory to upload. Since this job builds _site/, explicitly set the upload path to _site to avoid accidentally uploading the entire repository and to make the workflow behavior deterministic.

Suggested change
uses: actions/upload-pages-artifact@v3
uses: actions/upload-pages-artifact@v3
with:
path: ./_site

Copilot uses AI. Check for mistakes.

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,21 @@ The GitHub MCP Server connects AI tools directly to GitHub's platform. This give

Built for developers who want to connect their AI tools to GitHub context and capabilities, from simple natural language queries to complex multi-step agent workflows.

## 🎨 Demo Applications

### AI Story Studio
Experience the GitHub MCP Server capabilities through our interactive demo application:

**[🚀 Launch AI Story Studio Demo](https://kalosha959-wq.github.io/github-mcp-server/ai-story-studio-combined.html)**

Comment on lines +20 to +21
Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The demo link is hard-coded to kalosha959-wq.github.io, which will be incorrect for the upstream repo and most forks. Use a relative link, or document that users should substitute their own <owner>.github.io/<repo> URL after enabling Pages.

Suggested change
**[🚀 Launch AI Story Studio Demo](https://kalosha959-wq.github.io/github-mcp-server/ai-story-studio-combined.html)**
**[🚀 Launch AI Story Studio Demo](ai-story-studio-combined.html)**
When published via GitHub Pages, this will be available at `https://<owner>.github.io/<repo>/ai-story-studio-combined.html`.

Copilot uses AI. Check for mistakes.
The AI Story Studio showcases how frontend applications can integrate with the GitHub MCP Server to create rich, AI-powered experiences. Features include:
- Interactive story generation interface
- MCP integration examples and code samples
- Demonstration of GitHub API access patterns
- Real-world use case scenarios

This demo illustrates the potential for building sophisticated AI applications that leverage GitHub's ecosystem through the MCP protocol.

---

## Remote GitHub MCP Server
Expand Down
Loading
Loading