mcpField
P
python-math

python-math

github.com/trpc-groupDevelopment1.9k41 installsUpdated today
Repository

About python-math

python-math runs short Python scripts in a skill workspace. It is intended for simple calculations and scripts whose results can be printed as text or saved to output files.

Key features

  1. 01Run short Python scripts
  2. 02Print results as text
  3. 03Save output files

Use cases

  1. 01Generate Fibonacci numbers
  2. 02Sum a list of integers
  3. 03Save script output to a file

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/trpc-group/trpc-agent-go --skill python-math

After installing, type/python-mathin Claude Code to confirm it loaded.

Bundled filesscripts/fib.py

Details

From the project README

Overview

Run short Python scripts inside the skill workspace. Results can be returned as text and saved as output files.

Examples

  1. Print the first N Fibonacci numbers

    Command:

    python3 scripts/fib.py 10 > out/fib.txt

  2. Sum a list of integers

    Command:

    python3 - <<'PY' from sys import stdin nums = [int(x) for x in stdin.read().split()] print(sum(nums)) PY

Output Files

  • out/fib.txt

Comments

Markdown supported