Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/dco.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
if: github.event.pull_request.user.login != github.repository_owner
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
with:
fetch-depth: 0
- name: Check Signed-off-by on every commit
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hygiene.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ jobs:
hygiene:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Check for private paths, internal ids and credential shapes
run: ./scripts/check_hygiene.sh
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
matrix:
python-version: ["3.10", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: ${{ matrix.python-version }}
- name: Install (with the optional MCP dependency)
Expand All @@ -23,8 +23,8 @@ jobs:
quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: "3.13"
- name: Install (with the optional MCP dependency and the checkers)
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ build/
!tests/fixtures/**/*.jsonl
.env
.coverage
.env.*
*.pem
*.key
.pypirc
5 changes: 3 additions & 2 deletions personakit/mcp_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

Assistants can never approve, restrict, hide or forget. Only the owner does that, in `review`.
The functions below hold the logic and need no MCP package; `build_server` wraps them.
Install the optional dependency with: pip install "personakit[mcp]"
Install the optional dependency from a checkout of this repository with: pip install -e ".[mcp]"
(not `pip install personakit`: that name on PyPI belongs to an unrelated project).
"""

from __future__ import annotations
Expand Down Expand Up @@ -59,7 +60,7 @@ def build_server(store: Store, relevance: retrieve.Relevance = retrieve.overlap)
try:
from mcp.server.fastmcp import FastMCP
except ImportError as exc: # pragma: no cover - exercised only without the extra
raise SystemExit('The MCP server needs the "mcp" package: pip install "personakit[mcp]"') from exc
raise SystemExit('The MCP server needs the "mcp" package: pip install "mcp>=1.2,<2"') from exc

server = FastMCP("personakit")

Expand Down
Loading