It's actually kind of just hard for me to do. Largely because I haven't found ONE game that does it well. So, some things I like to start with;
MP is 100. This might change from game to game (for instance, a small number game might make it 10), class to class, character to character. But it's a flat number that doesn't increase with level. If a spell costs 3MP, it's always going to cost 3MP and is built around such.
Spells are not required to have an MP cost. Or any resource cost.
Long term resource management generally leads to game styles I don't want to make. Instead, I seem more and more to prefer MP (and HP) to reset at the end of battle.
With all that in mind, things like regeneration, healing items, etc that affect MP are made very differently when they always heal (effectively) a percentage of MP and only do something for this battle.
Resources:
I have both MP and TP in my game flavored as Mana Points (MP) and Stamina Point (SP) that are your main resources for using Magical Spells and Martial Skills respectively.
Maximums:
Each of the 4 party members in my game start with 100 Max MP and 100 Max TP. MP and TP maximums never increase throughout the game and cannot be increased in any way at all. 100 is what it will always be, this was a very purposeful design decision early on due to the importance of proper skill use and because part of the issue with MP balance is the inflated maximums you end up with through constant level ups over the course of the game, this eliminates that issue completely. As a nice bonus effect this also helped to balance my singular healing spell against my singular healing potion pretty much 1:1. Healing is mostly meant for out of battle as well and a bigger emphasis is put on using defensive skills, stuns, and critical strikes to stop damage or end battles quickly before damage happens. Although, some chip damage is expected over the course of several battles thus the healing spell/potions for helping to sustain the party during a dungeon/travel.
Costs:
Nearly all skills do the exact same damage as a normal attack if they target a single enemy and are used without advantage. Skills/spells instead get all of their power from special effects, states, elements, and counters to enemy traits so their value over a normal attack raises naturally by how useful they are rather than just raw damage output if they are used in the right situation but obviously they come at a cost of MP or TP. As a rule of thumb all skills/spells that are absolutely necessary to fight specific enemies in the game are usually fairly cheap to use (5 or less MP/TP) while skills/spells that are wide hitting or have very powerful effects are more expensive (6 or more MP/TP). This prevents the possibility of "soft lock" battles as much as realistically possible without sacrificing my desired combat design or the challenge level; my game requires that the player pay attention!
Management:
Since MP/TP is so valuable due to the importance of skills I made a two design choices to aid in balancing combat to help players always have some MP/TP on hand to fight while also maintaining that resource management aspect of a classic RPG.
1. Moderate use of normal attack:
I made normal attack useful in some situations. This allows the player just smack the enemy if they don't need a special effect, counter, AOE, or element at the moment. It is also good when you manage to Stun an enemy and just want to land a follow up critical attack. This helps to conserve MP/TP a little between battles.
2. After Battle Recovery:
I have what amounts to a soft exhaustion system built into the game disguised as a buff system. Basically how it works is any time the player rests at an Inn the party gains a special "Rested" buff that will last for 30 battles (work in progress duration).
After Battle Recovery:
After every successful battle the party will restore 5 MP and 5 TP (HP does not restore) and the duration of the "Rested" buff will be reduced by 1. This is basically enough to use 2 - 3 common skills or 1 moderate skill in the next battle. If the player runs from a battle instead of fighting they will not restore any MP or TP but the duration of "Rested" also will not go down either. If the player avoids fights altogether (I use an on screen/symbol encounter system) then "Rested" will also not lose any duration since it doesn't rely on steps. This also means it can't be "abused" by walking in circles which helps to avoid unfun interaction from the player as well.
Once the duration of "Rested" runs out "Rested" will be removed from the party and they will stop regenerating MP and TP. This has a soft exhaustion effect where the player isn't forced to stop adventuring but things will start to slowly take their toll on the party after several battles. This gives a good incentive to rest at inns and the inn price is cheap so no reason not to.
An additional feature to this is the meal system which is a completely optional feature of the inn. Whenever you rest the player can choose spend some extra money to "eat a meal" which will change the way they recover after battle. There are several meals which can be unlocked by bringing recipe books to any inn. Some meals increase the amount of MP or TP you recover after battle, some buff both MP and TP recovery after battle but by a lesser extent, and some can add HP recovery to the mix so you also recover HP as well as MP and TP. Just a variety of useful effects based on the player's needs.
Eating a meal grants a "Full" buff (effects stack with Rested) that lasts half as long as the "Rested" buff so its effects will fade much faster than "Rested" but it can help the party stay in tiptop condition for several battles. After "Full" expires normal After Battle Recovery from "Rested" will continue as usual until it also expires.
Restoratives:
MP and TP restoratives are both very expensive and rarely given out for free but in turn they are very powerful restoring a full 100% to MP or TP and can be used in battle if needed. These restoratives are mostly aimed for situations where the player has way overstayed their welcome in a dungeon or a tough battle that's gone sideways on the player and they need a bailout. (Developer note: I wonder if they will actually ever use these in those situations or just hoard them? I know I'm guilty. LOL)
Skill Situations:
Finally, there are a few situations where the player can actually use a TP skill to recover MP or an MP skill to recover TP but they are very situational and mostly meant as a reward for observant players to see an opportunity and capitalize on it. This helps make sure the player isn't "hanging around" in a easy battle waiting for their MP/TP bar to fill up.
Hope you don't mind the wall of text but you did ask for the entire system. Lol