Skip to content

Commit cac3f65

Browse files
committed
add Push API limit MCP
1 parent 49618f4 commit cac3f65

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/index.ts

+17
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,23 @@ server.tool(
213213
},
214214
);
215215

216+
server.tool(
217+
"push_api_limit",
218+
"Push message API is limited to 200 messages per month. Use this tool to check the current limit and remaining quota.",
219+
{},
220+
async () => {
221+
const response = await messagingApiClient.getMessageQuota();
222+
return {
223+
content: [
224+
{
225+
type: "text",
226+
text: JSON.stringify(response),
227+
},
228+
],
229+
};
230+
},
231+
);
232+
216233
async function main() {
217234
if (!process.env.CHANNEL_ACCESS_TOKEN) {
218235
console.error("Please set CHANNEL_ACCESS_TOKEN");

0 commit comments

Comments
 (0)