HSCP-R-038 · recipe · Security
Decouple tools and skills from the model provider with an MCP server
Written entry, version 0.1, checked on 2026-12-03.
At a glance
| Implements | HSCP-G-041 Enable switching providers and portability of services : Switching provider and portability of data processing services, including SaaS |
|---|---|
| Case | Instantiates: applies an existing practice to a context. |
| Context | a health software product has its functions called by one or more language models (external assistant, embedded agent, model hosted by the vendor), and wants to be able to change models without rewriting its tools or its business instructions |
| Verification | open test · review |
Implements HSCP-G-041, Enable switching providers and portability of services. Case: instantiates the practice for the case where the provider to be switched is the language model provider. Complemented by HSCP-R-009 for the rights on tools, by HSCP-R-003 for the trace, and by HSCP-R-017 for choosing the tier on which each task runs.
When
The software's functions (reading a record, searching for an imaging study, drafting a letter) are called by a model. If they are written for one provider's API, and if the business instructions (how to prepare a consultation, in which order to read the documents) are installed at that provider, changing models means rewriting everything. The MCP server is called by the model, whichever it is: it is the right place to keep the tools and, with the Skills over MCP extension, the business instructions.
How
- Expose each function callable by a model as a tool of the vendor's MCP server, and nowhere else: no provider-specific tool definition in the application code.
- Write the business instructions as skills, versioned in the same repository as the tools, and deliver them through the server (Skills over MCP extension) when the client supports it. Otherwise, keep the same source file and deploy it to each client from the repository.
- Freeze the tools and skills with a fingerprint, checked at each build. A change to a skill goes through review, like a change to code.
- Keep the list of permitted models: provider, hosting location, jurisdiction, authorised tasks. The default model for each task is a configuration parameter, not a constant in the code.
- At each version, run a switch test: the same task, with the same skill, carried out by two models from the list. Compare the tools called and the expected result.
- Keep in the access log the model and the skill version used for each request, to know what was validated.
What runs where:
Examples
Catalogue served identically and switch test (Python 3.13, run on 03/12/2026 with simulated models: the catalogue is the same whatever the client, the switch does not change the tools called, a modified skill is detected):
import hashlib, json
def empreinte(obj):
return hashlib.sha256(json.dumps(obj, sort_keys=True, ensure_ascii=False).encode()).hexdigest()
def catalogue_serveur(outils, skills):
"""What the server exposes: identical whatever the model calling."""
return {"outils": outils,
"skills": {k: {"texte": v, "empreinte": empreinte(v)} for k, v in skills.items()}}
def essai_de_bascule(modele_a, modele_b, catalogue, skill):
"""Same skill, two models: the tools called must be the same."""
a = modele_a.derouler(catalogue, skill)
b = modele_b.derouler(catalogue, skill)
return [x["outil"] for x in a] == [x["outil"] for x in b]
The models in the test are simulated. With real models, the order or the number of calls may vary: the test then compares the set of tools called and the expected result of the task, not the step-by-step trace.
Verification
- CI test: the catalogue served by the server has the same fingerprint whatever the client. A skill or a tool description modified without updating the fingerprints fails the build.
- Test at each version: the switch test passes with at least two models from the list, one of them hosted in Europe or by the vendor.
- Audit agent: find in the code any provider-specific tool definition or prompt, outside the MCP server and the skills repository.
Evidence produced
Register of tools and skills with their fingerprints, list of permitted models with their hosting and jurisdiction, dated switch test report.
Evidence items
Each item attests the recipe at a given date. Frequency given for a product in service.
- Register Register of the tools and skills served by the MCP server, with their fingerprint
- Test report Dated switch test report: same tools called, same expected results, with two models
- Configuration or schema List of permitted models (provider, hosting, jurisdiction) and the default model for each task
Own mappings
In addition to those of the practice:
| Identifier | What the recipe adds |
|---|---|
anssi_ia_agentique_v1.0/7.1 |
the tools and skills (prompts) are inventoried, versioned and verified by fingerprint in the vendor's repository |
anssi_ia_agentique_v1.0/7.4 |
the model and skill version of each request go to the log, which helps reconstruct the sequence |
gt_cyber_ia_sante_guide_operationnel_2026_11/1.3.1-b |
the list of permitted models and the switch test give verifiable reversibility when choosing the provider |
References outside the catalogue
- VentureBeat, "MCP servers can now deliver AI agent skills…", 25/11/2026.
- MCP specification, version of 18/06/2025.
Versions
| Version | Status | Date |
|---|---|---|
| 0.1 | Draft | 2026-12-03 |
How to cite: “Health Software Common Practices”, HSCP-R-038, version 0.1, https://healthtechpractices.org/en/recettes/hscp-r-038/, under the CC BY-NC-SA 4.0 licence. Licence