mirror of
https://github.com/dnlbauer/cordra-mcp.git
synced 2026-09-10 21:55:30 +00:00
Compare commits
9 Commits
fix-schema
...
v1.1.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1eb7285132 | ||
|
|
906e387192 | ||
|
|
0a03fec5b8 | ||
|
|
e541a27d9f | ||
|
|
20b2f1b219 | ||
|
|
38e1118167 | ||
|
|
d04bfd2f90 | ||
|
|
2499654bf4 | ||
|
|
3e8205c098 |
29
.github/workflows/ci.yml
vendored
29
.github/workflows/ci.yml
vendored
@@ -3,6 +3,7 @@ name: CI
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
tags: [ 'v*' ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
@@ -25,7 +26,7 @@ jobs:
|
||||
run: uv python install ${{ matrix.python-version }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: uv sync --dev
|
||||
run: uv sync --dev --locked
|
||||
|
||||
- name: Run ruff linting
|
||||
run: uv run ruff check
|
||||
@@ -36,13 +37,33 @@ jobs:
|
||||
- name: Run tests
|
||||
run: uv run pytest
|
||||
|
||||
- name: Validate version consistency
|
||||
# Ensure that the version is consistent across files and matches the tag if applicable
|
||||
run: |
|
||||
PYPROJECT_VERSION=$(python3 -c "import tomllib; print(tomllib.load(open('pyproject.toml', 'rb'))['project']['version'])")
|
||||
INIT_VERSION=$(python3 -c "import re; print(re.search(r'__version__ = \"(.+?)\"', open('src/cordra_mcp/__init__.py').read()).group(1))")
|
||||
|
||||
if [ "$PYPROJECT_VERSION" != "$INIT_VERSION" ]; then
|
||||
echo "Version mismatch: pyproject.toml=$PYPROJECT_VERSION, __init__.py=$INIT_VERSION"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Additionally check tag version if this is a tag build
|
||||
if [[ "$GITHUB_REF" == refs/tags/v* ]]; then
|
||||
TAG_VERSION=${GITHUB_REF#refs/tags/v}
|
||||
if [ "$TAG_VERSION" != "$PYPROJECT_VERSION" ]; then
|
||||
echo "Version mismatch: tag=$TAG_VERSION, pyproject.toml=$PYPROJECT_VERSION"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -63,7 +84,7 @@ jobs:
|
||||
with:
|
||||
images: ghcr.io/${{ github.repository_owner }}/cordra-mcp
|
||||
tags: |
|
||||
type=ref,event=branch
|
||||
type=ref,event=tag
|
||||
type=raw,value=latest
|
||||
|
||||
- name: Build and push Docker image
|
||||
@@ -81,7 +102,7 @@ jobs:
|
||||
needs: test
|
||||
permissions:
|
||||
id-token: write
|
||||
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@@ -7,6 +7,8 @@ access to explore and understand Cordra repositories.
|
||||
This allows AI systems to quickly understand the data model and schema structure
|
||||
of a Cordra repository and to explore digital objects and their relationships.
|
||||
|
||||

|
||||
|
||||
## Features
|
||||
|
||||
- **Read-Only Access**: All operations are strictly read-only,
|
||||
|
||||
BIN
example.gif
Normal file
BIN
example.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.0 MiB |
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "cordra-mcp"
|
||||
version = "1.0.0"
|
||||
version = "1.1.1"
|
||||
description = "MCP server for Cordra digital object repository"
|
||||
authors = [
|
||||
{name = "Daniel Bauer", email = "github@dbauer.me"},
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
"""MCP server for Cordra digital object repository."""
|
||||
|
||||
__version__ = "0.1.0"
|
||||
__version__ = "1.1.1"
|
||||
|
||||
Reference in New Issue
Block a user