mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
refactor: Rename MCP-Generated directory to MCP and update related references in scripts and documentation
This commit is contained in:
8
.github/workflows/publish-mcp-server.yml
vendored
8
.github/workflows/publish-mcp-server.yml
vendored
@@ -145,13 +145,13 @@ jobs:
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: mcp-server-${{ steps.version.outputs.version }}
|
||||
path: ./MCP-Generated/
|
||||
path: ./MCP/
|
||||
retention-days: 90
|
||||
|
||||
- name: Create GitHub Release Assets
|
||||
if: ${{ github.event_name == 'release' }}
|
||||
run: |
|
||||
cd MCP-Generated
|
||||
cd MCP
|
||||
npm pack
|
||||
PACKAGE_FILE=$(ls *.tgz)
|
||||
mv "$PACKAGE_FILE" "../oneuptime-mcp-server-${{ steps.version.outputs.version }}.tgz"
|
||||
@@ -171,7 +171,7 @@ jobs:
|
||||
if: ${{ github.event_name == 'release' }}
|
||||
run: |
|
||||
# Count generated tools
|
||||
TOOL_COUNT=$(grep -c "server.tool(" MCP-Generated/Service/MCP.ts || echo "0")
|
||||
TOOL_COUNT=$(grep -c "server.tool(" MCP/Service/MCP.ts || echo "0")
|
||||
|
||||
# Create enhanced release notes
|
||||
cat > enhanced-release-notes.md << EOF
|
||||
@@ -216,7 +216,7 @@ jobs:
|
||||
|
||||
### 📚 Documentation
|
||||
|
||||
For detailed usage instructions, API documentation, and examples, see the [README](https://github.com/OneUptime/oneuptime/blob/main/MCP-Generated/README.md).
|
||||
For detailed usage instructions, API documentation, and examples, see the [README](https://github.com/OneUptime/oneuptime/blob/main/MCP/README.md).
|
||||
|
||||
### 🔗 Links
|
||||
|
||||
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -126,4 +126,4 @@ TerraformTest/**
|
||||
terraform-provider-example/**
|
||||
|
||||
MCP/**
|
||||
MCP-Generated/**
|
||||
MCP/**
|
||||
@@ -31,7 +31,7 @@ This project provides a **dynamic MCP (Model Context Protocol) server generator*
|
||||
## 📁 Generated Structure
|
||||
|
||||
```
|
||||
MCP-Generated/
|
||||
MCP/
|
||||
├── package.json # NPM package configuration
|
||||
├── Index.ts # Main MCP server entry point
|
||||
├── README.md # Complete usage documentation
|
||||
@@ -62,7 +62,7 @@ npm run generate-mcp-server
|
||||
|
||||
```bash
|
||||
# Navigate to the generated server
|
||||
cd MCP-Generated
|
||||
cd MCP
|
||||
|
||||
# Install dependencies
|
||||
npm install
|
||||
@@ -94,7 +94,7 @@ npm start
|
||||
|
||||
```bash
|
||||
# Build Docker image
|
||||
cd MCP-Generated
|
||||
cd MCP
|
||||
docker build -t oneuptime-mcp .
|
||||
|
||||
# Run with environment variables
|
||||
@@ -217,7 +217,7 @@ To modify the generator:
|
||||
|
||||
1. Edit TypeScript files in `Scripts/MCPProvider/Core/`
|
||||
2. Run `npm run generate-mcp-server` to test changes
|
||||
3. Check generated code in `MCP-Generated/`
|
||||
3. Check generated code in `MCP/`
|
||||
4. Iterate and improve
|
||||
|
||||
### Key Files
|
||||
|
||||
@@ -235,7 +235,7 @@ if [ "$DRY_RUN" = false ]; then
|
||||
This release includes the OneUptime Model Context Protocol (MCP) Server generated from the OneUptime API specification.
|
||||
|
||||
### Features
|
||||
- Complete API coverage with $(find MCP-Generated -name "*.ts" | wc -l) generated TypeScript files
|
||||
- Complete API coverage with $(find MCP -name "*.ts" | wc -l) generated TypeScript files
|
||||
- Auto-generated from OpenAPI specification
|
||||
- Full support for OneUptime monitoring and incident management features
|
||||
- Type-safe MCP tools for LLM integration
|
||||
@@ -262,7 +262,7 @@ oneuptime-mcp
|
||||
docker run -e ONEUPTIME_API_KEY=your-api-key-here oneuptime/mcp-server:$VERSION
|
||||
\`\`\`
|
||||
|
||||
For more information, see the [README](https://github.com/OneUptime/oneuptime/blob/main/MCP-Generated/README.md).
|
||||
For more information, see the [README](https://github.com/OneUptime/oneuptime/blob/main/MCP/README.md).
|
||||
"
|
||||
|
||||
echo "$RELEASE_NOTES" > release-notes.md
|
||||
@@ -271,7 +271,7 @@ For more information, see the [README](https://github.com/OneUptime/oneuptime/bl
|
||||
gh release create "mcp-v$VERSION" \
|
||||
--title "MCP Server v$VERSION" \
|
||||
--notes-file release-notes.md \
|
||||
MCP-Generated/*.tgz 2>/dev/null || echo "Note: No package files to attach to release"
|
||||
MCP/*.tgz 2>/dev/null || echo "Note: No package files to attach to release"
|
||||
|
||||
rm -f release-notes.md
|
||||
|
||||
@@ -291,4 +291,4 @@ if [ "$DRY_RUN" = false ]; then
|
||||
print_status "🐙 GitHub: https://github.com/OneUptime/oneuptime/releases/tag/mcp-v$VERSION"
|
||||
fi
|
||||
|
||||
print_status "📚 Documentation: See MCP-Generated/README.md for usage instructions"
|
||||
print_status "📚 Documentation: See MCP/README.md for usage instructions"
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
"typeorm": "node --require ts-node/register ./node_modules/typeorm/cli.js",
|
||||
"uninstall": "bash uninstall.sh",
|
||||
"lint": "export NODE_OPTIONS='--max-old-space-size=32768' && npx eslint . --cache",
|
||||
"fix-lint": "export NODE_OPTIONS='--max-old-space-size=32768' && npx eslint . --fix --cache",
|
||||
"fix-lint": "export NODE_OPTIONS='--max-old-space-size=32768' && npx eslint . --fix --cache --debug",
|
||||
"fix": "npm run fix-lint",
|
||||
"status-check": "bash ./Tests/Scripts/status-check.sh $npm_config_services",
|
||||
"start": "export $(grep -v '^#' config.env | xargs) && docker compose up --remove-orphans -d $npm_config_services && npm run status-check",
|
||||
|
||||
Reference in New Issue
Block a user