Sync fork with upstream (media cleanup merged upstream as InstaWP#13)#5
Merged
Conversation
…-cleanup-file-upload Clean up media tools and add local file uploads
There was a problem hiding this comment.
Pull request overview
Syncs this fork with upstream InstaWP/mcp-wp (including the merged media-tool cleanup work), expanding and hardening the Media toolset and its documentation.
Changes:
- Adds a
WPMediaTypeScript type and refactorsmedia.tsto support richer query params plusget_media,update_media, and a backward-compatibleedit_mediaalias. - Enhances
create_mediato support uploading from either a remote URL or a localfile_path, using multipart form-data. - Updates docs (README/CLAUDE) to describe the media workflows and adds the
form-datadependency.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/types/wordpress-types.ts | Adds a WPMedia interface for typed media responses. |
| src/tools/media.ts | Major refactor of media tools/handlers; adds local file uploads + new tools/params. |
| README.md | Documents new media upload workflows and the edit_media legacy alias. |
| package.json | Adds form-data dependency needed for multipart uploads. |
| CLAUDE.md | Updates tool listing to reflect canonical media tools + legacy alias. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+222
to
+224
| async function loadUploadFromFilePath(filePath: string, explicitTitle?: string): Promise<UploadSource> { | ||
| const resolvedPath = path.resolve(process.cwd(), filePath); | ||
|
|
Member
Author
|
Superseded: main was fast-forwarded directly to upstream 5e33e43 after excluding mcp-wp (a fork tracking InstaWP upstream) from the org rulesets. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fast-forward content sync: brings fork main up to upstream InstaWP/mcp-wp main (5e33e43), which merged our media-tool cleanup PR. No fork-local changes.
🤖 Generated with Claude Code