Uh oh!
There was an error while loading. Please reload this page.
Add API documentation generation with phpDocumentor - #184
Conversation
07b5c1b to
a97a5dcComparechr-hertel
commented
Dec 11, 2025
Hi @jonathanhefner - thanks for that proposal, is that related to the discussion we had Tuesday about standardizing SDK docs? Having that on my desk as an open issue to follow up on ... |
jonathanhefner
commented
Dec 11, 2025
@chr-hertel I wasn't aware of a discussion, but it might be. 😄 The context is: I am trying to ensure that all MCP SDKs have documentation available at |
chr-hertel
commented
Dec 11, 2025
Yup, that's exactly what we want to look at - awesome! |
3d26a5a to
b55e15dCompare
Nyholm
left a comment
There was a problem hiding this comment.
Thank you.
Can you please remove the unrelated changes? Ie changes to MessageFactory and the style changes in composer.json
(Make those changes in a separate PR if you think we should merge them)
jonathanhefner
commented
Dec 16, 2025
Those changes are related. The changes to The changes in Lines 70 to 75 in 69cd04f How would you like me to proceed? |
Nyholm
commented
Dec 27, 2025
Oh, okey. Sorry, I did not know they were required.
I need to you rebase your PR so I can merge. Can you also link similar PRs to other SDKs? |
chr-hertel
commented
Dec 27, 2025
Looks like @jonathanhefner was basically already all over the place - awesome! SDK Repos & their docs:
That's what I could find ... no guarantee for completeness :D My proposal going forward, and to be aligned in sdk-maintainer circle, would rather be a combination of three things - ofc heavily based on what we have right now across the SDKs:
I don't know about API docs tbh, at least in PHP they are not that relevant anymore, and I would rather not focus on them - might differ for other ecosystems, but could be an optional part of the GitHub Pages maybe. |
b55e15d to
602a863Comparejonathanhefner
commented
Dec 29, 2025
Rebased! |
602a863 to
1a43133Comparejonathanhefner
commented
Dec 31, 2025
chr-hertel
commented
Jan 2, 2026
@jonathanhefner referenced this PR in the #general-sdk-dev channel to have a discussion next Friday in the monthly and decide how to move on with a bigger picture here - will you be there? |
jonathanhefner
commented
Jan 2, 2026
Sounds good! I've added it to my calendar! 😄 |
1a43133 to
30986feCompare- Add phpDocumentor configuration and `docs` Makefile target - Generate docs during CI to catch errors before releases - Set up GitHub Pages with Jekyll for hosting generated docs - Add GitHub Actions workflow to deploy docs to GitHub Pages on releases 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Change class-string union types to use phpDocumentor-compatible syntax and reorder docblock tags so class descriptions precede `@author` tags. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
phar-io/composer-distributor 1.0.0 has a bug where it uses the wrong package version when determining the phpDocumentor download URL, causing CI to fail with 404 errors when using --prefer-lowest. Version 1.0.2 fixes this issue. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Configure phpDocumentor to generate both API documentation and user guides in a single unified site. This replaces the previous Jekyll-based approach where API docs were copied into the docs folder. - Add `<guide>` configuration to `phpdoc.dist.xml` - Create custom template with "Guides" navigation link - Replace `docs/index.html` redirect with `docs/index.md` guide index - Update workflow to publish `build/docs` directly without Jekyll - Track `.phpdoc/template/` while still ignoring `.phpdoc/cache/` 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
chr-hertel
left a comment
There was a problem hiding this comment.
Thanks @jonathanhefner for kicking this off 🙏 👍
Rebased, and added some tweaks regarding paths, layout and config.
chr-hertel
commented
Feb 1, 2026
Some known issues regarding the markdown integration, see #232. |
Uh oh!
There was an error while loading. Please reload this page.
…ocol#184) * Add API documentation generation with phpDocumentor - Add phpDocumentor configuration and `docs` Makefile target - Generate docs during CI to catch errors before releases - Set up GitHub Pages with Jekyll for hosting generated docs - Add GitHub Actions workflow to deploy docs to GitHub Pages on releases 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Fix phpDocumentor errors in type annotations Change class-string union types to use phpDocumentor-compatible syntax and reorder docblock tags so class descriptions precede `@author` tags. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Fix CI: pin phar-io/composer-distributor ^1.0.2 phar-io/composer-distributor 1.0.0 has a bug where it uses the wrong package version when determining the phpDocumentor download URL, causing CI to fail with 404 errors when using --prefer-lowest. Version 1.0.2 fixes this issue. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Integrate markdown guides into phpDocumentor output Configure phpDocumentor to generate both API documentation and user guides in a single unified site. This replaces the previous Jekyll-based approach where API docs were copied into the docs folder. - Add `<guide>` configuration to `phpdoc.dist.xml` - Create custom template with "Guides" navigation link - Replace `docs/index.html` redirect with `docs/index.md` guide index - Update workflow to publish `build/docs` directly without Jekyll - Track `.phpdoc/template/` while still ignoring `.phpdoc/cache/` 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Fine-tuning for path, config, and layout --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> Co-authored-by: Christopher Hertel <mail@christopher-hertel.de>



docsMakefile target🤖 Generated with Claude Code
This PR also includes a commit to fix existing doc errors from phpDocumentor.
You can preview the generated documentation at http://jonathanhefner.github.io/mcp-php-sdk/api/.