Skip to content

Sync fork with upstream (media cleanup merged upstream as InstaWP#13)#5

Merged
jack-arturo merged 2 commits into
mainfrom
sync/upstream-20260611
Jun 10, 2026
Merged

Sync fork with upstream (media cleanup merged upstream as InstaWP#13)#5
jack-arturo merged 2 commits into
mainfrom
sync/upstream-20260611

Conversation

@jack-arturo

Copy link
Copy Markdown
Member

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

jack-arturo and others added 2 commits March 25, 2026 00:59
Copilot AI review requested due to automatic review settings June 10, 2026 22:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 WPMedia TypeScript type and refactors media.ts to support richer query params plus get_media, update_media, and a backward-compatible edit_media alias.
  • Enhances create_media to support uploading from either a remote URL or a local file_path, using multipart form-data.
  • Updates docs (README/CLAUDE) to describe the media workflows and adds the form-data dependency.

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 thread src/tools/media.ts
Comment on lines +222 to +224
async function loadUploadFromFilePath(filePath: string, explicitTitle?: string): Promise<UploadSource> {
const resolvedPath = path.resolve(process.cwd(), filePath);

@jack-arturo

Copy link
Copy Markdown
Member Author

Superseded: main was fast-forwarded directly to upstream 5e33e43 after excluding mcp-wp (a fork tracking InstaWP upstream) from the org rulesets.

@jack-arturo jack-arturo merged commit 5e33e43 into main Jun 10, 2026
1 check passed
@jack-arturo jack-arturo deleted the sync/upstream-20260611 branch June 10, 2026 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants