Francisco de Miranda comes close. Born in 1750 in Caracas, Venezuela, he became an officer in the Spanish Army in 1773. In 1779, Spain signed the Treaty of Aranjuez and entered the American Revolutionary War as an ally of France; their ultimate goals were to regain Gibraltar, Florida, and Minorca from the British. As part of the campaign in Florida, Miranda participated in the Siege of Pensacola; his diary is one of the primary sources we now have concerning the siege.
The one caveat here is that the Siege of Pensacola did not involve any American units, nor was it fought on land that became part of the United States immediately after the Revolutionary War; so a less charitable interpretation might view this as an opportunistic land-grab by the Spanish & French, designed to stick a thumb in the eye of the British, and not part of the "true" war effort. But then, one could say much the same about the French involvement in the Revolutionary War, and nobody denies that they greatly assisted the cause.
Miranda's role in the Latin-American wars of liberation is less in debate. After the end of the Revolutionary War, Miranda was charged with being a spy for the British and went into exile, first in the United States (where he hobnobbed with the American Founding Fathers), then in the UK. In 1806 he returned to the USA and organized a filibustering expedition to try to liberate Venezuela from the Spanish; unfortunately, this first expedition failed and Miranda returned to the UK.
When Napoleon invaded Spain, the Spanish colonies gained de facto independence, and some established juntas to govern themselves. The Supreme Junta of Caracas sent a delegation to the UK, met with Miranda, and convinced him to return to Venezuela. Upon his return, he began agitating for independence, and the junta finally declared the First Republic of Venezuela in 1811. However, several provinces of Venezuela remained loyal to the rump Spanish royalist government in Cádiz, and civil war broke out. As the First Republic collapsed, Miranda was given sole command of its armies; but it was too late, and the armies of the First Republic were defeated. Some of the republican officers (including one Simon Bolívar) arrested Miranda and handed him over to the Spanish Royal Army. He died in prison in Cádiz five years later.
While Miranda was not involved in the later successful wars of Latin-American Independence, he gained the nickname El Precursor ("The Precursor") for being one of the first to agitate for independence. If nothing else, Bolívar learned a lot from Miranda's failures (see the Cartagena Manifesto.)