A major security alert was sparked outside the House of Parliament when a man appeared in a suit of armour, allegedly carrying two samurai swords and asked to speak to Boris Johnson, a court heard.