MCP tool server

Discount Code Validator

For AI assistants that accept local MCP servers. Tested on macOS; expected to work the same on Windows.

Checks if a discount code matches predefined rules and calculates the discounted price.

Outputs the new price or an error if invalid. You run it on your own account or key. This download gives no access to any assistant.

Version 1.0.0 · Teranite Systems

$10.00 USD, one-time

Buying this pack gets you a licence to use it, not ownership of the files.

Read the full licence

Buy for $10.00

  • Download right after payment, and by email.
  • Runs on your own account or key.
  • Refund within 14 days, for any reason.
  • Payment is handled by Stripe.

What it does

Checks if a discount code matches predefined rules and calculates the discounted price. Outputs the new price or an error if invalid. You run it on your own account or key. This download gives no access to any assistant.

What's inside

  • Discount Code Validator: RULES.txt, json_rpc_dispatcher.py, server.py, tool.json and 4 Python files.

With a README and the Teranite Facet Buyer Licence.

Sample

Discount Code Validator

A real run, test “Standard valid discount”. Input:

rules.txt
SAVE10:10
SAVE20:20
tx.txt
SAVE10,100
SAVE20,50

Output:

Processed 2 transactions
FILE results.txt
SAVE10: 90.0
SAVE20: 40.0

Requirements

  • Your own assistant app that accepts local MCP servers, and Python 3.13.
  • Checked on macOS only: each server started and its tool called with its test inputs by our own client.
  • Not yet loaded or run inside any assistant itself.

Install

Unzip the download, then the zip inside it, into a folder you will keep. For each tool you want, add a local (stdio) MCP server to your assistant's app with the command python PATH/TO/discount-code-validator/FOLDER/server.py, naming its folder.

Licence

One licence covers one person. Your finished work is yours. Do not share or resell the files.

How it is made

Facet Packs are made with Teranite's own software tools, some of them written with help from AI, and rendered or built by standard software. They contain no AI-generated images.

Support

Questions, or a fault: support@teranitesystems.com. We reply within 2 business days.

More from Assistant add-ons

See all