LONDON (AP) - It's James Bond, with bureaucracy and cramped office space.
The first-ever official history of MI6 reveals that Britain's foreign spy agency debated assassinating Nazi leaders, landed a spy wearing a wetsuit over his tux at a casino by the sea and experimented with exploding filing cabinets _ but also wrangled with other government departments and had to make do on a shoestring budget.
The book, published Tuesday, tells a story of plots, paperwork, duplicity and derring-do that takes in fears of a Nazi anthrax attack, cross-dressing secret agents and worries about the safety of the prime minister's milk supply.
"The real James Bonds are more interesting than the fictional James Bond," said author Keith Jeffery, a historian at Queen's University Belfast, who had access to previously secret files in the MI6 archive. "They are male and female. They are real people. They have real frailties and real courage."
They are, often, larger than life: figures like Wilfred "Biffy" Dunderdale, a Russian-speaking MI6 agent in Paris between the world wars, whom Jeffery said had "a well-known penchant for pretty girls and fast cars, and terrific savoir-faire."
He was a friend of James Bond creator Ian Fleming, and a possible model for the suave secret agent. In old age he became "an incorrigible raconteur" who would claim to recognize his own exploits in the 007 stories.
There is also Dudley Clarke, an agent arrested in Madrid in 1941 "dressed, down to a brassiere, as a woman." The Spanish fascist authorities, confused about whether he was a spy or simply a cross-dresser, eventually released him. Jeffery says he "went on to have a brilliant career in deception."
There is also agent Pieter Tazelaar, put ashore beside a Dutch seafront casino one night during World War II, "in full evening dress and smelling of alcohol, wearing a specially designed rubber oversuit to keep him dry while landing."
On the beach, a colleague "sprinkled a few drops of Hennessy XO brandy on him to strengthen his 'party-goer's' image."
The book tells the story of an agency founded in 1909 with a staff of one, Mansfield Cumming, who recorded his first day in his diary: "Went to the office and remained all day, but saw no one, nor was there anything to do there."
It quickly got more interesting, although Jeffery writes that for decades, MI6 "had to operate on a shoestring" and was perennially short of office space.
The book reveals that its agents included well-loved authors W. Somerset Maugham, Graham Greene and Arthur Ransome, who spied in the Soviet Union and whose mistress was Leon Trotsky's secretary.
It recounts how MI6 spied actively on the U.S. during the 1930s before deciding that "it was more productive to be friends with the United States than continue to treat it as an intelligence target."
Around the same time, MI6 was worried about looming war with Germany, particularly the possibility the Nazis would use biological weapons, possibly exposing anthrax on the London Underground. A memo also asked whether the prime minister's milk supply was secure, as "milk bottles on doorstep can be tampered with."
Some of the revelations are sensitive even now. The book includes an account of Operation Embarrass, in which British agents blew up ships in Italian ports to deter postwar Jewish refugees from sailing to Palestine, then under British control.
The book deflates some cherished myths. MI6 agents do not have a "license to kill," although the agency compiled a list of possible Nazi assassination targets before the D-Day landings. It was judged that the plan was too risky and might spark bloody reprisals.
More happily for spy buffs, Q _ the gadget-making super-scientist from the Bond films _ is based on reality. After World War II, MI6 researchers worked on silent weapons, knockout tablets, safecracking tools and exploding filing cabinets that could destroy secret documents at short notice.
The book follows the publication last year of an official history of MI5, Britain's domestic intelligence service.
Jeffery said he struck a "Faustian pact" when he agreed to write the book. He could look at everything in the archives, but MI6 retained the power to censor what was published.
The book stops abruptly in 1949, but still represents a change of policy for an agency whose existence was only officially acknowledged in the 1990s.
John Scarlett, the former MI6 chief who commissioned the book, said it is intended to "promote well-informed understanding and public debate about MI6," without compromising current operations or living agents.
There is unlikely to be a sequel.
"For MI6 this is an exceptional event," said Scarlett, who stepped down last year as "C," code-name for the agency's head. "There has been nothing like it before and there are no plans for anything similar in the future."
The book is published in Britain by Bloomsbury as "MI6" and in the U.S. by Penguin as "The Secret History of MI6."