
How it Works
The agent uses the following connectors and tools:- GitHub MCP Server: This connector uses the following tools:
search_issues: It supports the full GitHub search syntax. It is the primary tool for finding specific items like “merged PRs from last week”.issue_read: Retrieves the full details of a specific issue or pull request. This includes the title, body description, author, state, and other metadata. The agent uses it to get the actual content to summarize from merged PRs.create_branch: Creates a new git branch in the target repository.create_or_update_file: Creates a new file or updates an existing one in a repository. The agent uses it to create the changelog file and append the summary to it.create_pull_request: The agent uses it to open a new PR from the branch it created towards the main.
- Send Email: This is an xpander built-in tool. The agent uses it to send email to the user, using the xpander registration email address, or any other email that the user asks to include in the scheduled task configuration.

Step-by-step Agent Setup
This section walks you through the setup of the Weekly Changelog Maintainer agent.Requirements
Before setting up this agent, you need:- A valid xpander account.
- A GitHub personal access token.
- Log in to your GitHub account. Click on Settings > Developers Settings > Personal access token.
Prerequisites
xpander has already created a template so that you do not need to build the agent on your own. Do the following:- Open the Weekly Changelog Maintainer template.
- Follow the guided procedure to create the agent in your account from the template.
Step 1: Define the Target Repository
After you created a new agent from the template, navigate to the Instructions tab. Below is what you will see:
https://github.com/{owner}/{repo-name}. You have to change:
{owner}with the owner of the target repository.{repo-name}with the name of the target repository.
https://github.com/xpander-ai/xpander-sdk where:
{owner}= xpander-ai{repo-name}= xpander-sdk
Step 2: Add The Send Email Tool and Connect the GitHub’s MCP Connector to Your GitHub Account
Under the Tools tab, select the Send Email built-in tool. Then, connect the GitHub MCP Server connector to your GitHub account by clicking on its settings:


Step 3: Test the Agent
To launch your agent, navigate to the Tester chat and write your prompt:




Step 4: Schedule the Task
When you are satisfied with the results of your tests, you can set a schedule for the agent, for example weekly. To do so, navigate to the Task sources tab and enable the Task toggle:

Step 5: Set Up Memory Mechanism
Because this agent runs under a schedule, you have to activate and manage the agent’s memory mechanism. This way, it does not take into account PRs that it has already considered in the past. To do so, navigate to the Memory tab and activate the memory mechanisms:
NOTE: Learn how to correctly set up agents’ memory be reading the Agent Memory section.
Step 6: Deploy the Agent
To make sure the agent actually works, you have to deploy it. To do so, click on Deploy:
Step 7: Merge the PR
Once the agent completed the task, the PR is open. Then, you have to review and merge it. At xpander, we tested this agent in our Mintlify documentation repository. Below is how the latest changelog appears, after we merged it into the main branch:
NOTE: To use the proposed prompt in a Mintlify repository, you have to change the extension of the changelog file to
.mdx. So, the name of the file must be changelog.mdx.Use Cases
This agent can be used with any software documentation hosted on GitHub repositories like Docusaurus, Mintlify, MkDocs, and any other framework you prefer using. You can also test different solutions with different prompts. For example:- The prompt proposed above asks the agent to find all the PRs merged last week. You can test with different timeframes.
- Instead of giving a specific name to the new branch like ‘release-notes-2026’ as proposed, you can try asking the agent to create a ‘release-notes‘ branch for the latest monthly merged PRs and let the agent specify the name.
- If you already have a changelog file, you can ask the agent to modify it, attaching the new content it retrieved from the merged PRs.
- You can define different categories to summarize the changelog, rather than using “new features”, “enhancements”, “bug fixes”.

